Authored by 沈志敏

修改 js报错

... ... @@ -286,13 +286,18 @@
this.selection.color = selection.color = this.colors[0];
}
this.sizes = colorSizes[selection.color.value];
this.colorSizes = colorSizes;
this.thumbnails = thumbnails;
// 选择默认值
this.$emit('feature:color.select', selection.color);
this.$emit('feature:size.select', selection.size);
if (selection.color) {
this.sizes = colorSizes[selection.color.value];
this.$emit('feature:color.select', selection.color);
}
if (selection.size) {
this.$emit('feature:size.select', selection.size);
}
}
},
components: {
... ...