mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
936 B
936 B
order | title | ||||
---|---|---|---|---|---|
11 |
|
zh-CN
linear-gradient
的封装。推荐只传两种颜色。
en-US
A package of linear-gradient
. It is recommended to only pass two colors.
import { Progress } from 'antd';
import React from 'react';
const App: React.FC = () => (
<>
<Progress
strokeColor={{
'0%': '#108ee9',
'100%': '#87d068',
}}
percent={99.9}
/>
<Progress
strokeColor={{
from: '#108ee9',
to: '#87d068',
}}
percent={99.9}
status="active"
/>
<Progress
type="circle"
strokeColor={{
'0%': '#108ee9',
'100%': '#87d068',
}}
percent={90}
/>
<Progress
type="circle"
strokeColor={{
'0%': '#108ee9',
'100%': '#87d068',
}}
percent={100}
/>
</>
);
export default App;