Skip to content

Commit d7289e4

Browse files
committed
Watch this.progress to fit Vue style.
1 parent 6edaaa6 commit d7289e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ export default {
8888
.on('circle-inited', function(event){
8989
renderCircleBody(this, (vm.progress/vm.scale));
9090
vm.$emit('vue-circle-init', event);
91+
vm.$watch('progress', (nv) => {
92+
vm.updateProgress(nv)
93+
})
94+
vm.$watch('fill', (nv) => {
95+
vm.updateFill(nv)
96+
})
9197
})
9298
.circleProgress({
9399
value: this.convertedProgress(vm.progress),

0 commit comments

Comments
 (0)