1.0.3 • Published 5 years ago

vue-totop v1.0.3

Weekly downloads
22
License
MIT
Repository
github
Last release
5 years ago

vue-totop

markdown

vue 点击返回顶部插件,可以根据参数设定按钮大小,颜色,类型,返回顶部的时间等。

markdown

安装

npm install vue-totop -S

使用

注入

// ES6 import vueToTop from 'vue-totop' //or require var vueToTop = require('vue-totop')

Vue.use(vueToTop)

组件使用

<vueToTop></vueToTop>

参数

参数说明类型可选值默认值
type按钮的类型,一共16种number0~150
top滚动条离顶部多高时,显示返回顶部按钮number大于0的整数400
right按钮右部定位位置number大于0的整数30
bottom按钮底部定位位置number大于0的整数30
size按钮大小number大于0的整数24
color按钮颜色stringrgb/hex'#666'
duration返回顶部的间隔时间number大于0的整数300
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago