Skip to content

Commit d7e61ff

Browse files
committed
fix strokeColor prop
1 parent fd62769 commit d7e61ff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/progress.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,12 @@
151151
}
152152
},
153153
stroke () {
154+
if (this.strokeColor) {
155+
return this.strokeColor;
156+
}
157+
154158
let ret
155-
switch (this.st) {
159+
switch (this.st) {
156160
case 'success':
157161
ret = '#13ce66'
158162
break
@@ -166,7 +170,7 @@
166170
ret = '#ff4949'
167171
break
168172
default:
169-
ret = this.strokeColor ? this.strokeColor : '#20a0ff'
173+
ret = '#20a0ff'
170174
}
171175
return ret
172176
},

0 commit comments

Comments
 (0)