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