Skip to content

Commit b637f21

Browse files
committed
feat: add half circle loader opacity handling
1 parent df90bf3 commit b637f21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Circle/HalfCircleLoader.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<g :style="{ opacity: options.opacity }">
2+
<g :style="{ opacity: opacity }">
33
<path
44
:stroke-width="thickness"
55
class="ep-half-circle--loader animation__loading"
@@ -43,6 +43,9 @@ export default {
4343
emptyPosition() {
4444
return this.options.size / 2 - this.emptyRadius;
4545
},
46+
opacity() {
47+
return this.options.opacity && this.options.opacity >= 0 ? this.options.opacity : 0.55;
48+
},
4649
},
4750
};
4851
</script>

0 commit comments

Comments
 (0)