1
0
mirror of synced 2025-12-13 14:29:27 +08:00

fix: 修复表格拖拽排序与表单选字操作冲突的问题

This commit is contained in:
marchyang
2025-04-04 10:56:52 +08:00
parent 18524d89fb
commit f91eb415db

View File

@@ -320,6 +320,8 @@ const rowDrop = () => {
}
sortable = Sortable.create(tBodyEl, {
draggable: '.tmagic-design-table-row',
filter: 'input', // 表单组件选字操作和触发拖拽会冲突,优先保证选字操作
preventOnFilter: false, // 允许选字
direction: 'vertical',
onEnd: ({ newIndex, oldIndex }: SortableEvent) => {
if (typeof newIndex === 'undefined') return;