File tree 1 file changed +16
-7
lines changed 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 3
3
<svg class =" ep-svg" :height =" options.size" :width =" options.size" xmlns =" http://www.w3.org/2000/svg" >
4
4
<g class =" ep-circle--container" >
5
5
<defs >
6
- <gradient v-if =" isColorGradient" :color =" options.color" type =" progress" :id =" options.id " />
7
- <gradient v-if =" isColorFillGradient" :color =" options.colorFill" type =" progress-fill" :id =" options.id " />
8
- <gradient v-if =" isEmptyColorGradient" :color =" options.emptyColor" type =" empty" :id =" options.id " />
6
+ <gradient v-if =" isColorGradient" :color =" options.color" type =" progress" :id =" uid " />
7
+ <gradient v-if =" isColorFillGradient" :color =" options.colorFill" type =" progress-fill" :id =" options.uid " />
8
+ <gradient v-if =" isEmptyColorGradient" :color =" options.emptyColor" type =" empty" :id =" options.uid " />
9
9
<gradient
10
10
v-if =" isEmptyColorFillGradient"
11
11
:color =" options.emptyColorFill"
12
12
type =" empty-fill"
13
- :id =" options.id "
13
+ :id =" options.uid "
14
14
/>
15
- <gradient v-if =" isLoaderColorGradient" :color =" options.loader.color" type =" loader" :id =" options.id " />
15
+ <gradient v-if =" isLoaderColorGradient" :color =" options.loader.color" type =" loader" :id =" options.uid " />
16
16
</defs >
17
- <component :is =" circleType" :options =" options " />
17
+ <component :is =" circleType" :options =" computedOptions " />
18
18
</g >
19
19
</svg >
20
- <circle-dot v-if =" options.dot" :options =" options " />
20
+ <circle-dot v-if =" options.dot" :options =" computedOptions " />
21
21
</div >
22
22
</template >
23
23
@@ -37,6 +37,12 @@ export default {
37
37
},
38
38
},
39
39
computed: {
40
+ computedOptions () {
41
+ return {
42
+ ... this .options ,
43
+ uid: this .uid ,
44
+ };
45
+ },
40
46
circleType () {
41
47
return this .options .half ? " half-circle-progress" : " circle-progress" ;
42
48
},
@@ -55,6 +61,9 @@ export default {
55
61
isLoaderColorGradient () {
56
62
return Array .isArray (this .options .loader .color .colors );
57
63
},
64
+ uid () {
65
+ return this .$ .uid ;
66
+ },
58
67
},
59
68
};
60
69
</script >
You can’t perform that action at this time.
0 commit comments