You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
509 B
32 lines
509 B
6 years ago
|
---
|
||
|
order: 0
|
||
|
title:
|
||
|
zh-CN: 基本
|
||
|
en-US: Basic
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
简单的展示。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
Simplest Usage.
|
||
|
|
||
|
```jsx
|
||
|
import { Statistic, Row, Col, Button } from 'antd';
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Row gutter={16}>
|
||
|
<Col span={12}>
|
||
|
<Statistic title="Active Users" value={112893} />
|
||
|
</Col>
|
||
|
<Col span={12}>
|
||
|
<Statistic title="Account Balance (CNY)" value={112893} precision={2} />
|
||
|
<Button style={{ marginTop: 16 }} type="primary">Recharge</Button>
|
||
|
</Col>
|
||
|
</Row>,
|
||
|
mountNode
|
||
|
);
|
||
|
```
|