mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +08:00
64b905e9bd
* update icons deps * update all icon ref * fix lint * update snapshot
32 lines
524 B
Markdown
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,
|
|
);
|
|
```
|