Skip to content

Commit a07ddce

Browse files
committed
VueUiTreemap new component
1 parent ff46b20 commit a07ddce

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "2.0.65",
4+
"version": "2.0.66",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

src/atoms/Legend.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ const props = defineProps({
1313
default() {
1414
return {}
1515
}
16+
},
17+
id: {
18+
type: String,
19+
default: ''
1620
}
1721
})
1822
@@ -26,6 +30,7 @@ function handleClick(legend, i) {
2630

2731
<template>
2832
<div
33+
:id="id"
2934
:data-cy="config.cy"
3035
class="vue-data-ui-legend"
3136
:style="`background:${config.backgroundColor};font-size:${config.fontSize}px;color:${config.color};padding-bottom:${config.paddingBottom}px;font-weight:${config.fontWeight}`"

src/components/vue-ui-treemap.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,10 @@ defineExpose({
572572

573573
<!-- LEGEND & LEGEND SLOT -->
574574
<Legend
575-
v-if="treemapConfig.style.chart.legend.show"
575+
v-if="treemapConfig.style.chart.legend.show && !isZoom"
576576
:legendSet="legendSet"
577577
:config="legendConfig"
578+
:id="`treemap_legend_${uid}`"
578579
@clickMarker="({legend}) => segregate(legend)"
579580
>
580581
<template #item="{ legend, index }">

0 commit comments

Comments
 (0)