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

19 lines
223 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 3
title: 两种大小
---
2015-12-06 16:39:01 +08:00
`size="small"` 表示小号开关。
````jsx
import { Switch } from 'antd';
ReactDOM.render(
<div>
<Switch />
&nbsp;
<Switch size="small" />
</div>
, mountNode);
2015-12-06 16:39:01 +08:00
````