You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
875 B
54 lines
875 B
3 years ago
|
<docs>
|
||
|
---
|
||
|
order: 10
|
||
|
title:
|
||
|
zh-CN: 自定义进度条渐变色
|
||
|
en-US: Custom line gradient
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
`linear-gradient` 的封装。推荐只传两种颜色。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
A package of `linear-gradient`. It is recommended to only pass two colors.
|
||
|
|
||
|
</docs>
|
||
|
|
||
|
<template>
|
||
|
<div>
|
||
|
<a-progress
|
||
|
:stroke-color="{
|
||
|
'0%': '#108ee9',
|
||
|
'100%': '#87d068',
|
||
|
}"
|
||
|
:percent="99.9"
|
||
|
/>
|
||
|
<a-progress
|
||
|
:stroke-color="{
|
||
|
from: '#108ee9',
|
||
|
to: '#87d068',
|
||
|
}"
|
||
|
:percent="99.9"
|
||
|
status="active"
|
||
|
/>
|
||
|
<a-progress
|
||
|
type="circle"
|
||
|
:stroke-color="{
|
||
|
'0%': '#108ee9',
|
||
|
'100%': '#87d068',
|
||
|
}"
|
||
|
:percent="90"
|
||
|
/>
|
||
|
<a-progress
|
||
|
type="circle"
|
||
|
:stroke-color="{
|
||
|
'0%': '#108ee9',
|
||
|
'100%': '#87d068',
|
||
|
}"
|
||
|
:percent="100"
|
||
|
/>
|
||
|
</div>
|
||
|
</template>
|