0.1.0 • Published 6 years ago

vue-fast-drag v0.1.0

Weekly downloads
5
License
-
Repository
-
Last release
6 years ago

vue-fast-drag

Description

流畅的,轻量级的拖动组件,它基于Vue.js。

Anything can be dragged and moved.
Base on Vue.js.

Use

import Vdrag from "vue-fast-drag"

right:

<Vdrag>
  <div>drag and move me now</div>
</Vdrag>

<Vdrag>
  <img src="..." />
</Vdrag>

<Vdrag>
  <div>
    <div>drag</div>
    <div>me</div>
  </div>
</Vdrag>

------------------------

wrong:

<Vdrag>
  <div>drag</div>
  <div>me</div>
</Vdrag>

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint