Progress prop strokeColor support Array type, and support the linear-gradient color
This commit is contained in:
parent
d87a8854b1
commit
25cba38b45
2 changed files with 17 additions and 3 deletions
|
@ -15,10 +15,20 @@
|
|||
<Divider></Divider>
|
||||
|
||||
<Progress :percent="10" :stroke-width="20" text-inside></Progress>
|
||||
|
||||
<Divider></Divider>
|
||||
|
||||
<Progress :percent="90" :stroke-color="color1"></Progress>
|
||||
<Progress :percent="90" :stroke-color="color2" status="active"></Progress>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
|
||||
data () {
|
||||
return {
|
||||
color1: '#ff6600',
|
||||
color2: ['#108ee9', '#87d068']
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue