mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-09 18:43:23 +08:00

* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
27 lines
317 B
Markdown
27 lines
317 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';
|
|
|
|
export default () => (
|
|
<>
|
|
<Switch loading defaultChecked />
|
|
<br />
|
|
<Switch size="small" loading />
|
|
</>
|
|
);
|
|
```
|