We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbf860 commit 802499eCopy full SHA for 802499e
packages/@vue/cli-ui-addon-webpack/src/components/DonutModule.vue
@@ -72,9 +72,7 @@ export default {
72
73
data () {
74
return {
75
- dasharray: 0,
76
- dashoffset: 0,
77
- animating: false
+ dasharray: 0
78
}
79
},
80
@@ -90,14 +88,10 @@ export default {
90
88
91
89
92
finalDashoffset () {
93
- if (this.animating) {
94
- return this.dashoffset
+ if (this.ratio < 0) {
+ return -this.dasharray * this.ratio + this.dasharray
95
} else {
96
- if (this.ratio < 0) {
97
- return -this.dasharray * this.ratio + this.dasharray
98
- } else {
99
- return (1 - this.ratio) * this.dasharray
100
- }
+ return (1 - this.ratio) * this.dasharray
101
102
103
0 commit comments