diff --git a/api/@internal/component/ets/blank.d.ts b/api/@internal/component/ets/blank.d.ts index 80958fccc971168677c02058b968d180706aaa06..72e36bb156a6cb230d62525ac151f81400dc385f 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 07af01f6727c670c3d347cb5d7873e344d9e6378..7ca466c24a8adce5e5739a47480016c02e155119 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; +} diff --git a/api/arkui/component/blank.d.ets b/api/arkui/component/blank.d.ets new file mode 100644 index 0000000000000000000000000000000000000000..ec600e0eabd1f81ad44a427fce85cadccf3478f4 --- /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(value: AttributeModifier): this; +} + +@memo +@ComponentBuilder +export declare function Blank( + min?: number | string, + @memo + content_?: () => void, +): BlankAttribute \ No newline at end of file