From a1a6bacb3c290d9d18d6cb007288c0a44dfe14e0 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 26 Nov 2018 20:58:30 +0800 Subject: [PATCH] [improvement] Tab: optimize transition (#2151) --- packages/tab/en-US.md | 2 +- packages/tab/index.vue | 2 +- packages/tab/test/__snapshots__/demo.spec.js.snap | 2 +- packages/tab/zh-CN.md | 2 +- packages/tabs/index.less | 3 ++- packages/tabs/index.vue | 6 +++--- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/tab/en-US.md b/packages/tab/en-US.md index cbd501089..b002a007e 100644 --- a/packages/tab/en-US.md +++ b/packages/tab/en-US.md @@ -153,7 +153,7 @@ In swipeable mode, you can switch tabs with swipe gestrue in the content | v-model | Index of active tab | `String` `Number` | `0` | | color | Tab color | `String` | `#f44` | | type | Can be set to `line` `card` | `String` | `line` | -| duration | Toggle tab's animation time | `Number` | `0.4` | - | +| duration | Toggle tab's animation time | `Number` | `0.3` | - | | line-width | Width of tab line (px) | `Number` | Width of active tab | | swipe-threshold | Set swipe tabs threshold | `Number` | `4` | - | | sticky | Whether to use sticky mode | `Boolean` | `false` | diff --git a/packages/tab/index.vue b/packages/tab/index.vue index 01dfa1a3c..fe468f9a2 100644 --- a/packages/tab/index.vue +++ b/packages/tab/index.vue @@ -1,7 +1,7 @@