mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
78 lines
1.4 KiB
TypeScript
78 lines
1.4 KiB
TypeScript
import React from 'react';
|
|
import { Badge, Descriptions } from 'antd';
|
|
import type { DescriptionsProps } from 'antd';
|
|
|
|
const items: DescriptionsProps['items'] = [
|
|
{
|
|
key: '1',
|
|
label: 'Product',
|
|
children: 'Cloud Database',
|
|
},
|
|
{
|
|
key: '2',
|
|
label: 'Billing Mode',
|
|
children: 'Prepaid',
|
|
},
|
|
{
|
|
key: '3',
|
|
label: 'Automatic Renewal',
|
|
children: 'YES',
|
|
},
|
|
{
|
|
key: '4',
|
|
label: 'Order time',
|
|
children: '2018-04-24 18:00:00',
|
|
},
|
|
{
|
|
key: '5',
|
|
label: 'Usage Time',
|
|
children: '2019-04-24 18:00:00',
|
|
span: 2,
|
|
},
|
|
{
|
|
key: '6',
|
|
label: 'Status',
|
|
children: <Badge status="processing" text="Running" />,
|
|
span: 3,
|
|
},
|
|
{
|
|
key: '7',
|
|
label: 'Negotiated Amount',
|
|
children: '$80.00',
|
|
},
|
|
{
|
|
key: '8',
|
|
label: 'Discount',
|
|
children: '$20.00',
|
|
},
|
|
{
|
|
key: '9',
|
|
label: 'Official Receipts',
|
|
children: '$60.00',
|
|
},
|
|
{
|
|
key: '10',
|
|
label: 'Config Info',
|
|
children: (
|
|
<>
|
|
Data disk type: MongoDB
|
|
<br />
|
|
Database version: 3.4
|
|
<br />
|
|
Package: dds.mongo.mid
|
|
<br />
|
|
Storage space: 10 GB
|
|
<br />
|
|
Replication factor: 3
|
|
<br />
|
|
Region: East China 1
|
|
<br />
|
|
</>
|
|
),
|
|
},
|
|
];
|
|
|
|
const App: React.FC = () => <Descriptions title="User Info" bordered items={items} />;
|
|
|
|
export default App;
|