From 80c2fdc18faa3f1ad256349857589393cbba08ef Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 6 Dec 2017 14:19:08 +0800 Subject: [PATCH] [new feature] Tab support sticky (#382) --- docs/demos/views/tab.vue | 16 +++++++-- docs/markdown/en-US/tab.md | 11 ++++++ docs/markdown/zh-CN/tab.md | 16 +++++++-- packages/tabs/index.vue | 54 +++++++++++++++++++++++++++--- packages/vant-css/src/tab.css | 63 +++++++++++++++++++++++------------ test/unit/components/tabs.vue | 5 +-- test/unit/specs/tabs.spec.js | 16 +++++++++ 7 files changed, 148 insertions(+), 33 deletions(-) diff --git a/docs/demos/views/tab.vue b/docs/demos/views/tab.vue index 320127e42..7517efc84 100644 --- a/docs/demos/views/tab.vue +++ b/docs/demos/views/tab.vue @@ -39,6 +39,14 @@ + + + + + {{ $t('content') }} {{ index }} + + + @@ -50,7 +58,8 @@ export default { title2: '横向滚动', title3: '禁用标签', title4: '样式风格', - title5: '点击事件' + title5: '点击事件', + title6: '粘性布局' }, 'en-US': { tab: 'Tab ', @@ -58,7 +67,8 @@ export default { title2: 'Swipe Tabs', title3: 'Disabled Tab', title4: 'Card Style', - title5: 'Click Event' + title5: 'Click Event', + title6: 'Sticky' } }, @@ -89,6 +99,8 @@ export default {