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

20 lines
278 B
Markdown

<cn>
#### 两种大小
`size="small"` 表示小号开关。
</cn>
<us>
#### Two sizes
`size="small"` represents a small sized switch.
</us>
```html
<template>
<div>
<a-switch defaultChecked/>
<br>
<a-switch size="small" defaultChecked/>
</div>
</template>
```