vue-touch-box

1.0.3 • Public • Published

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

Attribute Description Default
speed scrolling speed. 1
mobile open the mobile. false
inertia open the scroll inertia. true
rebound scroll rebound,if horizontal scrolling then fail. true

Readme

Keywords

none

Package Sidebar

Install

npm i vue-touch-box

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

132 kB

Total Files

19

Last publish

Collaborators

  • shn0620