From 824a058a126fdb953720d4959626b0d828d63739 Mon Sep 17 00:00:00 2001 From: dov1s Date: Wed, 3 Sep 2025 19:24:02 +0800 Subject: [PATCH] fix parallelizeui Signed-off-by: dov1s Change-Id: I84fc40b8d2704fcb15b754caa15124ccfd93b4ac --- ...s => @ohos.arkui.Parallelize.static.d.ets} | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) rename api/{@ohos.arkui.Parallelize.d.ets => @ohos.arkui.Parallelize.static.d.ets} (78%) diff --git a/api/@ohos.arkui.Parallelize.d.ets b/api/@ohos.arkui.Parallelize.static.d.ets similarity index 78% rename from api/@ohos.arkui.Parallelize.d.ets rename to api/@ohos.arkui.Parallelize.static.d.ets index 7c061267c9..99fba20895 100644 --- a/api/@ohos.arkui.Parallelize.d.ets +++ b/api/@ohos.arkui.Parallelize.static.d.ets @@ -19,18 +19,14 @@ * @arkts 1.2 */ -import { ComponentBuilder } from './arkui/stateManagement/runtime' -import { CustomBuilder } from './arkui/component/builder'; +import { memo, ComponentBuilder } from './arkui/stateManagement/runtime' /** * Describe the options for the ParallelizeUI. * * @interface ParallelOption * @syscap SystemCapability.ArkUI.ArkUI.Full -* @crossplatform -* @atomicservice * @since 20 -* @arkts 1.2 */ export interface ParallelOption { /** @@ -38,10 +34,7 @@ export interface ParallelOption { * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 - * @arkts 1.2 */ enable?: boolean, } @@ -51,10 +44,7 @@ export interface ParallelOption { * * @interface UIParallelAttribute * @syscap SystemCapability.ArkUI.ArkUI.Full -* @crossplatform -* @atomicservice * @since 20 -* @arkts 1.2 */ export interface UIParallelAttribute { } @@ -63,16 +53,14 @@ export interface UIParallelAttribute { * Define the constructor of ParallelizeUI. * * @param { ParallelOption | undefined } [options] - ParallelizeUI Option - * @param { CustomBuilder } [content] - tail closure for ParallelizeUI + * @param { () => void } [content_] - tail closure for ParallelizeUI * @returns { UIParallelAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 - * @arkts 1.2 */ @ComponentBuilder export declare function ParallelizeUI( options?: ParallelOption | undefined, - content?: CustomBuilder, + @memo + content_?: () => void, ): UIParallelAttribute -- Gitee