shenymce-top
v1.0.6
Published
go to page top
Downloads
3
Readme
shenymce-top
go page top
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the [docs for
参数
bTop 类型 Number 距离浏览器顶部距离单位vh,默认 35
scrollTop 类型 Number 滚动条距离浏览器顶部多少时显示回到顶部按钮 默认 200
bgcolor 类型 String 背景颜色 默认 #000
items 类型 Array 其他按钮列表 默认
default
[
{
class: 'fa-wechat',
click: 'wechat',
},
{
class: 'fa-phone',
click: 'phone',
},
]
class awesome 字体图标class
click 点击处理函数
调用
import Main from 'shenymce-top'
<Main :bTop="60" bgcolor="red" @wechat="wechat" @phone="phone" />
parameters
bTop: type Number, Distance from the top of the browser, Unit of the vh, default 35
scrollTop: type Number, The back to top button shows how far the scroll bar is from the top of the browser, default 200
bgcolor: type String, background color, default #000
items: type Array, list of other buttons
default
[
{
class: 'fa-wechat',
click: 'wechat',
},
{
class: 'fa-phone',
click: 'phone',
},
]
class awesome font icon class
click handler function
apply
import Main from 'shenymce-top'
<Main :bTop="60" bgcolor="red" @wechat="wechat" @phone="phone" />