forked from vueComponent/ant-design-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgradient-line.vue
53 lines (47 loc) · 875 Bytes
/
gradient-line.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<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>