!10125 feat:add common builder api

Merge pull request !10125 from yangziyong/common
This commit is contained in:
openharmony_ci 2024-04-10 04:00:30 +00:00 committed by Gitee
commit efa9f0ae7f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -12755,6 +12755,59 @@ declare interface AttributeModifier<T> {
applySelectedAttribute?(instance: T) : void;
}
/**
* Defines the content modifier.
*
* @interface ContentModifier
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 12
*/
declare interface ContentModifier<T> {
/**
* Defining applyContent function.
*
* @returns { WrappedBuilder<[T]> }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 12
*/
applyContent(): WrappedBuilder<[T]>
}
/**
* Defines the common configuration.
*
* @interface CommonConfiguration
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 12
*/
declare interface CommonConfiguration<T> {
/**
* If the value is true, the contentModifier is available and can respond to operations such as triggerChange.
* If it is set to false, triggerChange operations are not responded.
*
* @type { boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 12
*/
enabled: boolean,
/**
* Obtains the contentModifier instance object
*
* @type { ContentModifier<T> }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 12
*/
contentModifier: ContentModifier<T>
}
/**
* Outline Style
*