File tree 5 files changed +21
-12
lines changed
5 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 38
38
<input type="checkbox" v-model="circles[3].loading" />
39
39
</div>-->
40
40
<div style =" border : 1px solid red ; display : inline-block " >
41
- <vue-ellipse-progress
41
+ <!-- < vue-ellipse-progress
42
42
:size="200"
43
43
:progress="progress"
44
44
:legendValue="1315.56"
59
59
{{ formattedPrice(counterTick.currentValue) }}
60
60
</span>
61
61
</template>
62
- </vue-ellipse-progress >
62
+ </vue-ellipse-progress>-->
63
63
</div >
64
64
<vue-ellipse-progress
65
65
dot =" 20 green"
Original file line number Diff line number Diff line change 3
3
<svg class =" ep-svg" :height =" size" :width =" size" xmlns =" http://www.w3.org/2000/svg" >
4
4
<g class =" ep-circle--container" >
5
5
<defs >
6
- <gradient v-if =" isColorGradient" :color =" color" type =" progress" :id =" _uid " />
7
- <gradient v-if =" isColorFillGradient" :color =" colorFill" type =" progress-fill" :id =" _uid " />
8
- <gradient v-if =" isEmptyColorGradient" :color =" emptyColor" type =" empty" :id =" _uid " />
9
- <gradient v-if =" isEmptyColorFillGradient" :color =" emptyColorFill" type =" empty-fill" :id =" _uid " />
6
+ <gradient v-if =" isColorGradient" :color =" color" type =" progress" :id =" id " />
7
+ <gradient v-if =" isColorFillGradient" :color =" colorFill" type =" progress-fill" :id =" id " />
8
+ <gradient v-if =" isEmptyColorGradient" :color =" emptyColor" type =" empty" :id =" id " />
9
+ <gradient v-if =" isEmptyColorFillGradient" :color =" emptyColorFill" type =" empty-fill" :id =" id " />
10
10
</defs >
11
- <component :is =" circleType" v-bind =" $props" :id =" _uid " />
11
+ <component :is =" circleType" v-bind =" $props" :id =" id " />
12
12
</g >
13
13
</svg >
14
- <circle-dot v-if =" dot" v-bind =" $props" :id =" _uid " />
14
+ <circle-dot v-if =" dot" v-bind =" $props" :id =" id " />
15
15
</div >
16
16
</template >
17
17
@@ -48,6 +48,8 @@ export default {
48
48
type: [Number , String , Object ],
49
49
required: false ,
50
50
},
51
+ // Temp Fix
52
+ id: Number ,
51
53
},
52
54
computed: {
53
55
circleType () {
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ export default {
62
62
borderRadius: ` ${ this .dotSize / 2 } px` ,
63
63
width: ` ${ this .dotSize } px` ,
64
64
backgroundColor: this .dotColor ,
65
- ... this .dot ,
65
+ // eslint-disable-next-line max-len
66
+ // FIXME: this is passed as String (e.g "20 green") and destructed ({0:2, 0:0...}), causing CSSStyleDeclaration Error
67
+ // ...this.dot,
66
68
transitionDuration: this .loading || ! this .dataIsAvailable ? " 0s" : this .animationDuration ,
67
69
height: ` ${ this .dotSize } px` ,
68
70
};
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<span class =" ep-legend--value__counter" >
3
3
<slot :counterTick =" counterProps" > </slot >
4
- <span v-if =" !$scopedSlots.default" >{{ formattedValue }}</span >
4
+ <!-- < span v-if="!$scopedSlots.default">{{ formattedValue }}</span> -- >
5
5
</span >
6
6
</template >
7
7
Original file line number Diff line number Diff line change 10
10
<circle-container
11
11
v-for =" (options, i) in circlesData"
12
12
:key =" i"
13
+ :id =" i"
13
14
v-bind =" options"
14
15
:multiple =" isMultiple"
15
16
:index =" i"
25
26
:style =" { fontSize, color: fontColor }"
26
27
>
27
28
<counter :value =" legendVal" :animation =" animation" :loading =" loading" >
28
- <template v-slot :default =" { counterTick } " >
29
+ <!-- FIXME: This is completely broken in Vue 3-->
30
+ <!-- <template v-slot:default="{ counterTick }">
29
31
<slot v-if="$scopedSlots.default" :counterTick="counterTick"></slot>
30
32
<span v-if="legendFormatter">
31
33
<span v-if="isHTML" v-html="legendFormatter(counterTick)"></span>
32
34
<span v-else>{{ legendFormatter(counterTick) }}</span>
33
35
</span>
34
36
<span v-else-if="!$scopedSlots.default">{{ counterTick.currentFormattedValue }}</span>
35
- </template >
37
+ </template>-->
36
38
</counter >
37
39
<slot name =" legend-value" ></slot >
38
40
</div >
@@ -91,6 +93,9 @@ export default {
91
93
return [this .$props ];
92
94
},
93
95
},
96
+ beforeCreate () {
97
+ console .log (this )
98
+ }
94
99
};
95
100
</script >
96
101
You can’t perform that action at this time.
0 commit comments