2019-01-09 20:38:09 +08:00
|
|
|
---
|
|
|
|
order: 0
|
|
|
|
title:
|
|
|
|
zh-CN: 基本
|
|
|
|
en-US: Basic
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
简单的展示。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Simplest Usage.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
|
|
|
import React from 'react';
|
2019-01-09 20:38:09 +08:00
|
|
|
import { Statistic, Row, Col, Button } from 'antd';
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2019-01-09 20:38:09 +08:00
|
|
|
<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} />
|
2019-05-07 14:57:32 +08:00
|
|
|
<Button style={{ marginTop: 16 }} type="primary">
|
|
|
|
Recharge
|
|
|
|
</Button>
|
2019-01-09 20:38:09 +08:00
|
|
|
</Col>
|
2020-10-23 10:09:31 +08:00
|
|
|
<Col span={12}>
|
|
|
|
<Statistic title="Active Users" value={112893} loading />
|
|
|
|
</Col>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Row>
|
2019-01-09 20:38:09 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-01-09 20:38:09 +08:00
|
|
|
```
|