0.2.0 • Published 6 years ago
lemon-dragin v0.2.0
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');
}
})