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

20 lines
281 B
Markdown

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