ant-design/components/statistic/demo/unit.md
二货机器人 64b905e9bd
chore: Update @ant-design/icons deps (#19979)
* update icons deps

* update all icon ref

* fix lint

* update snapshot
2019-11-28 12:34:33 +08:00

32 lines
524 B
Markdown

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