mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-26 01:17:56 +08:00
20 lines
218 B
Markdown
20 lines
218 B
Markdown
# 两种大小
|
|
|
|
- order: 3
|
|
|
|
`size="small"` 表示小号开关。
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { Switch } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<div>
|
|
<Switch />
|
|
|
|
<Switch size="small" />
|
|
</div>
|
|
, mountNode);
|
|
````
|