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

28 lines
331 B
Markdown
Raw Normal View History

2017-12-02 15:57:02 +08:00
---
order: 4
title:
zh-CN: 加载中
en-US: Loading
---
## zh-CN
标识开关操作仍在执行中。
## en-US
Mark a pending state of switch.
2019-05-07 14:57:32 +08:00
```jsx
2017-12-02 15:57:02 +08:00
import { Switch } from 'antd';
ReactDOM.render(
<div>
<Switch loading defaultChecked />
<br />
<Switch size="small" loading />
2018-06-27 15:55:04 +08:00
</div>,
2019-05-07 14:57:32 +08:00
mountNode,
2018-11-28 15:00:03 +08:00
);
2019-05-07 14:57:32 +08:00
```