1.0.3 • Published 4 years ago

vue-touch-box v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

vue-touch-box

Vue 2.x npm npm-downloads Github

DEMO

中文文档

PC touch to elements was never this easy!

This is for vue 2.x

Installing

This package is available on npm.

Using npm:

npm install --save vue-touch-box

Using yarn:

yarn add vue-touch-box

Usage

vue-touch-box can be used as a vue directive.

As a vue directive

JS

import VueTouchBox from 'vue-touch-box';

Vue.use(VueTouchBox)

HTML

<div v-touch-box>
    touch this
</div>

Options

AttributeDescriptionDefault
speedscrolling speed.1
mobileopen the mobile.false
inertiaopen the scroll inertia.true
reboundscroll rebound,if horizontal scrolling then fail.true