mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 16:39:41 +08:00
4ca2ed63bd
* feat: V5 Responsive Circle Progress * fix: add useMemo * Update components/progress/demo/circle-micro.md Co-authored-by: MadCcc <1075746765@qq.com> * Update components/progress/demo/circle-micro.md Co-authored-by: MadCcc <1075746765@qq.com> * Update components/progress/demo/circle-micro.md Co-authored-by: MadCcc <1075746765@qq.com> * Update components/progress/progress.tsx Co-authored-by: MadCcc <1075746765@qq.com> * fix: raname processInfo * fix: add dep list * fix: add demo * fix: fix width * fix: fix width * fix: fix snap * fix: rename * fix: snap * Update components/progress/Circle.tsx Co-authored-by: MadCcc <1075746765@qq.com> * fix: rename * fix: fix style * fix: update demo * fix: fix style * fix: fix ci * fix: fix style * fix: del verticalAlign * fix: fix * fix: fix cicd * fix: update demo * fix: update demo * fix: fix style * fix: fix style Co-authored-by: MadCcc <1075746765@qq.com>
29 lines
505 B
Markdown
29 lines
505 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 自定义文字格式
|
|
en-US: Custom text format
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
`format` 属性指定格式。
|
|
|
|
## en-US
|
|
|
|
You can set a custom text by setting the `format` prop.
|
|
|
|
```tsx
|
|
import { Progress } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Progress type="circle" percent={75} format={percent => `${percent} Days`} />
|
|
<Progress type="circle" percent={100} format={() => 'Done'} style={{ marginLeft: 8 }} />
|
|
</>
|
|
);
|
|
|
|
export default App;
|
|
```
|