ant-design-vue/antdv-demo/docs/switch/demo/size.md

20 lines
283 B
Markdown
Raw Permalink Normal View History

2021-03-12 07:48:30 +00:00
<cn>
#### 两种大小
`size="small"` 表示小号开关。
</cn>
<us>
#### Two sizes
`size="small"` represents a small sized switch.
</us>
```vue
<template>
<div>
<a-switch default-checked />
<br />
<a-switch size="small" default-checked />
</div>
</template>
```