You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
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';
|
|
|
|
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;
|
|
|
|
```
|