mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-19 21:06:06 +08:00
fix: 修复表格拖拽排序与表单选字操作冲突的问题
This commit is contained in:
parent
18524d89fb
commit
f91eb415db
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user