File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 107
107
"vitest" : " ^3.1.1" ,
108
108
"vue" : " ^3.5.13"
109
109
}
110
- }
110
+ }
Original file line number Diff line number Diff line change @@ -378,6 +378,13 @@ function zoom(rect) {
378
378
}
379
379
}
380
380
381
+ function canDrill (rect ) {
382
+ const node = findNodeById (rect .id )
383
+ if (node? .children ? .length ) return true
384
+ if (rect .parentId ) return true
385
+ return false
386
+ }
387
+
381
388
const breadcrumbs = computed (() => {
382
389
const crumbs = [
383
390
{ id: null , label: ' All' }
@@ -782,7 +789,12 @@ defineExpose({
782
789
})"
783
790
@mouseleave= " selectedRect = null; isTooltip = false"
784
791
: style= " `opacity:${selectedRect ? selectedRect.id === rect.id ? 1 : FINAL_CONFIG.style.chart.layout.rects.selected.unselectedOpacity : 1}`"
785
- class = " vue-ui-treemap-rect"
792
+ : class = " [
793
+ 'vue-ui-treemap-rect',
794
+ canDrill(rect)
795
+ ? 'vue-data-ui-zoom-plus'
796
+ : (isZoom ? 'vue-data-ui-zoom-minus' : '')
797
+ ]"
786
798
/ >
787
799
788
800
< foreignObject
You can’t perform that action at this time.
0 commit comments