feat(Tab): add scrollspy prop (#5273)
This commit is contained in:
@@ -93,6 +93,14 @@
|
||||
</van-tab>
|
||||
</van-tabs>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="$t('title10')">
|
||||
<van-tabs scrollspy sticky>
|
||||
<van-tab :title="$t('tab') + index" v-for="index in 10" :key="index">
|
||||
{{ $t('content') }} {{ index }}
|
||||
</van-tab>
|
||||
</van-tabs>
|
||||
</demo-block>
|
||||
</demo-section>
|
||||
</template>
|
||||
|
||||
@@ -109,6 +117,7 @@ export default {
|
||||
title7: '自定义标签',
|
||||
title8: '切换动画',
|
||||
title9: '滑动切换',
|
||||
title10: '滚动导航',
|
||||
disabled: ' 已被禁用',
|
||||
matchByName: '通过名称匹配'
|
||||
},
|
||||
@@ -123,6 +132,7 @@ export default {
|
||||
title7: 'Custom Tab',
|
||||
title8: 'Switch Animation',
|
||||
title9: 'Swipeable',
|
||||
title10: 'Scrollspy',
|
||||
disabled: ' is disabled',
|
||||
matchByName: 'Match By Name'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user