lemon-dragin

0.2.0 • Public • Published

dragin

拖拽

在项目中安装

npm install lemon-dragin --save
# 或 
yarn add lemon-dragin

使用

import Dragin from 'lemon-dragin';
 
new Dragin(docment.querySelector('#box'), {
  clone: true,
  start(x, y) {
    console.log('start', x, y);
  },
  move(x, y) {
    console.log('move', x, y);
  },
  end() {
    console.log('end');
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i lemon-dragin

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

6.23 kB

Total Files

11

Last publish

Collaborators

  • jiulin