Skip to content

Commit db42290

Browse files
committed
Dev environment - VueUiDonutEvolution - Added slots
1 parent 10d2fc7 commit db42290

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

TestingArena/ArenaVueUiDonutEvolution.vue

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,61 @@ const step = ref(0)
142142

143143
<template #local>
144144
<LocalVueUiDonutEvolution :dataset="dataset" :config="config" :key="`local_${step}`">
145+
<template #svg="{ svg }">
146+
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
147+
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
148+
</template>
149+
<template #legend="{ legend }">
150+
#LEGEND
151+
<div style="font-size: 8px">
152+
{{ legend }}
153+
</div>
154+
</template>
145155
</LocalVueUiDonutEvolution>
146156
</template>
147157

148158
<template #VDUI-local>
149159
<LocalVueDataUi component="VueUiDonutEvolution" :dataset="dataset" :config="config" :key="`vdui_local_${step}`">
160+
<template #svg="{ svg }">
161+
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
162+
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
163+
</template>
164+
<template #legend="{ legend }">
165+
#LEGEND
166+
<div style="font-size: 8px">
167+
{{ legend }}
168+
</div>
169+
</template>
150170
</LocalVueDataUi>
151171
</template>
152172

153173
<template #build>
154174
<VueUiDonutEvolution :dataset="dataset" :config="config" :key="`build_${step}`">
175+
<template #svg="{ svg }">
176+
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
177+
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
178+
</template>
179+
<template #legend="{ legend }">
180+
#LEGEND
181+
<div style="font-size: 8px">
182+
{{ legend }}
183+
</div>
184+
</template>
155185
</VueUiDonutEvolution>
156186
</template>
157187

158188
<template #VDUI-build>
159189
<VueDataUi component="VueUiDonutEvolution" :dataset="dataset" :config="config" :key="`vdui_build_${step}`">
190+
<template #svg="{ svg }">
191+
<circle :cx="svg.width / 2" :cy="svg.height / 2" :r="30" fill="#42d392" />
192+
<text :x="svg.width / 2" :y="svg.height / 2" text-anchor="middle">#SVG</text>
193+
</template>
194+
<template #legend="{ legend }">
195+
#LEGEND
196+
<div style="font-size: 8px">
197+
{{ legend }}
198+
</div>
199+
</template>
160200
</VueDataUi>
161201
</template>
162202

0 commit comments

Comments
 (0)