2.1.4 • Published 6 years ago

vue-antiscroll-addon v2.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Vue-Antiscroll-Addon

Features

Support

Support Vue.js 2.0+

Install

npm install vue-antiscroll-addon

Useage

// in entry file
import Vue from 'vue'
import vueAntiscroll from 'vue-antiscroll-addon'
Vue.component('vueAntiscroll', vueAntiscroll)

Example

<VueAntiscroll class="el-menu__wrapper width-100" :height="menuBoxHeight">
    // content
</VueAntiscroll>

Props

NameTypeDescriptionOptional valueDefault
heightintthe container height
widthintthe container width
scrollingfunctionon scroll callback —
scrollToBottomfunctionon scrollToBottom called up
initialDisplaybooleanWhether to display when initialized scrollbar
barClassstringauto add when initialized scrollbar
transitionTargetstringcss selector(When your scroll toggle display in an transition element, you may provide transitionTarget, then the scroll will auto refresh() after transitionend event )eg: '.abc'

Api

  1. scrollTo
   <VueAntiscroll ref="antiscroll" class="el-menu__wrapper width-100" :height="menuBoxHeight">
       // content
   </VueAntiscroll>
   // paramter
   // bottom, top, left, right
   this.$refs.antiscroll.scrollTo('bottom')
  1. refresh
   <VueAntiscroll ref="antiscroll" class="el-menu__wrapper width-100" :height="menuBoxHeight">
       // content
    </VueAntiscroll>
    //You may need it when the display is switched
    this.$refs.antiscroll.refresh()

Compatibility

PC: IE9+

LICENSE

MIT

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago