@@ -359,7 +359,8 @@ const dataTable = computed(() => {
359359 return [
360360 {
361361 color: h .color ,
362- name: h .name
362+ name: h .name ,
363+ shape: ' square'
363364 },
364365 label,
365366 isNaN (table .value .body [i] / total .value ) ? " -" : (table .value .body [i] / total .value * 100 ).toFixed (treemapConfig .value .table .td .roundingPercentage ) + ' %'
@@ -377,7 +378,7 @@ const dataTable = computed(() => {
377378 color: treemapConfig .value .table .td .color ,
378379 outline: treemapConfig .value .table .td .outline
379380 },
380- breakpoint: treemapConfig .value .table .responsiveBreakpoint
381+ breakpoint: treemapConfig .value .table .responsiveBreakpoint ,
381382 }
382383
383384 const colNames = [
@@ -502,7 +503,7 @@ defineExpose({
502503 <div style =" width : 100% ; height : 100% " class =" vue-ui-treemap-cell" >
503504 <div
504505 class =" vue-ui-treemap-cell-default"
505- v-if =" treemapConfig.style.chart.layout.labels.showDefaultLabels && (rect.proportion > treemapConfig.style.chart.layout.labels.hideUnderProportion || isZoom)" :style =" `width:calc(100% - ${calcFontSize(rect) / 1.5}px);text-align:left;line-height:${calcFontSize(rect)}px;padding:${calcFontSize(rect) / 3}px; color:${adaptColorToBackground(rect.color)}`"
506+ v-if =" treemapConfig.style.chart.layout.labels.showDefaultLabels && (rect.proportion > treemapConfig.style.chart.layout.labels.hideUnderProportion || isZoom)" :style =" `width:calc(100% - ${calcFontSize(rect) / 1.5}px);text-align:left;line-height:${calcFontSize(rect) < 14 ? 14 : calcFontSize(rect) }px;padding:${calcFontSize(rect) / 3}px; color:${adaptColorToBackground(rect.color)}`"
506507 >
507508 <span :style =" `width:100%;font-size:${calcFontSize(rect)}px;`" >
508509 {{ rect.name }}
@@ -552,7 +553,7 @@ defineExpose({
552553 <div style =" width : 100% ; height : 100% " class =" vue-ui-treemap-cell" >
553554 <div
554555 class =" vue-ui-treemap-cell-default"
555- v-if =" treemapConfig.style.chart.layout.labels.showDefaultLabels" :style =" `width:calc(100% - ${treemapConfig.style.chart.layout.labels.fontSize/ 1.5}px);text-align:left;line-height:${treemapConfig.style.chart.layout.labels.fontSize}px; padding:${treemapConfig.style.chart.layout.labels.fontSize / 3}px; color:${adaptColorToBackground(selectedRect.color)}`"
556+ v-if =" treemapConfig.style.chart.layout.labels.showDefaultLabels" :style =" `width:calc(100% - ${treemapConfig.style.chart.layout.labels.fontSize/ 1.5}px);text-align:left;padding:${treemapConfig.style.chart.layout.labels.fontSize / 3}px; color:${adaptColorToBackground(selectedRect.color)}`"
556557 >
557558 <span :style =" `width:100%;`" >
558559 {{ selectedRect.name }}
@@ -578,7 +579,7 @@ defineExpose({
578579 </div >
579580 </foreignObject >
580581 </g >
581- <slot name =" svg" :svg = " svg" />
582+ <slot name =" svg" v-bind = " { svg, isZoom, rect: selectedRect, config: treemapConfig } " />
582583 </svg >
583584
584585 <Skeleton
0 commit comments