diff --git a/api/arkui/CommonModifier.d.ets b/api/arkui/CommonModifier.static.d.ets similarity index 92% rename from api/arkui/CommonModifier.d.ets rename to api/arkui/CommonModifier.static.d.ets index cbf721a0ad59dbdc6f954facc6882b57c26c8827..4f915f82e3bb7e850768d70a47c8291fb70c386f 100644 --- a/api/arkui/CommonModifier.d.ets +++ b/api/arkui/CommonModifier.static.d.ets @@ -1,5 +1,6 @@ +'use static' /* - * Copyright (c) 2024 Huawei Device Co., Ltd. + * Copyright (c) 2025 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 @@ -12,9 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + /** * @file * @kit ArkUI + * @arkts 1.2 */ import { AttributeModifier, CommonAttribute } from './component/common'; diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets index 31b466c06d64602614419e728f0cf9032ef16383..f1b81b06f3869855908099726211efb306199018 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -1,4 +1,4 @@ -"use static" +'use static' /* * Copyright (c) 2021-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -9770,61 +9770,59 @@ export declare interface MenuElement { */ action: () => void; } + /** * Defines the attribute modifier. * * @interface AttributeModifier * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 */ export declare interface AttributeModifier { - /** - * Defines the normal update attribute function. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - default applyNormalAttribute(instance: T) : void; - /** - * Defines the pressed update attribute function. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - default applyPressedAttribute(instance: T) : void; - /** - * Defines the focused update attribute function. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - default applyFocusedAttribute(instance: T) : void; - /** - * Defines the disabled update attribute function. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - default applyDisabledAttribute(instance: T) : void; - /** - * Defines the selected update attribute function. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - default applySelectedAttribute(instance: T) : void; + /** + * Defines the normal update attribute function. + * + * @param { T } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default applyNormalAttribute(instance: T) : void; + + /** + * Defines the pressed update attribute function. + * + * @param { T } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default applyPressedAttribute(instance: T) : void; + + /** + * Defines the focused update attribute function. + * + * @param { T } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default applyFocusedAttribute(instance: T) : void; + + /** + * Defines the disabled update attribute function. + * + * @param { T } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default applyDisabledAttribute(instance: T) : void; + + /** + * Defines the selected update attribute function. + * + * @param { T } instance + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default applySelectedAttribute(instance: T) : void; } /** * Defines the content modifier.