Muse-UI progress plugin like on Youtube
npm install -S muse-ui-progress
// or
yarn add muse-ui-progress
<link rel="stylesheet" href="https://unpkg.com/muse-ui-loading/dist/muse-ui-loading.all.css"/>
<script src="https://unpkg.com/muse-ui-loading/dist/muse-ui-loading.js"></script>
import 'muse-ui-progress/dist/muse-ui-progress.css';
import Vue from 'vue';
import MuseUIProgress from 'muse-ui-progress';
Vue.use(MuseUIProgress);
new Vue({
created () {
this.$progress.start();
this.$progress.done();
}
})
// or
MuseUIProgress.start();
MuseUIProgress.done();
export default {
zIndex: 2000, // progress z-index
top: 0, // position fixed top
speed: 300, // progress speed
color: 'primary', // color
size: 2, // progress size
className: '' // progress custom class
};