From a2e95383793d25a10f66ca3871d924b37f42f515 Mon Sep 17 00:00:00 2001 From: wangshengwen333 Date: Sat, 7 Jun 2025 16:27:36 +0800 Subject: [PATCH 1/3] test Signed-off-by: wangshengwen333 --- api/arkui/DividerModifier.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/arkui/DividerModifier.d.ts b/api/arkui/DividerModifier.d.ts index 7e19ca7799..c04e38e69b 100644 --- a/api/arkui/DividerModifier.d.ts +++ b/api/arkui/DividerModifier.d.ts @@ -22,7 +22,7 @@ /** - * Defines Divider Modifier + * Defines Divider Modifier for test * * @extends DividerAttribute * @implements AttributeModifier -- Gitee From 3c0570310386045a8957d27813b6d9cc6d9e1b4f Mon Sep 17 00:00:00 2001 From: wangshengwen333 Date: Fri, 20 Jun 2025 17:19:25 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=8F=90=E4=BA=A4blank=E7=9A=84=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangshengwen333 --- api/@internal/component/ets/blank.d.ts | 51 --------------- api/arkui/BlankModifier.d.ts | 90 ++++++++++++++++++++++++++ api/arkui/DividerModifier.d.ts | 2 +- api/arkui/component/blank.d.ets | 46 +++++++++++++ 4 files changed, 137 insertions(+), 52 deletions(-) create mode 100644 api/arkui/component/blank.d.ets diff --git a/api/@internal/component/ets/blank.d.ts b/api/@internal/component/ets/blank.d.ts index 80958fccc9..72e36bb156 100644 --- a/api/@internal/component/ets/blank.d.ts +++ b/api/@internal/component/ets/blank.d.ts @@ -18,11 +18,6 @@ * @kit ArkUI */ -/*** if arkts 1.2 */ -import { CommonMethod } from './common'; -import { ResourceColor } from './units'; -/*** endif */ - /** * Create Blank. * @@ -47,17 +42,6 @@ import { ResourceColor } from './units'; * @form * @since 10 */ -/** - * Create Blank. - * - * @interface BlankInterface - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 - */ interface BlankInterface { /** * The minimum size of the blank fill assembly on the container spindle. @@ -86,18 +70,6 @@ interface BlankInterface { * @form * @since 10 */ - /** - * The minimum size of the blank fill assembly on the container spindle. - * - * @param { number | string } min - * @returns { BlankAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 - */ (min?: number | string): BlankAttribute; } @@ -125,17 +97,6 @@ interface BlankInterface { * @form * @since 10 */ -/** - * Inheritance CommonMethod Set Styles - * - * @extends CommonMethod - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 - */ declare class BlankAttribute extends CommonMethod { /** * color: set color. @@ -164,18 +125,6 @@ declare class BlankAttribute extends CommonMethod { * @form * @since 10 */ - /** - * color: set color. - * - * @param { ResourceColor } value - * @returns { BlankAttribute } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @form - * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 - */ color(value: ResourceColor): BlankAttribute; } diff --git a/api/arkui/BlankModifier.d.ts b/api/arkui/BlankModifier.d.ts index 07af01f672..d944451f22 100644 --- a/api/arkui/BlankModifier.d.ts +++ b/api/arkui/BlankModifier.d.ts @@ -19,6 +19,11 @@ */ +/** if arkts 1.2 */ +import { BlankAttribute } from "./component/blank"; +import { AttributeModifier } from "./component/common"; +import { ResourceColor } from "./component/units"; +/** endif */ /** * Defines Blank Modifier @@ -42,3 +47,88 @@ export declare class BlankModifier extends BlankAttribute implements AttributeMo */ applyNormalAttribute?(instance: BlankAttribute): void; } + +/** + * Defines Blank Modifier + * + * @implements AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + * @arkts 1.2 +*/ +export declare class BlankModifier implements AttributeModifier { + + /** + * Defines the normal update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applyNormalAttribute(instance: BlankAttribute): void; + + /** + * Defines the pressed update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applyPressedAttribute(instance: BlankAttribute): void; + + /** + * Defines the focused update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applyFocusedAttribute(instance: BlankAttribute): void; + + /** + * Defines the disabled update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applyDisabledAttribute(instance: BlankAttribute): void; + + /** + * Defines the selected update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applySelectedAttribute(instance: BlankAttribute): void; + + /** + * Defines the color value of Divider component + * + * @param { ResourceColor | undefined } value + * @returns { BlankModifier } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + color(value: ResourceColor | undefined): BlankModifier; +} \ No newline at end of file diff --git a/api/arkui/DividerModifier.d.ts b/api/arkui/DividerModifier.d.ts index c04e38e69b..7e19ca7799 100644 --- a/api/arkui/DividerModifier.d.ts +++ b/api/arkui/DividerModifier.d.ts @@ -22,7 +22,7 @@ /** - * Defines Divider Modifier for test + * Defines Divider Modifier * * @extends DividerAttribute * @implements AttributeModifier diff --git a/api/arkui/component/blank.d.ets b/api/arkui/component/blank.d.ets new file mode 100644 index 0000000000..5dcfd0f0ca --- /dev/null +++ b/api/arkui/component/blank.d.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + * @arkts 1.2 + */ +import { CommonMethod, AttributeModifier } from "./common"; +import { ResourceColor } from "./units"; +import { memo, ComponentBuilder } from "./../stateManagement/runtime"; +export declare interface BlankAttribute extends CommonMethod { + /** + * color: set color. + * + * @param { ResourceColor } value + * @returns { BlankAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + color(value: ResourceColor | undefined): this; + @memo + attributeModifier(value: AttributeModifier): this; +} + +@memo +@ComponentBuilder +export declare function Blank( + min?: number | string, + @memo + content_?: () => void, +): BlankAttribute \ No newline at end of file -- Gitee From 27aadd3356d115959e3eb4843e2510223a589eea Mon Sep 17 00:00:00 2001 From: wangshengwen333 Date: Sat, 21 Jun 2025 15:34:22 +0800 Subject: [PATCH 3/3] blank sdk Signed-off-by: wangshengwen333 --- api/arkui/BlankModifier.d.ts | 92 ++++++++++++++++++++++++++++++++- api/arkui/component/blank.d.ets | 46 +++++++++++++++++ 2 files changed, 136 insertions(+), 2 deletions(-) create mode 100644 api/arkui/component/blank.d.ets diff --git a/api/arkui/BlankModifier.d.ts b/api/arkui/BlankModifier.d.ts index 07af01f672..ad4aff6890 100644 --- a/api/arkui/BlankModifier.d.ts +++ b/api/arkui/BlankModifier.d.ts @@ -17,8 +17,11 @@ * @file * @kit ArkUI */ - - +/** if arkts 1.2 */ +import { BlankAttribute } from "./component/blank"; +import { AttributeModifier } from "./component/common"; +import { ResourceColor } from "./component/units"; +/** endif */ /** * Defines Blank Modifier @@ -42,3 +45,88 @@ export declare class BlankModifier extends BlankAttribute implements AttributeMo */ applyNormalAttribute?(instance: BlankAttribute): void; } + +/** + * Defines Blank Modifier + * + * @implements AttributeModifier + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 20 + * @arkts 1.2 +*/ +export declare class BlankModifier implements AttributeModifier { + + /** + * Defines the normal update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applyNormalAttribute(instance: BlankAttribute): void; + + /** + * Defines the pressed update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applyPressedAttribute(instance: BlankAttribute): void; + + /** + * Defines the focused update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applyFocusedAttribute(instance: BlankAttribute): void; + + /** + * Defines the disabled update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applyDisabledAttribute(instance: BlankAttribute): void; + + /** + * Defines the selected update attribute function. + * + * @param { BlankAttribute } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + applySelectedAttribute(instance: BlankAttribute): void; + + /** + * Defines the color value of Divider component + * + * @param { ResourceColor | undefined } value + * @returns { BlankModifier } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + color(value: ResourceColor | undefined): BlankModifier; +} diff --git a/api/arkui/component/blank.d.ets b/api/arkui/component/blank.d.ets new file mode 100644 index 0000000000..bb3b50efd5 --- /dev/null +++ b/api/arkui/component/blank.d.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + * @kit 1.2 + */ +import { CommonMethod, AttributeModifier } from "./common"; +import { ResourceColor } from "./units"; +import { memo, ComponentBuilder } from "./../stateManagement/runtime"; +export declare interface BlankAttribute extends CommonMethod { + /** + * color: set color. + * + * @param { ResourceColor } value + * @returns { BlankAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + color(value: ResourceColor | undefined): this; + @memo + attributeModifier(modifier: AttributeModifier): this; +} + +@memo +@ComponentBuilder +export declare function Blank( + min?: number | string, + @memo + content_?: () => void, +): BlankAttribute \ No newline at end of file -- Gitee