Skip to content

Commit

Permalink
Merge pull request #81 from chiaweilee/master
Browse files Browse the repository at this point in the history
πŸš€ refactor: no component require
  • Loading branch information
hilongjw authored Dec 3, 2018
2 parents 8f8102c + 5488630 commit a803468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a803468

Please sign in to comment.