mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-24 22:36:39 +08:00
解决代码生成的查询条件列表拖拽报错问题
This commit is contained in:
parent
33c93ae365
commit
393cb325c7
@ -41,7 +41,7 @@
|
||||
|
||||
<a-table
|
||||
size="small"
|
||||
:scroll="{ x: 1000 }"
|
||||
:scroll="{ y: 800 }"
|
||||
:loading="tableLoading"
|
||||
bordered
|
||||
:dataSource="tableData"
|
||||
|
@ -178,8 +178,8 @@
|
||||
chosenClass: 'smart-ghost-class', //设置选中样式类名
|
||||
handle: '.handle',
|
||||
onEnd: ({ oldIndex, newIndex }) => {
|
||||
const oldRow = tableData.value.splice(oldIndex, 1)[0];
|
||||
tableData.value.splice(newIndex, 0, oldRow);
|
||||
const oldRow = tableData.value.splice(oldIndex - 1, 1)[0];
|
||||
tableData.value.splice(newIndex - 1, 0, oldRow);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
<a-table
|
||||
size="small"
|
||||
:scroll="{ x: 1000 }"
|
||||
:scroll="{ y: 800 }"
|
||||
:loading="tableLoading"
|
||||
bordered
|
||||
:dataSource="tableData"
|
||||
|
@ -178,8 +178,8 @@
|
||||
chosenClass: 'smart-ghost-class', //设置选中样式类名
|
||||
handle: '.handle',
|
||||
onEnd: ({ oldIndex, newIndex }) => {
|
||||
const oldRow = tableData.value.splice(oldIndex, 1)[0];
|
||||
tableData.value.splice(newIndex, 0, oldRow);
|
||||
const oldRow = tableData.value.splice(oldIndex - 1, 1)[0];
|
||||
tableData.value.splice(newIndex - 1, 0, oldRow);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user