mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-25 08:38:57 -06:00
fix(ui): DonutModule clean up
This commit is contained in:
@@ -72,9 +72,7 @@ export default {
|
||||
|
||||
data () {
|
||||
return {
|
||||
dasharray: 0,
|
||||
dashoffset: 0,
|
||||
animating: false
|
||||
dasharray: 0
|
||||
}
|
||||
},
|
||||
|
||||
@@ -90,14 +88,10 @@ export default {
|
||||
},
|
||||
|
||||
finalDashoffset () {
|
||||
if (this.animating) {
|
||||
return this.dashoffset
|
||||
if (this.ratio < 0) {
|
||||
return -this.dasharray * this.ratio + this.dasharray
|
||||
} else {
|
||||
if (this.ratio < 0) {
|
||||
return -this.dasharray * this.ratio + this.dasharray
|
||||
} else {
|
||||
return (1 - this.ratio) * this.dasharray
|
||||
}
|
||||
return (1 - this.ratio) * this.dasharray
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user