@@ -36,7 +36,8 @@ const hoveredIndex = ref(null);
36
36
const hoveredDatapoint = ref (null );
37
37
const isFixed = ref (false );
38
38
const fixedDatapoint = ref (null );
39
- const donutEvolutionChart = ref (null )
39
+ const donutEvolutionChart = ref (null );
40
+ const step = ref (0 );
40
41
41
42
const emit = defineEmits ([' selectLegend' ])
42
43
@@ -362,6 +363,7 @@ function generateCsv() {
362
363
const isFullscreen = ref (false )
363
364
function toggleFullscreen (state ) {
364
365
isFullscreen .value = state;
366
+ step .value += 1 ;
365
367
}
366
368
367
369
defineExpose ({
@@ -374,7 +376,7 @@ defineExpose({
374
376
< / script>
375
377
376
378
< template>
377
- < div ref= " donutEvolutionChart" : class = " `vue-ui-donut-evolution ${donutEvolutionConfig.useCssAnimation ? '' : 'vue-ui-dna'}`" : style= " `overflow: visible; font-family:${donutEvolutionConfig.style.fontFamily};width:100%; text-align:center;${!donutEvolutionConfig.style.chart.title.text ? 'padding-top:36px' : ''};background:${donutEvolutionConfig.style.chart.backgroundColor}`" : id= " uid" >
379
+ < div ref= " donutEvolutionChart" : class = " `vue-ui-donut-evolution ${isFullscreen ? 'vue-data-ui-wrapper-fullscreen' : ''} ${ donutEvolutionConfig.useCssAnimation ? '' : 'vue-ui-dna'}`" : style= " `font-family:${donutEvolutionConfig.style.fontFamily};width:100%; text-align:center;${!donutEvolutionConfig.style.chart.title.text ? 'padding-top:36px' : ''};background:${donutEvolutionConfig.style.chart.backgroundColor}`" : id= " uid" >
378
380
< div v- if = " donutEvolutionConfig.style.chart.title.text" : style= " `width:100%;background:${donutEvolutionConfig.style.chart.backgroundColor};padding-bottom:24px`" @mouseleave= " leave" >
379
381
<!-- TITLE AS DIV -->
380
382
< Title
@@ -399,6 +401,7 @@ defineExpose({
399
401
400
402
< UserOptions
401
403
ref= " details"
404
+ : key= " `user_options_${step}`"
402
405
v- if = " donutEvolutionConfig.userOptions.show"
403
406
: backgroundColor= " donutEvolutionConfig.style.chart.backgroundColor"
404
407
: color= " donutEvolutionConfig.style.chart.color"
@@ -409,6 +412,7 @@ defineExpose({
409
412
hasImg
410
413
hasTable
411
414
hasFullscreen
415
+ : isFullscreen= " isFullscreen"
412
416
@toggleFullscreen= " toggleFullscreen"
413
417
: chartElement= " donutEvolutionChart"
414
418
@generatePdf= " generatePdf"
@@ -814,4 +818,7 @@ path {
814
818
.vue - data- ui- fullscreen-- off {
815
819
max- width: 100 % ;
816
820
}
821
+ .vue - data- ui- wrapper- fullscreen {
822
+ overflow: auto;
823
+ }
817
824
< / style>
0 commit comments