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.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2017-12-02 15:57:02 +08:00
|
|
|
import { Switch } from 'antd';
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2017-12-02 15:57:02 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-07-07 23:04:27 +08:00
|
|
|
<>
|
2017-12-02 15:57:02 +08:00
|
|
|
<Switch loading defaultChecked />
|
|
|
|
<br />
|
|
|
|
<Switch size="small" loading />
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|