cjd-parkball
Version:
> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用
33 lines (25 loc) • 545 B
Markdown
category: 2
title: 自定义文字格式
title_en: Custom text format
zh-CN
`format` 属性指定格式。
en-US
You can set a custom text by setting the `format` prop.
````jsx
import { Progress } from 'parkball';
ReactDOM.render(
<div>
<Progress type="circle" percent={75} format={percent => `${percent} Days`} />
<Progress type="circle" percent={100} format={() => 'Done'} />
</div>,
mountNode);
````
<style>
div.ant-progress-circle,
div.ant-progress-line {
margin-right: 8px;
margin-bottom: 8px;
}
</style>