Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
236 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 Answer

0 votes
by (71.8m points)

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...