From 0d5e3710a671ea98d747b44e50f43df638b9caa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B0=B8=E5=87=AF?= Date: Mon, 9 Jun 2025 11:08:44 +0800 Subject: [PATCH] freeze MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘永凯 --- api/arkui/BuilderNode.d.ts | 12 ++++++++++++ api/arkui/ComponentContent.d.ts | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/api/arkui/BuilderNode.d.ts b/api/arkui/BuilderNode.d.ts index 441ef614f3..acd1743cdb 100644 --- a/api/arkui/BuilderNode.d.ts +++ b/api/arkui/BuilderNode.d.ts @@ -527,4 +527,16 @@ export class BuilderNode { * @since 20 */ postInputEvent(event: InputEventType): boolean; + + /** + * Set if the BuilderNode inherits the freezing policy of the parent CustomComponent, ComponentContent, or BuilderNode. + * + * @param { boolean } enabled - If the BuilderNode inherits the freezing policy of the parent CustomComponent, ComponentContent, or BuilderNode. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + inheritFreezeOptions(enabled: boolean): void; } diff --git a/api/arkui/ComponentContent.d.ts b/api/arkui/ComponentContent.d.ts index 527d4fcbf1..152639f71e 100644 --- a/api/arkui/ComponentContent.d.ts +++ b/api/arkui/ComponentContent.d.ts @@ -124,4 +124,16 @@ export class ComponentContent extends Content{ * @since 12 */ updateConfiguration(): void; + + /** + * Set if the ComponentContent inherits the freezing policy of the parent CustomComponent, ComponentContent, or BuilderNode. + * + * @param { boolean } enabled - If the ComponentContent inherits the freezing policy of the parent CustomComponent, ComponentContent, or BuilderNode. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + inheritFreezeOptions(enabled: boolean): void; } -- Gitee