mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 06:03:30 +00:00
!12537 传builder类型的opencustomdialog支持在uicontext中使用
Merge pull request !12537 from luoying_ace/ly0709
This commit is contained in:
commit
b5576ecf28
35
api/@ohos.arkui.UIContext.d.ts
vendored
35
api/@ohos.arkui.UIContext.d.ts
vendored
@ -1190,6 +1190,39 @@ export class PromptAction {
|
||||
* @since 12
|
||||
*/
|
||||
closeCustomDialog<T extends Object>(dialogContent: ComponentContent<T>): Promise<void>;
|
||||
|
||||
/**
|
||||
* Open the custom dialog.
|
||||
*
|
||||
* @param { promptAction.CustomDialogOptions } options - Options.
|
||||
* @returns { Promise<number> } return the dialog id that will be used by closeCustomDialog.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes:
|
||||
* <br> 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameters types.
|
||||
* <br> 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 100001 - Internal error.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
openCustomDialog(options: promptAction.CustomDialogOptions): Promise<number>;
|
||||
|
||||
/**
|
||||
* Close the custom dialog.
|
||||
*
|
||||
* @param { number } dialogId - the dialog id that returned by openCustomDialog.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes:
|
||||
* <br> 1. Mandatory parameters are left unspecified.
|
||||
* <br> 2. Incorrect parameters types.
|
||||
* <br> 3. Parameter verification failed.
|
||||
* @throws { BusinessError } 100001 - Internal error.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
closeCustomDialog(dialogId: number): void;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -3191,4 +3224,4 @@ export const enum SwiperDynamicSyncSceneType {
|
||||
* @since 12
|
||||
*/
|
||||
ANIMATION = 1
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user