🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

vue-vitural-scroll-bar

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-vitural-scroll-bar

A Vue.js project

1.1.0
latest
Source
npm
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

declare

  • 1、user for myselft to learining how to publish an package to npm
  • 2、do it just for fun
  • 3、it can create a virutal scrollbar in vertical direction

preview demo

http://pdj97cjik.bkt.clouddn.com/vue-scorllbar.mp4

install

npm install vue-virtual-scroll-bar -s

use in vue

import vueScroll from '../node_modules/vue-scroll-bar/dist/vueVirtualScrollBar'
Vue.use(vueScroll)
 <v-scroll-bar height="100px" width="200px">
     <ul>
        <li v-for="i in 10">{{i}}</li>
      </ul>
    </v-scroll-bar>

you should set a container with and height attribute

api

  • attr width:container width; height:container height; offsetX:scrollbar x position ,default 0

Keywords

virtual-scrollbar

FAQs

Package last updated on 16 Aug 2018

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