:move="onMove"
onMove(e) { console.log(e); let moveName = e.draggedContext.element.name // 这个是当前拖拽的控件名 // 接下来判断该控件要不要拖进指定的容器 if(moveName == '禁止拖拽进容器的控件名' && e.to._prevClass=='要拖进的容器的class名')return false //符合条件返回false,否则返回true return true },
return false 即可实现不能拖拽进入
https://blog.csdn.net/weixin_58018769/article/details/130380746
- 130380746 58018769 article details weixin130380746 58018769 article details 123027193 wufagang article details libin9ioak 127749042 article details skywalking 129704345 article details qfturauyls 127044930 article details 519640026 106940115 article details 58018769 130380746 weixin wechar weixin vista exe