mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 08:43:57 +08:00
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
|
import React from 'react';
|
||
|
import { Flex, Progress } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Flex gap="small" vertical>
|
||
|
<Progress
|
||
|
percent={0}
|
||
|
percentPosition={{ align: 'center', type: 'inner' }}
|
||
|
size={[200, 20]}
|
||
|
strokeColor="#E6F4FF"
|
||
|
/>
|
||
|
<Progress percent={10} percentPosition={{ align: 'center', type: 'inner' }} size={[300, 20]} />
|
||
|
<Progress
|
||
|
percent={50}
|
||
|
percentPosition={{ align: 'start', type: 'inner' }}
|
||
|
size={[300, 20]}
|
||
|
strokeColor="#B7EB8F"
|
||
|
/>
|
||
|
<Progress
|
||
|
percent={60}
|
||
|
percentPosition={{ align: 'end', type: 'inner' }}
|
||
|
size={[300, 20]}
|
||
|
strokeColor="#001342"
|
||
|
/>
|
||
|
<Progress percent={100} percentPosition={{ align: 'center', type: 'inner' }} size={[400, 20]} />
|
||
|
<Progress percent={60} percentPosition={{ align: 'start', type: 'outer' }} />
|
||
|
<Progress percent={100} percentPosition={{ align: 'start', type: 'outer' }} />
|
||
|
<Progress percent={60} percentPosition={{ align: 'center', type: 'outer' }} size="small" />
|
||
|
<Progress percent={100} percentPosition={{ align: 'center', type: 'outer' }} />
|
||
|
</Flex>
|
||
|
);
|
||
|
|
||
|
export default App;
|