Browse Source

feat:修复修改样式问题

liu.tao3 2 years ago
parent
commit
41294a1b04

+ 1 - 1
data-room-ui/packages/BigScreenDesign/RightSetting/index.vue

@@ -115,7 +115,7 @@ export default {
     configStyle: {
       handler (val, oldValue) {
         if (!_.isEqual(val, oldValue)) {
-          this.$emit('updateSetting', this.config)
+          this.$emit('updateSetting',{...val,type:this.config.type,code:this.config.code})
           this.saveTimeLine(`更新${val?.title}组件属性`)
         }
       },

+ 1 - 0
data-room-ui/packages/PlotRender/index.vue

@@ -162,6 +162,7 @@ export default {
     },
     // 组件的样式改变,返回改变后的config
     changeStyle (config) {
+      config={...this.config,...config}
       config = this.transformSettingToOption(config, 'custom')
       // 这里定义了option和setting是为了保证在执行eval时,optionHandler、dataHandler里面可能会用到,
       const option = config.option