2019-01-09 20:38:09 +08:00
|
|
|
---
|
|
|
|
order: 1
|
|
|
|
title:
|
|
|
|
zh-CN: 单位
|
|
|
|
en-US: Unit
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
通过前缀和后缀添加单位。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Add unit through `prefix` and `suffix`.
|
|
|
|
|
|
|
|
```jsx
|
2019-08-13 14:07:17 +08:00
|
|
|
import { Statistic, Row, Col } from 'antd';
|
2019-11-28 12:34:33 +08:00
|
|
|
import { LikeOutlined } from '@ant-design/icons';
|
2019-01-09 20:38:09 +08:00
|
|
|
|
2022-04-03 23:27:45 +08:00
|
|
|
export default () => (
|
2019-01-09 20:38:09 +08:00
|
|
|
<Row gutter={16}>
|
|
|
|
<Col span={12}>
|
2019-11-28 12:34:33 +08:00
|
|
|
<Statistic title="Feedback" value={1128} prefix={<LikeOutlined />} />
|
2019-01-09 20:38:09 +08:00
|
|
|
</Col>
|
|
|
|
<Col span={12}>
|
|
|
|
<Statistic title="Unmerged" value={93} suffix="/ 100" />
|
|
|
|
</Col>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Row>
|
2019-01-09 20:38:09 +08:00
|
|
|
);
|
|
|
|
```
|