File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<span class =" ep-legend--value__counter" >
3
- <slot :counterTick =" counterProps" > </slot >
3
+ <slot :counterTick =" counterProps" ></slot >
4
4
<!-- <span v-if="!$scopedSlots.default">{{ formattedValue }}</span>-->
5
5
</span >
6
6
</template >
Original file line number Diff line number Diff line change 16
16
:style =" { fontSize, color: fontColor }"
17
17
>
18
18
<counter :value =" legendVal" :animation =" normalizedCircles[0].animation" :loading =" loading" >
19
- <!-- FIXME: This is completely broken in Vue 3-->
20
- <!-- <template v-slot:default="{ counterTick }">
21
- <slot v-if="$scopedSlots.default" :counterTick="counterTick"></slot>
19
+ <template v-slot :default =" { counterTick } " >
22
20
<span v-if =" legendFormatter" >
23
21
<span v-if =" isHTML" v-html =" legendFormatter(counterTick)" ></span >
24
22
<span v-else >{{ legendFormatter(counterTick) }}</span >
25
23
</span >
26
- <span v-else-if="!$scopedSlots.default">{{ counterTick.currentFormattedValue }}</span>
27
- </template>-->
24
+ <slot v-else :counterTick =" counterTick" >
25
+ <span >{{ counterTick.currentFormattedValue }}</span >
26
+ </slot >
27
+ </template >
28
28
</counter >
29
29
<slot name =" legend-value" ></slot >
30
30
</div >
You can’t perform that action at this time.
0 commit comments