parent
76789a8b7d
commit
12facb0623
@ -1,16 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<Tabs defaultActiveKey="2" size="small">
|
<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">
|
||||||
<TabPane tab="Tab 1" key="1">Content of tab 1</TabPane>
|
<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 2" key="2">Content of tab 2</TabPane>
|
||||||
<TabPane tab="Tab 3" key="3">Content of tab 3</TabPane>
|
<TabPane tab="Tab 3" key="3">Content of tab 3</TabPane>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Tabs } from 'antd'
|
import { Tabs, Radio } from 'antd'
|
||||||
export default {
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
size: 'small',
|
||||||
|
}
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
Tabs,
|
Tabs,
|
||||||
TabPane: Tabs.TabPane,
|
TabPane: Tabs.TabPane,
|
||||||
|
RadioGroup: Radio.Group,
|
||||||
|
RadioButton: Radio.Button,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in new issue