Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-scroll-bar-above

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-scroll-bar-above

A Vue.js component

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

vue-top-scroll-progress

Simple Vue.js plugin for top scroll progress bar

安装

npm i vue-scroll-bar-above --save

使用


main.js
import Vue from 'vue'
import VueScrollBarAbove from 'vue-scroll-bar-above'
Vue.use(VueScrollBarAbove)
component

普通页面布局的使用

<!-- .vue template -->
 <VueScrollBarAbove></VueScrollBarAbove>

对于使用overflow-y scroll 属性的元素,需要指定elName,elName为实际滚动的元素

 <VueScrollBarAbove elName='#scroll-element'></VueScrollBarAbove>

或者手动设置Progress的百分比

 <VueScrollBarAbove percent='80'></VueScrollBarAbove>
自定义样式属性
  • containerColor - 容器的背景颜色
  • height - 容器的高度
  • backgroundColor - 内部滚动条颜色
  • height - 内部滚动条的高度

Keywords

FAQs

Package last updated on 08 Jan 2019

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc