mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 03:14:07 +08:00
39 lines
668 B
Markdown
39 lines
668 B
Markdown
---
|
|
order: 0
|
|
title:
|
|
zh-CN: 基本
|
|
en-US: Basic
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
简单的展示。
|
|
|
|
## en-US
|
|
|
|
Simplest Usage.
|
|
|
|
```tsx
|
|
import { Button, Col, Row, Statistic } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<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>
|
|
<Col span={12}>
|
|
<Statistic title="Active Users" value={112893} loading />
|
|
</Col>
|
|
</Row>
|
|
);
|
|
|
|
export default App;
|
|
```
|