Closed kawais closed 1 month ago
如beforeDragMethod,返回true表示可拖动,false不可拖动 就像beforeDropMethod那样
dragstart 事件里面执行 event.preventDefault() 的话感觉可行
dragstart
event.preventDefault()
或者你可以试试监听 node-dragstart 事件?里面就有节点信息跟 DragEvent 参数
node-dragstart
DragEvent
参考这个不用新增 API 同样可以实现
如beforeDragMethod,返回true表示可拖动,false不可拖动 就像beforeDropMethod那样