Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
248 views
in Technique[技术] by (71.8m points)

Vue.Draggable插件数据clone问题

假设有list1-2 三个数组的时候,从list拖拽到list1-3时,clone有一份数据给list1-2的数组中不可有重复出现,也就是说一份数据拖拽三个数组中不可重复

有没有人用过这个插件的呀?

插件文档示例代码: https://sortablejs.github.io/...

image.png

问题截图:(list1已经拥有list的数据的,此时list在托给list2的时候无法在拖拽)
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

https://www.lilnong.top/stati...

onmove判断一下是否存在,如果存在就返回 false


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...