!5782 【Naivgation】onShown接口修改

Merge pull request !5782 from 王一卉/onShown
This commit is contained in:
openharmony_ci 2023-06-19 09:34:58 +00:00 committed by Gitee
commit 59666e0c8f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 4 deletions

View File

@ -135,12 +135,12 @@ declare class NavDestinationAttribute extends CommonMethod<NavDestinationAttribu
/**
* Invoked when the navDestination page is displayed.
* @param { (param: unknown) => void) } callback Indicates callback when the navDestination page is displayed.
* @param { () => void) } callback Indicates callback when the navDestination page is displayed.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
onShown(callback: (param: unknown) => void): NavDestinationAttribute;
onShown(callback: () => void): NavDestinationAttribute;
/**
* Invoked when the navDestination is hidden.

View File

@ -311,7 +311,7 @@ declare class NavPathStack {
pop(): NavPathInfo | undefined;
/**
* Pops the specified route page out of the stack.
* Pops the stack back to the route page specified by the name.
* @param { string } name Indicates the name of the route page to be popped.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @returns { number } Returns the index of the route page if it exists in the stack, otherwise returns -1;
@ -321,7 +321,7 @@ declare class NavPathStack {
popTo(name: string): number;
/**
* Pops the specified route page out of the stack.
* Pops the stack back to the route page specified by the index.
* @param { number } index Indicates the index of the route page to be popped.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform