From a026f69e6e9174a14a77e814298ee1ad54d2b353 Mon Sep 17 00:00:00 2001 From: +v Date: Tue, 9 Oct 2018 21:24:08 +0800 Subject: [PATCH 1/2] refactor: no component require --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 48b1018..1c6ab88 100755 --- a/src/index.js +++ b/src/index.js @@ -233,7 +233,8 @@ function install (Vue, options = {}) { Progress.init(VueProgressBarEventBus) } - Vue.component('vue-progress-bar', vueProgressBar) + const Component = Vue.extend(vueProgressBar) + document.body.appendChild((new Component().$mount()).$el) Vue.prototype.$Progress = Progress } From 548863064d49c90391bc4afb1ed4edcbae3d573a Mon Sep 17 00:00:00 2001 From: +v Date: Fri, 9 Nov 2018 17:50:26 +0800 Subject: [PATCH 2/2] docs: fix option `autoFinish`'s default value is `true` in code, but got `false` in document. https://github.com/hilongjw/vue-progressbar/issues/33 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1415674..74685c7 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ new Vue({ |`location`|change the location of the progress bar|`top`|`left`, `right`, `top`, `bottom`| |`position`|change the position of the progress bar|`fixed`|`relative`, `absolute`, `fixed`| |`inverse`|inverse the direction of the progress bar|`false`|`true`, `false`| -|`autoFinish`|allow the progress bar to finish automatically when it is close to 100%|`false`|`true`, `false`| +|`autoFinish`|allow the progress bar to finish automatically when it is close to 100%|`true`|`true`, `false`| ## Implementation