diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 76710cbf8c99a9ef14aa12f6b30dc1abcd1143e0..8d512bed7e8f433968e158b89641692ed0942940 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 ac5f67e66b68de9207ed7df758eed7cd74442b9d..b4b04a3482127fb4cc8c20a278fbb9b52d40b92b 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 efdc5704448cd66cb777aeb835d5a83ec666fc64..328b358da53ec28b49a6c575f8ad08df1a8cab00 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 1bee50122778f82f354d5c25b685eb08668291b0..98ec8d6d85f19ff70150ea1e235afd508717bda3 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 a7655db24cec9f94382a65bb14e752815a6cd2a6..06d981ebc01be78293dfcc9411961cd52d0dfa8d 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