ant-design/components/spin/demo/custom-indicator.md

27 lines
436 B
Markdown
Raw Normal View History

---
order: 6
title:
zh-CN: 自定义指示符
en-US: Custom spinning indicator
---
## zh-CN
使用自定义指示符。
## en-US
Use custom loading indicator.
```tsx
import { LoadingOutlined } from '@ant-design/icons';
2022-05-21 22:14:15 +08:00
import { Spin } from 'antd';
import React from 'react';
const antIcon = <LoadingOutlined style={{ fontSize: 24 }} spin />;
const App: React.FC = () => <Spin indicator={antIcon} />;
export default App;
2019-05-07 14:57:32 +08:00
```