feat(Tabbar): add before-change prop (#7081)

This commit is contained in:
neverland
2020-09-02 11:45:11 +08:00
committed by GitHub
parent b276fb5a78
commit d55585314f
5 changed files with 90 additions and 3 deletions
+1
View File
@@ -168,6 +168,7 @@ export default {
| route | 是否开启路由模式 | _boolean_ | `false` |
| placeholder `v2.6.0` | 固定在底部时,是否在标签位置生成一个等高的占位元素 | _boolean_ | `false` |
| safe-area-inset-bottom | 是否开启[底部安全区适配](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei),设置 fixed 时默认开启 | _boolean_ | `false` |
| before-change `v2.10.4` | 切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise | _(name) => boolean \| Promise_ | - |
### Tabbar Events