mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-05-21 22:09:16 +08:00
feat(Progress): Add customizable progress track color (#2173)
This commit is contained in:
parent
aa9723e412
commit
b6c7461e7e
4
dist/progress/index.js
vendored
4
dist/progress/index.js
vendored
@ -15,6 +15,10 @@ VantComponent({
|
||||
type: String,
|
||||
value: BLUE
|
||||
},
|
||||
trackColor: {
|
||||
type: String,
|
||||
value: "#e5e5e5",
|
||||
},
|
||||
textColor: {
|
||||
type: String,
|
||||
value: '#fff'
|
||||
|
2
dist/progress/index.wxml
vendored
2
dist/progress/index.wxml
vendored
@ -1,6 +1,6 @@
|
||||
<wxs src="./index.wxs" module="getters" />
|
||||
|
||||
<view class="van-progress custom-class" style="height: {{ strokeWidthUnit }};">
|
||||
<view class="van-progress custom-class" style="height: {{ strokeWidthUnit }}; background: {{trackColor}};">
|
||||
<view
|
||||
class="van-progress__portion"
|
||||
style="width: {{ percentage }}%; background: {{ inactive ? '#cacaca' : color }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user