optmization
This commit is contained in:
parent
aac549bc22
commit
2cf1fe437a
|
@ -5,14 +5,18 @@ export default {
|
|||
return {
|
||||
defaultColors,
|
||||
|
||||
drawColors: ''
|
||||
drawColors: '',
|
||||
|
||||
drawColorsMul: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
initColors () {
|
||||
const { colors, defaultColors } = this
|
||||
|
||||
this.drawColors = colors || defaultColors
|
||||
const trueDrawColors = this.drawColors = colors || defaultColors
|
||||
|
||||
this.drawColorsMul = trueDrawColors instanceof Array
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue