diff --git a/src/tab/README.md b/src/tab/README.md index 714912b34..5cafafa98 100644 --- a/src/tab/README.md +++ b/src/tab/README.md @@ -56,7 +56,7 @@ export default { ### Swipe Tabs -By default more than 4 tabs, you can scroll through the tabs. You can set `swipe-threshold` attribute to customize threshold number. +By default more than 5 tabs, you can scroll through the tabs. You can set `swipe-threshold` attribute to customize threshold number. ```html @@ -234,7 +234,7 @@ export default { | lazy-render | Whether to enable tab content lazy render | _boolean_ | `true` | | scrollspy `v2.3.0` | Whether to use scrollspy mode | _boolean_ | `false` | | offset-top `v2.8.7` | Sticky offset top , supports `px` `vw` `rem` unit, default `px` | _number \| string_ | `0` | -| swipe-threshold | Set swipe tabs threshold | _number \| string_ | `4` | - | +| 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 `v2.9.3` | Callback function before changing tabs,return `false` to prevent change,support return Promise | _(name) => boolean \| Promise_ | - | diff --git a/src/tab/README.zh-CN.md b/src/tab/README.zh-CN.md index a2ba20c5b..6ef2ae2ed 100644 --- a/src/tab/README.zh-CN.md +++ b/src/tab/README.zh-CN.md @@ -59,7 +59,7 @@ export default { ### 标签栏滚动 -标签数量超过 4 个时,标签栏可以在水平方向上滚动,切换时会自动将当前标签居中。 +标签数量超过 5 个时,标签栏可以在水平方向上滚动,切换时会自动将当前标签居中。 ```html @@ -241,7 +241,7 @@ export default { | lazy-render | 是否开启延迟渲染(首次切换到标签时才触发内容渲染) | _boolean_ | `true` | | scrollspy `v2.3.0` | 是否开启滚动导航 | _boolean_ | `false` | | offset-top `v2.8.7` | 粘性定位布局下与顶部的最小距离,支持 `px` `vw` `rem` 单位,默认 `px` | _number \| string_ | `0` | -| swipe-threshold | 滚动阈值,标签数量超过阈值时开始横向滚动 | _number \| string_ | `4` | +| swipe-threshold | 滚动阈值,标签数量超过阈值时开始横向滚动 | _number \| string_ | `5` | | title-active-color | 标题选中态颜色 | _string_ | - | | title-inactive-color | 标题默认态颜色 | _string_ | - | | before-change `v2.9.3` | 切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 Promise | _(name) => boolean \| Promise_ | - |