mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
28 lines
325 B
Markdown
28 lines
325 B
Markdown
---
|
|
order: 4
|
|
title:
|
|
zh-CN: 加载中
|
|
en-US: Loading
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
标识开关操作仍在执行中。
|
|
|
|
## en-US
|
|
|
|
Mark a pending state of switch.
|
|
|
|
```jsx
|
|
import { Switch } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<>
|
|
<Switch loading defaultChecked />
|
|
<br />
|
|
<Switch size="small" loading />
|
|
</>,
|
|
mountNode,
|
|
);
|
|
```
|