cloud-web-corejs 1.0.54-dev.66 → 1.0.54-dev.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.66",
4
+ "version": "1.0.54-dev.67",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -242,7 +242,8 @@ modules = {
242
242
  })
243
243
  },
244
244
  getColors(){
245
- let colors = [...this.field.options.echarBarOption.colors, ...this.colors];
245
+ let chartColors = this.field.options.echarBarOption.colors || [];
246
+ let colors = [...chartColors, ...this.colors];
246
247
  return colors
247
248
  },
248
249
  adjustColor() {
@@ -111,7 +111,8 @@ modules = {
111
111
 
112
112
  methods: {
113
113
  getColors() {
114
- let colors = [...this.field.options.echarCategoryOption.colors, ...this.colors];
114
+ let chartColors = this.field.options.echarCategoryOption.colors || [];
115
+ let colors = [...chartColors, ...this.colors];
115
116
  return colors
116
117
  },
117
118
  adjustColor() {