mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-06 02:15:35 +08:00
64b905e9bd
* update icons deps * update all icon ref * fix lint * update snapshot
524 B
524 B
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
通过前缀和后缀添加单位。
en-US
Add unit through prefix
and suffix
.
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,
);