@ -145,7 +145,8 @@
const src = newItems.indexOf(dragging)
// 拖动结束时候的节点下标
const dst = newItems.indexOf(ending)
newItems.splice(src, 1, ...newItems.splice(dst, 1, newItems[src]))
newItems.splice(src, 1)
newItems.splice(dst, 0, dragging)
colData.value = newItems
}
const getColList = () => {
@ -37,7 +37,7 @@
:height="tableHeightRef + 35"
:row-config="{ isCurrent: true, isHover: true }"
:column-config="{ resizable: true }"
:scroll-y="{ enabled: true, gt: 0 }"
:scroll-y="{ enabled: true, gt: 0, scrollToTopOnChange: true }"
:scroll-x="{ enabled: true, gt: 0 }"
:sort-config="{ trigger: 'cell', remote: true }"
rowSelection