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: 1
|
|
|
|
title:
|
|
|
|
zh-CN: 单位
|
|
|
|
en-US: Unit
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
通过前缀和后缀添加单位。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Add unit through `prefix` and `suffix`.
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
import { Statistic, Row, Col, Icon } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<Row gutter={16}>
|
|
|
|
<Col span={12}>
|
|
|
|
<Statistic title="Feedback" value={1128} prefix={<Icon type="like" />} />
|
|
|
|
</Col>
|
|
|
|
<Col span={12}>
|
|
|
|
<Statistic title="Unmerged" value={93} suffix="/ 100" />
|
|
|
|
</Col>
|
|
|
|
</Row>,
|
|
|
|
mountNode,
|
|
|
|
);
|
|
|
|
```
|