mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 04:48:02 +08:00
14 lines
442 B
TypeScript
14 lines
442 B
TypeScript
|
import React from 'react';
|
||
|
import { Flex, Progress } from 'antd';
|
||
|
|
||
|
const Demo = () => (
|
||
|
<Flex vertical gap="middle">
|
||
|
<Progress type="line" percent={50} style={{ width: 320 }} />
|
||
|
<Progress percent={50} format={() => '加载中'} style={{ width: 320 }} />
|
||
|
<Progress percent={100} status="success" style={{ width: 320 }} />
|
||
|
<Progress percent={70} status="exception" style={{ width: 320 }} />
|
||
|
</Flex>
|
||
|
);
|
||
|
|
||
|
export default Demo;
|