npm i vue-fake-progressbar -S
import fakeProgressBar from 'vue-fake-progressbar'
Vue.use(fakeProgressBar)
Vue.$progress.start()
Vue.$progress.finish()
this.$progress.start({
color: 'red',
shadow: '0px 0px 5px yellow',
height: '4px'
})
setTimeout(() => {
this.$progress.finish({
color: 'red',
shadow: '0px 0px 10px red',
callback: () => {} // transitionend callback
})
}, 5000)
this.$progress.{method}()
Vue.use(fakeProgressBar, {
name: '$xxxProgressBar'
})
Vue.$xxxProgressBar.start()