-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何获取拖拽组件的数据 #100
Comments
你可以使用filter让id为奇数的不可以拖动,或者拖动的时候onMove返回false |
上面是一个简化的场景,实际使用的场景比较复杂,使用 |
不太理解您的使用场景,您可以尝试传递函数 |
我现在的处理方式是:
虽然也可以使用,但是我想如果能在 |
How can I get sourceData and targetData with onMove event, I want to confirm whether it can be moved to the new item. TK |
put函数中有dragEl,可以通过这个获取目标数据。比如将一个唯一标识设置在拖拽元素上,说拽时通过dargEl获取这个标识,再用这个标识去查找目标数据 |
如下图:在双列表拖拽的场景下,从左往右拖动时,只允许放置id为偶数的组件
我想使用
GroupOptions
中的put
函数来判断,但是put
函数无法获取组件原本的数据请问使用
put
函数时如何获取原始列表的数据或者有什么别的处理思路吗 🤔The text was updated successfully, but these errors were encountered: