diff --git a/src/mixins/colorsMixin.js b/src/mixins/colorsMixin.js index b2684f5..39bb4b7 100644 --- a/src/mixins/colorsMixin.js +++ b/src/mixins/colorsMixin.js @@ -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 } } }