File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
components/canvas/customComponent
views/chart/components/shapeAttr Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -878,7 +878,7 @@ export default {
878
878
if (! sourceCustomAttr[param .property ]) {
879
879
this .$set (sourceCustomAttr, param .property , {})
880
880
}
881
- sourceCustomAttr[param .property ][ param .value .modifyName ] = param .value [param .value .modifyName ]
881
+ Vue . set ( sourceCustomAttr[param .property ], param .value .modifyName , param .value [param .value .modifyName ])
882
882
this .sourceCustomAttrStr = JSON .stringify (sourceCustomAttr)
883
883
this .chart .customAttr = this .sourceCustomAttrStr
884
884
this .$store .commit (' updateComponentViewsData' , {
@@ -892,7 +892,7 @@ export default {
892
892
if (param .property === ' margin' ) {
893
893
sourceCustomStyle[param .property ] = param .value
894
894
}
895
- sourceCustomStyle[param .property ][ param .value .modifyName ] = param .value [param .value .modifyName ]
895
+ Vue . set ( sourceCustomStyle[param .property ], param .value .modifyName , param .value [param .value .modifyName ])
896
896
this .sourceCustomStyleStr = JSON .stringify (sourceCustomStyle)
897
897
this .chart .customStyle = this .sourceCustomStyleStr
898
898
this .$store .commit (' updateComponentViewsData' , {
Original file line number Diff line number Diff line change @@ -847,7 +847,7 @@ const data = {
847
847
}
848
848
} ,
849
849
setChangeProperties ( state , propertyInfo ) {
850
- state . changeProperties [ propertyInfo . custom ] [ propertyInfo . property ] = propertyInfo . value
850
+ Vue . set ( state . changeProperties [ propertyInfo . custom ] , propertyInfo . property , propertyInfo . value )
851
851
} ,
852
852
initCanvasBase ( state ) {
853
853
this . commit ( 'resetLastValidFilters' )
Original file line number Diff line number Diff line change 1166
1166
import { CHART_FONT_FAMILY , CHART_FONT_LETTER_SPACE , DEFAULT_SIZE } from ' ../../chart/chart'
1167
1167
import { includesAny } from ' @/utils/StringUtils'
1168
1168
import _ from ' lodash'
1169
+ import {mapState } from " vuex" ;
1169
1170
export default {
1170
1171
name: ' SizeSelector' ,
1171
1172
props: {
@@ -1224,6 +1225,11 @@ export default {
1224
1225
}
1225
1226
}
1226
1227
},
1228
+ computed: {
1229
+ ... mapState ([
1230
+ ' batchOptStatus'
1231
+ ])
1232
+ },
1227
1233
mounted () {
1228
1234
this .init ()
1229
1235
this .initData ()
@@ -1303,13 +1309,18 @@ export default {
1303
1309
this .fontSize = arr
1304
1310
},
1305
1311
changeBarSizeCase (modifyName ) {
1312
+ this .currentModifyName = modifyName;
1306
1313
if (! this .doChange ) {
1307
1314
this .doChange = _ .debounce (() => this .debounceChange (modifyName), 200 )
1308
1315
}
1309
1316
this .doChange ()
1310
1317
},
1311
1318
debounceChange (modifyName ) {
1312
- this .sizeForm [' modifyName' ] = modifyName
1319
+ if (this .batchOptStatus ){
1320
+ this .sizeForm [' modifyName' ] = this .currentModifyName
1321
+ }else {
1322
+ this .sizeForm [' modifyName' ]= modifyName
1323
+ }
1313
1324
if (this .sizeForm .gaugeMax <= this .sizeForm .gaugeMin ) {
1314
1325
this .$message .error (this .$t (' chart.max_more_than_mix' ))
1315
1326
return
You can’t perform that action at this time.
0 commit comments