qgh810 / dnd Goto Github PK
View Code? Open in Web Editor NEWdrag and drop 基于原生js的拖放库 带vue组件 兼容移动端, 兼容ie
drag and drop 基于原生js的拖放库 带vue组件 兼容移动端, 兼容ie
Cannot read property 'pageX' of undefined
@qgh810
您好,我用的你的组件,将draggable组件渲染的元素拖动到droppable组件里面,下图是渲染之后的效果
那么如何实现dnd-drop-content
下面的dnd-drag-content
也可以拖拽呢?
那个一复杂的例子里面也没有这个效果,望解答,谢谢。
在存在滚动条的页面中了使用该库,滚动页面后,再拖拽元素会不跟鼠标
现在拖拽的时候相当于复制了一个出来,怎么才能始终就拖拽这一个元素呢?还有就是容器怎么才能只容纳一个元素呢
document.addEventListener('mouseup', this.onElMouseUp.bind(this))
这个侦听是无法移除的,因为bind返回的是新函数
移动端报错:Uncaught TypeError: Cannot read property 'pageX' of undefined,但是线上demo的就不报错
这个可以嵌套么?Droppable
vue里用v-for 循环出来的draggable 组件 传data的数据会错乱
IE11兼容性有问题,根本玩不了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.