File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,17 @@ const model = ref([
241
241
const config = computed (() => {
242
242
const c = convertArrayToObject (model .value );
243
243
return {
244
- ... c
244
+ ... c,
245
+ style: {
246
+ ... c .style ,
247
+ chart: {
248
+ ... c .style .chart ,
249
+ dimensions: {
250
+ height: null ,
251
+ width: null
252
+ }
253
+ }
254
+ }
245
255
}
246
256
});
247
257
Original file line number Diff line number Diff line change @@ -84,6 +84,18 @@ function prepareConfig() {
84
84
mergedConfig .style .chart .territory .colors .max = palette[0 ];
85
85
}
86
86
87
+ if (props .config && hasDeepProperty (props .config , ' style.chart.dimensions.width' )) {
88
+ mergedConfig .style .chart .dimensions .width = props .config .style .chart .dimensions .width ;
89
+ } else {
90
+ mergedConfig .style .chart .dimensions .width = null ;
91
+ }
92
+
93
+ if (props .config && hasDeepProperty (props .config , ' style.chart.dimensions.height' )) {
94
+ mergedConfig .style .chart .dimensions .height = props .config .style .chart .dimensions .height ;
95
+ } else {
96
+ mergedConfig .style .chart .dimensions .height = null ;
97
+ }
98
+
87
99
// --------------------------------------------------------------------
88
100
89
101
return mergedConfig;
You can’t perform that action at this time.
0 commit comments