forked from opentiny/tiny-vue
35 lines
797 B
Vue
35 lines
797 B
Vue
<template>
|
|
<div class="demo-tabs">
|
|
<tiny-tabs v-model="activeName" size="small">
|
|
<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="标签5" name="fifth"> 内容5 </tiny-tab-item>
|
|
</tiny-tabs>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { Tabs, TabItem } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyTabs: Tabs,
|
|
TinyTabItem: TabItem
|
|
},
|
|
data() {
|
|
return {
|
|
activeName: 'third'
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.demo-tabs {
|
|
height: 100%;
|
|
text-align: center;
|
|
}
|
|
</style>
|