ant-design-vue/components/tabs/demo/size.vue

31 lines
748 B
Vue
Raw Normal View History

2017-12-01 10:48:16 +00:00
<template>
2018-01-20 12:55:37 +00:00
<div>
<RadioGroup v-model="size" style="margin-bottom: 16px">
<RadioButton value="small">Small</RadioButton>
<RadioButton value="default">Default</RadioButton>
<RadioButton value="large">Large</RadioButton>
</RadioGroup>
<Tabs defaultActiveKey="2" :size="size">
2017-12-08 03:46:53 +00:00
<TabPane tab="Tab 1" key="1">Content of tab 1</TabPane>
<TabPane tab="Tab 2" key="2">Content of tab 2</TabPane>
<TabPane tab="Tab 3" key="3">Content of tab 3</TabPane>
2017-12-01 10:48:16 +00:00
</Tabs>
2018-01-20 12:55:37 +00:00
</div>
2017-12-01 10:48:16 +00:00
</template>
<script>
2018-01-20 12:55:37 +00:00
import { Tabs, Radio } from 'antd'
2017-12-01 10:48:16 +00:00
export default {
2018-01-20 12:55:37 +00:00
data () {
return {
size: 'small',
}
},
2017-12-01 10:48:16 +00:00
components: {
Tabs,
TabPane: Tabs.TabPane,
2018-01-20 12:55:37 +00:00
RadioGroup: Radio.Group,
RadioButton: Radio.Button,
2017-12-01 10:48:16 +00:00
},
}
</script>