optmization
This commit is contained in:
1 parent
aac549bc22
commit
2cf1fe437a
1 file changed
+6
-2
@@ -5,14 +5,18 @@ export default {
|
|||||||
return {
|
return {
|
||||||
defaultColors,
|
defaultColors,
|
||||||
|
|
||||||
drawColors: ''
|
drawColors: '',
|
||||||
|
|
||||||
|
drawColorsMul: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initColors () {
|
initColors () {
|
||||||
const { colors, defaultColors } = this
|
const { colors, defaultColors } = this
|
||||||
|
|
||||||
this.drawColors = colors || defaultColors
|
const trueDrawColors = this.drawColors = colors || defaultColors
|
||||||
|
|
||||||
|
this.drawColorsMul = trueDrawColors instanceof Array
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user