From 3275a759ffef9dd119512c26952f635d18336cb7 Mon Sep 17 00:00:00 2001 From: wanglili12 Date: Fri, 29 Aug 2025 18:18:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=A9=BA=E6=A0=BC=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E5=B7=AE=E5=BC=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wanglili12 --- api/@internal/component/ets/common.d.ts | 2 +- api/@ohos.arkui.UIContext.d.ts | 14 +++++++------- api/arkui/BuilderNode.d.ts | 2 +- api/arkui/FrameNode.d.ts | 6 +++--- api/arkui/NodeController.d.ts | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 76710cbf8c..8d512bed7e 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -23660,7 +23660,7 @@ declare class CommonMethod { * Background image * * @param { ResourceStr | PixelMap } src - the background image source - * @param { BackgroundImageOptions } options - config the options + * @param { BackgroundImageOptions } [options] - config the options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform diff --git a/api/@ohos.arkui.UIContext.d.ts b/api/@ohos.arkui.UIContext.d.ts index ac5f67e66b..b4b04a3482 100644 --- a/api/@ohos.arkui.UIContext.d.ts +++ b/api/@ohos.arkui.UIContext.d.ts @@ -1303,7 +1303,7 @@ export declare class PromptAction { * * @param { ComponentContent } dialogContent - the content of custom dialog. * @param { promptAction.DialogController } controller - Dialog controller. - * @param { promptAction.BaseDialogOptions } options - Options. + * @param { promptAction.BaseDialogOptions } [options] - Options. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. @@ -1385,8 +1385,8 @@ export declare class PromptAction { * isModal = true and showInSubWindow = true cannot be used at the same time. * * @param { CustomBuilder | CustomBuilderWithId } builder - Dialog builder. - * @param { promptAction.DialogController } controller - Dialog controller. - * @param { promptAction.DialogOptions } options - Options. + * @param { promptAction.DialogController } [controller] - Dialog controller. + * @param { promptAction.DialogOptions } [options] - Options. * @returns { Promise } return the dialog id that will be used by closeCustomDialog. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. @@ -1448,7 +1448,7 @@ export declare class PromptAction { * * @param { ComponentContent } content - The content of popup. * @param { TargetInfo } target - The target of popup. - * @param { PopupCommonOptions } options - Options. + * @param { PopupCommonOptions } [options] - Options. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. @@ -1471,7 +1471,7 @@ export declare class PromptAction { * * @param { ComponentContent } content - The content of popup. * @param { PopupCommonOptions } options - Options. - * @param { boolean } partialUpdate - If true, only the specified properties in the options are updated, + * @param { boolean } [partialUpdate] - If true, only the specified properties in the options are updated, * otherwise the rest of the properties are overwritten with the default values. * Default value is false. * @returns { Promise } the promise returned by the function. @@ -1513,7 +1513,7 @@ export declare class PromptAction { * * @param { ComponentContent } content - The content of menu. * @param { TargetInfo } target - The target of menu. - * @param { MenuOptions } options - Options. + * @param { MenuOptions } [options] - Options. * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible causes: *
1. Mandatory parameters are left unspecified. @@ -1536,7 +1536,7 @@ export declare class PromptAction { * * @param { ComponentContent } content - The content of menu. * @param { MenuOptions } options - Options. - * @param { boolean } partialUpdate - If true, only the specified properties in the MenuOptions are updated, + * @param { boolean } [partialUpdate] - If true, only the specified properties in the MenuOptions are updated, * otherwise the rest of the properties are overwritten with the default values. * Default value is false. * @returns { Promise } the promise returned by the function. diff --git a/api/arkui/BuilderNode.d.ts b/api/arkui/BuilderNode.d.ts index efdc570444..328b358da5 100644 --- a/api/arkui/BuilderNode.d.ts +++ b/api/arkui/BuilderNode.d.ts @@ -549,7 +549,7 @@ export class BuilderNode { */ updateConfiguration(): void; - /** + /** * Dispatch event to targetNode. * * @param { InputEventType } event - The event which will be sent to the targetNode. diff --git a/api/arkui/FrameNode.d.ts b/api/arkui/FrameNode.d.ts index 1bee501227..98ec8d6d85 100644 --- a/api/arkui/FrameNode.d.ts +++ b/api/arkui/FrameNode.d.ts @@ -595,7 +595,7 @@ export declare class FrameNode { * @param { FrameNode } targetParent - The target parent node. * The target parent node must not be a declaratively created node, that is, a FrameNode that is not modifiable. * If it does not meet the specifications, an exception is thrown. - * @param { number } index - The index which the node is moved to. If the value is a negative number or invalid, + * @param { number } [index] - The index which the node is moved to. If the value is a negative number or invalid, * the node is moved to the end of the target parent node. Moves to the end of the target parent node by default. * If the target FrameNode has n nodes, the value range for index is 0 to n-1. * Default value: -1 @@ -1205,7 +1205,7 @@ export declare class FrameNode { * The combination of all target states can be calculated by the OR operation, * e.g. targetUIStates = UIState.PRESSED | UIState.FOCUSED. * @param { UIStatesChangeHandler } statesChangeHandler - The UI state chhanging handling function. - * @param { boolean } excludeInner - The flag to forbid the inner default state style handling, default is false. + * @param { boolean } [excludeInner] - The flag to forbid the inner default state style handling, default is false. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice @@ -2864,7 +2864,7 @@ export declare namespace typeNode { * * @param { UIContext } context - uiContext used to create the FrameNode. * @param { 'Toggle' } nodeType - node type. - * @param { ToggleOptions } options - ToggleOptions. + * @param { ToggleOptions } [options] - ToggleOptions. * @returns { Toggle } - Return Toggle type FrameNode. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice diff --git a/api/arkui/NodeController.d.ts b/api/arkui/NodeController.d.ts index a7655db24c..06d981ebc0 100644 --- a/api/arkui/NodeController.d.ts +++ b/api/arkui/NodeController.d.ts @@ -141,14 +141,14 @@ export declare abstract class NodeController { aboutToAppear(): void; /** - * AboutToDisappear Method. Executed before the associated NodeContainer is destroyed. + * AboutToDisappear Method. Executed when the associated NodeContainer is aboutToDisappear. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** - * AboutToDisappear Method. Executed before the associated NodeContainer is destroyed. + * AboutToDisappear Method. Executed when the associated NodeContainer is aboutToDisappear. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform -- Gitee