Socket
Book a DemoInstallSign in
Socket

shenymce-top

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shenymce-top

go to page top

1.0.6
latest
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

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" />

FAQs

Package last updated on 22 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.