@@ -10,6 +10,7 @@ import UserOptions from "../atoms/UserOptions.vue";
1010import DataTable from " ../atoms/DataTable.vue" ;
1111import Tooltip from " ../atoms/Tooltip.vue" ;
1212import Legend from " ../atoms/Legend.vue" ;
13+ import BaseCheckbox from " ../atoms/BaseCheckbox.vue" ;
1314
1415const props = defineProps ({
1516 config: {
@@ -351,21 +352,24 @@ defineExpose({
351352 @generateImage =" generateImage"
352353 >
353354 <template #checkboxes >
354- <div class =" vue-ui-options-item" >
355- <input data-cy =" donut-checkbox-datalabels" type =" checkbox" :id =" `vue-ui-donut-option-datalabels_${uid}`" :name =" `vue-ui-donut-option-datalabels_${uid}`"
356- v-model =" mutableConfig.dataLabels.show" >
357- <label :for =" `vue-ui-donut-option-datalabels_${uid}`" >{{ donutConfig.userOptions.labels.dataLabels }}</label >
358- </div >
359- <div class =" vue-ui-options-item" >
360- <input data-cy =" donut-checkbox-title" type =" checkbox" :id =" `vue-ui-donut-option-title_${uid}`" :name =" `vue-ui-donut-option-title_${uid}`"
361- v-model =" mutableConfig.inside" >
362- <label :for =" `vue-ui-donut-option-title_${uid}`" >{{ donutConfig.userOptions.labels.useDiv }}</label >
363- </div >
364- <div class =" vue-ui-options-item" >
365- <input data-cy =" donut-checkbox-table" type =" checkbox" :id =" `vue-ui-donut-option-table_${uid}`" :name =" `vue-ui-donut-option-table_${uid}`"
366- v-model =" mutableConfig.showTable" >
367- <label :for =" `vue-ui-donut-option-table_${uid}`" >{{ donutConfig.userOptions.labels.showTable }}</label >
368- </div >
355+ <BaseCheckbox
356+ cy =" donut-checkbox-datalabels"
357+ :model =" mutableConfig.dataLabels.show"
358+ :label =" donutConfig.userOptions.labels.dataLabels"
359+ @update:model =" val => mutableConfig.dataLabels.show = val"
360+ />
361+ <BaseCheckbox
362+ cy =" donut-checkbox-title"
363+ :model =" mutableConfig.inside"
364+ :label =" donutConfig.userOptions.labels.useDiv"
365+ @update:model =" val => mutableConfig.inside = val"
366+ />
367+ <BaseCheckbox
368+ cy =" donut-checkbox-table"
369+ :model =" mutableConfig.showTable"
370+ :label =" donutConfig.userOptions.labels.showTable"
371+ @update:model =" val => mutableConfig.showTable = val"
372+ />
369373 </template >
370374 </UserOptions >
371375
0 commit comments