@@ -36,7 +36,8 @@ const hoveredIndex = ref(null);
3636const hoveredDatapoint = ref (null );
3737const isFixed = ref (false );
3838const fixedDatapoint = ref (null );
39- const donutEvolutionChart = ref (null )
39+ const donutEvolutionChart = ref (null );
40+ const step = ref (0 );
4041
4142const emit = defineEmits ([' selectLegend' ])
4243
@@ -362,6 +363,7 @@ function generateCsv() {
362363const isFullscreen = ref (false )
363364function toggleFullscreen (state ) {
364365 isFullscreen .value = state;
366+ step .value += 1 ;
365367}
366368
367369defineExpose ({
@@ -374,7 +376,7 @@ defineExpose({
374376< / script>
375377
376378< 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" >
378380 < div v- if = " donutEvolutionConfig.style.chart.title.text" : style= " `width:100%;background:${donutEvolutionConfig.style.chart.backgroundColor};padding-bottom:24px`" @mouseleave= " leave" >
379381 <!-- TITLE AS DIV -->
380382 < Title
@@ -399,6 +401,7 @@ defineExpose({
399401
400402 < UserOptions
401403 ref= " details"
404+ : key= " `user_options_${step}`"
402405 v- if = " donutEvolutionConfig.userOptions.show"
403406 : backgroundColor= " donutEvolutionConfig.style.chart.backgroundColor"
404407 : color= " donutEvolutionConfig.style.chart.color"
@@ -409,6 +412,7 @@ defineExpose({
409412 hasImg
410413 hasTable
411414 hasFullscreen
415+ : isFullscreen= " isFullscreen"
412416 @toggleFullscreen= " toggleFullscreen"
413417 : chartElement= " donutEvolutionChart"
414418 @generatePdf= " generatePdf"
@@ -814,4 +818,7 @@ path {
814818.vue - data- ui- fullscreen-- off {
815819 max- width: 100 % ;
816820}
821+ .vue - data- ui- wrapper- fullscreen {
822+ overflow: auto;
823+ }
817824< / style>
0 commit comments