mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-02-25 19:52:16 +00:00
!10125 feat:add common builder api
Merge pull request !10125 from yangziyong/common
This commit is contained in:
commit
efa9f0ae7f
53
api/@internal/component/ets/common.d.ts
vendored
53
api/@internal/component/ets/common.d.ts
vendored
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user