From 74f1f3c0301b817f928974de92624ebe0db22716 Mon Sep 17 00:00:00 2001 From: wangweiyuan Date: Thu, 19 Jun 2025 20:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=8B=AC=E7=AB=8B=E5=9B=BE?= =?UTF-8?q?=E5=B1=82=E6=96=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangweiyuan --- .../component/ets/effect_component.d.ts | 45 ++++++++++++++++--- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/api/@internal/component/ets/effect_component.d.ts b/api/@internal/component/ets/effect_component.d.ts index 38db97243c..c09b5630fe 100644 --- a/api/@internal/component/ets/effect_component.d.ts +++ b/api/@internal/component/ets/effect_component.d.ts @@ -50,6 +50,43 @@ interface EffectComponentInterface { (options?: EffectComponentOptions): EffectComponentAttribute; } +/** + * Effect layer enum. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + */ +declare enum EffectLayer { + /** + * No layer. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + */ + NONE = 0, + + /** + * Charge motion layer. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + */ + CHARGE_MOTION = 1, + + /** + * Charge text layer. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + */ + CHARGE_TEXT = 2 +} + /** * Defines the Effect Component constructor options. * @@ -60,16 +97,14 @@ interface EffectComponentInterface { */ declare interface EffectComponentOptions { - /** - * Use this to determine the component layer level. Set true to put the component to the independent layer. Set false - * to put the component to the unified render layer. Default value is false. + /** Use this to determine the component layer 1evel. Default value is none. * - * @type { ?boolean } + * @type { ?EffectLayer } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 20 */ - independentLayer?: boolean; + effectLayer?: EffectLayer; } /** -- Gitee