Skip to content

Commit 230be85

Browse files
committed
Dev environment - VueUiDonutEvolution - Added logs for @selectLegend emit
1 parent 014729f commit 230be85

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

TestingArena/ArenaVueUiDonutEvolution.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ const config = computed(() => {
132132
}
133133
})
134134
135+
function selectLegend(legend) {
136+
console.log({ legend })
137+
}
138+
135139
const step = ref(0)
136140
137141
</script>
@@ -141,7 +145,7 @@ const step = ref(0)
141145
<template #title>VueUiDonutEvolution</template>
142146

143147
<template #local>
144-
<LocalVueUiDonutEvolution :dataset="dataset" :config="config" :key="`local_${step}`">
148+
<LocalVueUiDonutEvolution :dataset="dataset" :config="config" :key="`local_${step}`" @selectLegend="selectLegend">
145149
<template #svg="{ svg }">
146150
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
147151
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
@@ -156,7 +160,7 @@ const step = ref(0)
156160
</template>
157161

158162
<template #VDUI-local>
159-
<LocalVueDataUi component="VueUiDonutEvolution" :dataset="dataset" :config="config" :key="`vdui_local_${step}`">
163+
<LocalVueDataUi component="VueUiDonutEvolution" :dataset="dataset" :config="config" :key="`vdui_local_${step}`" @selectLegend="selectLegend">
160164
<template #svg="{ svg }">
161165
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
162166
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
@@ -171,7 +175,7 @@ const step = ref(0)
171175
</template>
172176

173177
<template #build>
174-
<VueUiDonutEvolution :dataset="dataset" :config="config" :key="`build_${step}`">
178+
<VueUiDonutEvolution :dataset="dataset" :config="config" :key="`build_${step}`" @selectLegend="selectLegend">
175179
<template #svg="{ svg }">
176180
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
177181
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
@@ -186,7 +190,7 @@ const step = ref(0)
186190
</template>
187191

188192
<template #VDUI-build>
189-
<VueDataUi component="VueUiDonutEvolution" :dataset="dataset" :config="config" :key="`vdui_build_${step}`">
193+
<VueDataUi component="VueUiDonutEvolution" :dataset="dataset" :config="config" :key="`vdui_build_${step}`" @selectLegend="selectLegend">
190194
<template #svg="{ svg }">
191195
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
192196
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>

0 commit comments

Comments
 (0)