1.1.4 • Published 6 years ago

vue-overflow-scroll v1.1.4

Weekly downloads
80
License
MIT
Repository
github
Last release
6 years ago

vue-overflow-scroll

Scroll automatically when the element is overflow.

support vue 2.0

live demo

Installation

NPM(recommended)

npm install vue-overflow-scroll -D

Get Started

// ES6
import Vue from 'vue'
import VueOverflowScroll from 'vue-overflow-scroll'

Vue.use(VueOverflowScroll)

Directive v-overflow-scroll then can be used in your Component.

<template>
  <div v-overflow-scroll="true" scroll-to="last-child">
    ...
  </div>
<template>
...

then when the div can scroll-y,then it can scroll to last child.

the scroll-to can scroll to other child like this option: scroll-to="first-child"scroll-to="4"


if you want to scroll to the child dom by id, you can use scroll-to-id="child-dom-id"

<template>
  <div v-overflow-scroll="true" scroll-to-id="child-dom-id">
    ...
  </div>
</template>

if you wan to scroll to the child dom by class name, you can use scroll-to-class="child-dom-class-name"

<template>
  <div v-overflow-scroll="true" scroll-to-class="child-dom-class">
    ...
  </div>
</template>
1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago