vue-ins-progress-bar
A vue ins progress bar
10,270
327
| Install | |
|---|---|
npm install vue-ins-progress-bar |
|
| Latest Version: | 1.3.9 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Dec 7, 2024 |
| Links: | GitHub · npm |
Maintainer: muzishuiji

vue-ins-progress-bar
a vue component of ins-style progress bar
一款 ins 风格的 vue 进度条组件
Demo
Install
$ npm i vue-ins-progress-bar
Usage
main.js
import VueInsProgressBar from 'vue-ins-progress-bar'
const options = {
position: 'fixed',
show: true,
height: '3px'
}
Vue.use(VueInsProgressBar, options)
App.vue
<template>
<div id="app">
<router-view/>
<vue-ins-progress-bar></vue-ins-progress-bar>
</div>
</template>
<script>
export default {
name: 'App',
mounted () {
this.$insProgress.finish()
},
created () {
this.$insProgress.start()
this.$router.beforeEach((to, from, next) => {
this.$insProgress.start()
next()
})
this.$router.afterEach((to, from) => {
this.$insProgress.finish()
})
}
}
</script>
APIs
this.$insProgress.start() // start the loading
this.$insProgress.finish() // finish the loading
this.$insProgress.height(4) // resize the height of loading bar to 4px
Browsers Support
Modern browsers and Internet Explorer 9+ (IE9 purple)
Source
Repository: vue-ins-progress-bar
Contributors: contributors
Author: meloalright
Popularity
ChangeLog
Documented in Releases
License
Related Packages
vue3-circle-progress
A circular progressbar component for Vue 3, built with SVG and extensively custo...
393,857
41
vue2-progress-bar
A linear progress bar component for Vue.js. Uses SVG and javascript to animate a...
1,934
1
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.3.9 | ^2.5.16 | MIT | |
| 1.3.8 | ^2.5.16 | MIT | |
| 1.3.0 | ^2.5.16 | MIT | |
| 1.1.7 | ^2.5.16 | MIT | |
| 1.0.0 | ^2.5.16 | MIT |