docs: improve interceptor typing (#9066)

This commit is contained in:
neverland
2021-07-19 15:39:02 +08:00
committed by GitHub
parent 2b0fdc4e26
commit 4a74aa523a
12 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ export default {
| swipe-threshold | Set swipe tabs threshold | _number \| string_ | `5` | - |
| title-active-color | Title active color | _string_ | - |
| title-inactive-color | Title inactive color | _string_ | - |
| before-change | Callback function before changing tabsreturn `false` to prevent changesupport return Promise | _(name) => boolean \| Promise_ | - |
| before-change | Callback function before changing tabsreturn `false` to prevent changesupport return Promise | _(name: number \| string) => boolean \| Promise\<boolean\>_ | - |
### Tab Props
+1 -1
View File
@@ -252,7 +252,7 @@ export default {
| swipe-threshold | 滚动阈值,标签数量超过阈值且总宽度超过标签栏宽度时开始横向滚动 | _number \| string_ | `5` |
| title-active-color | 标题选中态颜色 | _string_ | - |
| title-inactive-color | 标题默认态颜色 | _string_ | - |
| before-change | 切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise | _(name) => boolean \| Promise_ | - |
| before-change | 切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise | _(name: number \| string) => boolean \| Promise\<boolean\>_ | - |
### Tab Props