Skip to content
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

列表中包含可拖动和不可拖动的项,如何做才可以让可拖动的元素无法拖到不可拖动元素上 #118

Open
Qc-miao opened this issue Apr 2, 2024 · 6 comments

Comments

@Qc-miao
Copy link

Qc-miao commented Apr 2, 2024

No description provided.

@Alfred-Skyblue
Copy link
Owner

onMove: ()=> false

@JsweetA
Copy link

JsweetA commented Apr 7, 2024

是否有demo看看

@Alfred-Skyblue
Copy link
Owner

是否有demo看看

使 onMove 返回 false 可以阻止本次拖拽插入

@SpringButt
Copy link

是否有demo看看

https://codesandbox.io/p/sandbox/draggable-plus-l9vslm?file=%2Fsrc%2FApp.vue
怎么让排序项目无法拖拽到最后一项后面

@SpringButt
Copy link

是否有demo看看

使 onMove 返回 false 可以阻止本次拖拽插入

https://codesandbox.io/p/sandbox/draggable-plus-l9vslm?file=%2Fsrc%2FApp.vue
怎么让排序项目无法拖拽到最后一项后面

@SpringButt
Copy link

是否有demo看看

使 onMove 返回 false 可以阻止本次拖拽插入

https://codesandbox.io/p/sandbox/draggable-plus-l9vslm?file=%2Fsrc%2FApp.vue 怎么让排序项目无法拖拽到最后一项后面

如果将最后一个列表项拖拽到新增按钮后,会导致下一次新增项目位置错乱.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants