fix:渐变色取消其中一个颜色时默认为纯色

main
liu.shiyi 2 years ago
parent c15e1fef69
commit d6f8f3b41b

@ -92,9 +92,9 @@ export default {
},
colorChange (val) {
if (!this.startColor && this.endColor) {
this.colorsValue = `${this.position} ,#ffffff,${this.endColor}`
this.colorsValue = `${this.position} ,${this.endColor},${this.endColor}`
} else if (this.startColor && !this.endColor) {
this.colorsValue = `${this.position} ,${this.startColor} ,#ffffff`
this.colorsValue = `${this.position} ,${this.startColor} ,${this.startColor}`
} else if (!this.startColor && !this.endColor) {
this.colorsValue = `${this.position} ,#ffffff ,#ffffff`
} else {

Loading…
Cancel
Save