back to top plugins for vue
npm install x-backtotop
zIndex: {
type: Number,
default: 9999
},
triggerHeight: {
type: Number
},
smooth: {
type: Boolean,
default: true
},
scrollInterval: {
type: Number,
default: 10
},
scrollHeight: {
type: Number,
default: 100
}
Using in Vue application
<template>
<back-to-top></back-to-top>
</template>
import toTop from 'x-backtotop'
Vue.use(toTop)
This command will start a webpack-dev-server with content of dev folder.
npm run dev