mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-30 19:02:32 +00:00
!5782 【Naivgation】onShown接口修改
Merge pull request !5782 from 王一卉/onShown
This commit is contained in:
commit
59666e0c8f
@ -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.
|
||||
|
4
api/@internal/component/ets/navigation.d.ts
vendored
4
api/@internal/component/ets/navigation.d.ts
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user