mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-16 07:05:42 +08:00

* chore: init demo * chore: circle * docs: update * test: update test case * test: coverage * docs: update docs * docs: deprecated trailColor * chore: bump rail * chore: misc * chore: fix style * chore: move pos * chore: refactor structrue * test: fix test case * test: update snapshot * test: fix test case * chore: rm style * test: update snapshot * test: update snapshot * chore: fix steps style
32 lines
796 B
TypeScript
32 lines
796 B
TypeScript
import React from 'react';
|
|
import { Flex, Progress, theme } from 'antd';
|
|
|
|
const Demo = () => {
|
|
const { token } = theme.useToken();
|
|
|
|
return (
|
|
<Flex gap="large">
|
|
<Flex gap="small" align="center">
|
|
<Progress size={16} type="circle" percent={68} railColor={token.colorPrimaryBg} />
|
|
<div>进行中</div>
|
|
</Flex>
|
|
<Flex gap="small" align="center">
|
|
<Progress size={16} type="circle" percent={100} status="success" />
|
|
<div>已完成</div>
|
|
</Flex>
|
|
<Flex gap="small" align="center">
|
|
<Progress
|
|
size={16}
|
|
type="circle"
|
|
percent={68}
|
|
status="exception"
|
|
railColor={token.colorErrorBg}
|
|
/>
|
|
<div>错误/异常</div>
|
|
</Flex>
|
|
</Flex>
|
|
);
|
|
};
|
|
|
|
export default Demo;
|