ํ๋ก์ ํธ
GitHub์์ ๋ณด๊ธฐ
muzishuiji/vue-ins-progress-bar
์๊ฐ
Rainbow progress bar Vue component in instagram style ๐ Instagram ้ฃๆ ผ็ Vue ๅฝฉ่น่ฟๅบฆๆก็ปไปถ
์น ๋ฐ ์ฑ ๊ฐ๋ฐ์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Original
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: muzishuiji
Popularity
ChangeLog
Documented in Releases
License
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ