From bd858392b6a31d6b527fd5abb1c0e5767715d042 Mon Sep 17 00:00:00 2001 From: wanglili12 Date: Wed, 27 Aug 2025 21:34:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=91=8A=E8=AD=A6?= 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/FrameNode.d.ts | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 77d8e7ce92..9a9b462156 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -23700,7 +23700,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 d985173048..521e20bf44 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/FrameNode.d.ts b/api/arkui/FrameNode.d.ts index a5b54323d3..8b0e8f7136 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 @@ -2849,7 +2849,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 -- Gitee