列设置拖动逻辑调整

zth
lijingjia 1 week ago
parent a583284058
commit 7830dfc166

@ -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

Loading…
Cancel
Save