mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 15:59:38 +08:00
ff13ac0f5e
* init
* number format
* add Countdown
* ⚡ Try something ts stuff
* move out Countdown
* add format
* support countdown
* add prefix & suffix
* Move Number to Statistic
* adjust ts
* clean up
* roll back of lodash
* update doc & style
* variable of the less style
* add demo test
* full coverage
* hide title if not need
* update snapshot
* update accessiblity
* update color
* stop countdown when time is out
* formatTimeStr adjust
* use reset class
* add miss tab index
* update doc
* update title prop & snapshot
* rm additional aria. It's over design
* use card sample on unit demo
* sfc
* adjust demo
31 lines
483 B
Markdown
31 lines
483 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, 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
|
|
);
|
|
```
|