2018-02-27 04:14:29 +00:00
|
|
|
<cn>
|
|
|
|
#### 两种大小
|
|
|
|
`size="small"` 表示小号开关。
|
|
|
|
</cn>
|
|
|
|
|
|
|
|
<us>
|
|
|
|
#### Two sizes
|
|
|
|
`size="small"` represents a small sized switch.
|
|
|
|
</us>
|
|
|
|
|
2019-10-09 10:32:23 +00:00
|
|
|
```tpl
|
2018-02-27 04:14:29 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2019-09-28 12:45:07 +00:00
|
|
|
<a-switch defaultChecked />
|
|
|
|
<br />
|
|
|
|
<a-switch size="small" defaultChecked />
|
2018-02-27 04:14:29 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
```
|