mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 02:18:07 +08:00
6776bb8916
* 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
24 lines
381 B
Markdown
24 lines
381 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 自定义指示符
|
|
en-US: Custom spinning indicator
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
使用自定义指示符。
|
|
|
|
## en-US
|
|
|
|
Use custom loading indicator.
|
|
|
|
```jsx
|
|
import { Spin } from 'antd';
|
|
import { LoadingOutlined } from '@ant-design/icons';
|
|
|
|
const antIcon = <LoadingOutlined style={{ fontSize: 24 }} spin />;
|
|
|
|
export default () => <Spin indicator={antIcon} />;
|
|
```
|