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

36 lines
906 B
Markdown
Raw Normal View History

2018-03-22 14:17:35 +00:00
<cn>
#### 大小
大号页签用在页头区域,小号用在弹出框等较狭窄的容器内。
</cn>
<us>
#### Size
Large size tabs are usally used in page header, and small size could be used in Modal.
</us>
2019-10-09 10:32:23 +00:00
```tpl
2018-03-22 14:17:35 +00:00
<template>
2019-09-28 12:45:07 +00:00
<div>
<a-radio-group v-model="size" style="margin-bottom: 16px">
<a-radio-button value="small">Small</a-radio-button>
<a-radio-button value="default">Default</a-radio-button>
<a-radio-button value="large">Large</a-radio-button>
</a-radio-group>
<a-tabs defaultActiveKey="2" :size="size">
<a-tab-pane tab="Tab 1" key="1">Content of tab 1</a-tab-pane>
<a-tab-pane tab="Tab 2" key="2">Content of tab 2</a-tab-pane>
<a-tab-pane tab="Tab 3" key="3">Content of tab 3</a-tab-pane>
</a-tabs>
</div>
2018-03-22 14:17:35 +00:00
</template>
<script>
2019-09-28 12:45:07 +00:00
export default {
data() {
return {
size: 'small',
};
},
};
2018-03-22 14:17:35 +00:00
</script>
```