forked from opentiny/tiny-vue
28 lines
826 B
Vue
28 lines
826 B
Vue
<template>
|
|
<tiny-tabs v-model="activeName" :swipeable="true">
|
|
<tiny-tab-item title="标签1" name="first"> 内容1 </tiny-tab-item>
|
|
<tiny-tab-item title="标签2" name="second"> 内容2 </tiny-tab-item>
|
|
<tiny-tab-item title="标签3" name="third"> 内容3 </tiny-tab-item>
|
|
<tiny-tab-item title="标签4" name="fourth"> 内容4 </tiny-tab-item>
|
|
<tiny-tab-item title="标签4" name="fifth"> 内容5 </tiny-tab-item>
|
|
<tiny-tab-item title="标签4" name="sixth"> 内容6 </tiny-tab-item>
|
|
<tiny-tab-item title="标签4" name="seventh"> 内容7 </tiny-tab-item>
|
|
</tiny-tabs>
|
|
</template>
|
|
|
|
<script>
|
|
import { Tabs, TabItem } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyTabs: Tabs,
|
|
TinyTabItem: TabItem
|
|
},
|
|
data() {
|
|
return {
|
|
activeName: 'second'
|
|
}
|
|
}
|
|
}
|
|
</script>
|