Skip to content

Commit

Permalink
refactor(types): sync components types (#205)
Browse files Browse the repository at this point in the history
* refactor(types): sync components types

* Update PageMeta.d.ts

* Update page-meta.md

---------

Co-authored-by: ZakaryCode <[email protected]>
Co-authored-by: Zakary <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2023
1 parent 8ebb68a commit b12c4f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/apis/navigate/openEmbeddedMiniProgram.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sidebar_label: openEmbeddedMiniProgram
| shortLink | `string` || 小程序链接,当传递该参数后,可以不传 appId 和 path。链接可以通过【小程序菜单】->【复制链接】获取。 |
| verify | `keyof Verify` || 校验方式 。默认为binding |
| noRelaunchIfPathUnchanged | `boolean` || 不 reLaunch 目标小程序,直接打开目标跳转的小程序退后台时的页面,需满足以下条件:1. 目标跳转的小程序生命周期未被销毁;2. 且目标当次启动的path、query、apiCategory与上次启动相同。默认值为 false 。 |
| allowFullScreen | `boolean` || 打开的小程序是否支持全屏 |
| success | `(res: TaroGeneral.CallbackResult) => void` || 接口调用成功的回调函数 |
| fail | `(res: TaroGeneral.CallbackResult) => void` || 接口调用失败的回调函数 |
| complete | `(res: TaroGeneral.CallbackResult) => void` || 接口调用结束的回调函数(调用成功、失败都会执行) |
Expand Down
2 changes: 2 additions & 0 deletions packages/taro/types/api/navigate/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ declare module '../../index' {
verify?: keyof Verify
/** 不 reLaunch 目标小程序,直接打开目标跳转的小程序退后台时的页面,需满足以下条件:1. 目标跳转的小程序生命周期未被销毁;2. 且目标当次启动的path、query、apiCategory与上次启动相同。默认值为 false 。 */
noRelaunchIfPathUnchanged?: boolean
/** 打开的小程序是否支持全屏 */
allowFullScreen?: boolean
/** 接口调用成功的回调函数 */
success?: (res: TaroGeneral.CallbackResult) => void
/** 接口调用失败的回调函数 */
Expand Down

0 comments on commit b12c4f0

Please sign in to comment.