mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
9be58078d2
* feat(demo): A-B * feat(demo): update B-checkbox * feat(demo): update CheckBox -DatePicker * feat(demo): update DatePicker - Form * feat(demo): update Form - List * feat(demo): update List-pagination * feat(demo): update List - skeleton * feat(demo): update skeleton - switch * feat(demo): update skeleton - switch * feat(demo): update switch - upload * feat(demo): update watermark * fix(demo): del hashId
38 lines
1.0 KiB
Vue
38 lines
1.0 KiB
Vue
<docs>
|
||
---
|
||
order: 5
|
||
title:
|
||
zh-CN: 大小
|
||
en-US: Size
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
大号页签用在页头区域,小号用在弹出框等较狭窄的容器内。
|
||
|
||
## en-US
|
||
Large size tabs are usally used in page header, and small size could be used in Modal.
|
||
|
||
</docs>
|
||
|
||
<template>
|
||
<div>
|
||
<a-radio-group v-model:value="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 v-model:activeKey="activeKey" :size="size">
|
||
<a-tab-pane key="1" tab="Tab 1">Content of tab 1</a-tab-pane>
|
||
<a-tab-pane key="2" tab="Tab 2">Content of tab 2</a-tab-pane>
|
||
<a-tab-pane key="3" tab="Tab 3">Content of tab 3</a-tab-pane>
|
||
</a-tabs>
|
||
</div>
|
||
</template>
|
||
<script lang="ts" setup>
|
||
import { ref } from 'vue';
|
||
import type { TabsProps } from 'ant-design-vue';
|
||
const size = ref<TabsProps['size']>('small');
|
||
const activeKey = ref('1');
|
||
</script>
|