diff --git a/api/@internal/component/ets/enums.d.ts b/api/@internal/component/ets/enums.d.ts index 461e6ff5a7c59dd37cdd6d767f98c32aecd8d2a2..ad99b0f8c3804518745c5c45d130a2f3d178fe5d 100644 --- a/api/@internal/component/ets/enums.d.ts +++ b/api/@internal/component/ets/enums.d.ts @@ -1445,22 +1445,28 @@ declare enum Placement { * * @since 9 */ -declare enum CopyOption { +declare enum CopyOptions { + /** + * Not allow share. + * @since 9 + */ + None = 0, + /** * Share in app. * @since 9 */ - InApp = 0, + InApp = 1, /** * Share in local device. * @since 9 */ - LocalDevice = 1, + LocalDevice = 2, /** * Share cross device. * @since 9 */ - CrossDevice = 2, + CrossDevice = 3, } diff --git a/api/@internal/component/ets/image.d.ts b/api/@internal/component/ets/image.d.ts index 49465ff58cc663a6fa2f7d492f834889229dd104..79c52f18471cf622e86cb13355a6624a1182be35 100644 --- a/api/@internal/component/ets/image.d.ts +++ b/api/@internal/component/ets/image.d.ts @@ -142,6 +142,12 @@ declare class ImageAttribute extends CommonMethod { */ syncLoad(value: boolean): ImageAttribute; + /** + * Allow replication. + * @since 9 + */ + copyOption(value: CopyOptions): ImageAttribute; + /** * This callback is triggered when an image is successfully loaded. * The size of the image source that is successfully loaded is returned, in pixels. diff --git a/api/@internal/component/ets/search.d.ts b/api/@internal/component/ets/search.d.ts index e9ebc0e0177e8d958e756856f4989566b6309c77..2713900664e789c0f475b67309c7e0ef83195c7c 100644 --- a/api/@internal/component/ets/search.d.ts +++ b/api/@internal/component/ets/search.d.ts @@ -105,7 +105,7 @@ declare class SearchAttribute extends CommonMethod { * Called when the copy option is set. * @since 9 */ - copyOption(value: boolean | CopyOption): SearchAttribute; + copyOption(value: CopyOptions): SearchAttribute; /** * Called when the text align is set. diff --git a/api/@internal/component/ets/text.d.ts b/api/@internal/component/ets/text.d.ts index 9bc74a09c3223a42a0e2d57f4af6530bd1d2d25f..9296f3f19b61eeb91537d05fe5e7317687e431df 100644 --- a/api/@internal/component/ets/text.d.ts +++ b/api/@internal/component/ets/text.d.ts @@ -123,7 +123,7 @@ declare class TextAttribute extends CommonMethod { * Allow replication. * @since 9 */ - copyOption(value: boolean | CopyOption): TextAttribute; + copyOption(value: CopyOptions): TextAttribute; } declare const TextInstance: TextAttribute; diff --git a/api/@internal/component/ets/text_area.d.ts b/api/@internal/component/ets/text_area.d.ts index 9fb110f19fd81f3bb4aa4371d99af2dc9548bf5e..ea6f4b5de36f8328dc19be6fbf16fb2e620603c9 100644 --- a/api/@internal/component/ets/text_area.d.ts +++ b/api/@internal/component/ets/text_area.d.ts @@ -159,7 +159,7 @@ declare class TextAreaAttribute extends CommonMethod { * Called when the copy option is set. * @since 9 */ - copyOption(value: boolean | CopyOption): TextAreaAttribute; + copyOption(value: CopyOptions): TextAreaAttribute; } declare const TextArea: TextAreaInterface; diff --git a/api/@internal/component/ets/text_input.d.ts b/api/@internal/component/ets/text_input.d.ts index c8501c2c148cf5a2f02906704a034b2ea7649542..03ec1200f5b3431b78cd4b5b8c97ee8b6e6fceea 100644 --- a/api/@internal/component/ets/text_input.d.ts +++ b/api/@internal/component/ets/text_input.d.ts @@ -262,7 +262,7 @@ declare class TextInputAttribute extends CommonMethod { * Called when the copy option is set. * @since 9 */ - copyOption(value: boolean | CopyOption): TextInputAttribute; + copyOption(value: CopyOptions): TextInputAttribute; /** * Called when the password show/hide icon is set.