Socket
Socket
Sign inDemoInstall

scroll-bar-vue

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    scroll-bar-vue

scroll-bar-vue in vue.js


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

scrollBar

介绍

scrollBar是基于vue的组件,为方便生成浏览器间统一的滚动条样式

  • 滚动条可以拖动
  • 滚轮可滚动
  • 移动端可拖动

安装

npm install scroll-bar-vue --sava

使用

import scrollBar from 'scroll-bar-vue'

components:[
 scrollBar
}
<div class='wrapper'>
 <!--wrapper的宽高决定scrollBar的宽高-->
 <scroll-bar>
  <div>
   ...<!-- 这里填写文字内容-->
  </div>
 </scroll-bar>
</div>

参数

<scroll-bar :barHide='true'>
  <!--所有参数按此逻辑传递-->
</scroll-bar>
barHide
是否隐藏滚动条 布尔值 默认true(显示)

FAQs

Last updated on 01 Mar 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc