Skip to content

vxe-table虚拟列表 sortable 行拖拽 后空白 #2856

@hedengxing

Description

@hedengxing

可复现的链接(必须为公开链接,仅包含能复现问题的示例代码):

https://vxetable.cn/issues.html

是否已准备好复现链接与示例代码?

  • 我确定已准备好以上复现链接

问题描述与截图:

vxe-table 虚拟列表 sortable 或者 行拖拽拖拽到第一行 后第一行上面会空白 计算有问题 vxe-table--body 会出现 margin-top: 108px; 但是目前已经是第一条 不应该有
const vxeTableOpt = {
rowConfig: {
useKey: true,
resizable: true
},
columnConfig: {
useKey: true,
resizable: true
},
virtualYConfig: {
enabled: true,
gt: 0,
immediate: true
},
round: true,
border: true,
maxHeight: 400,
columnDragConfig: {
visibleMethod ({ column }) {
if (column.field === 'opt') {
return false
}
return true
}
}
}



期望的结果:

No response

操作系统:

win11

浏览器版本:

edge

vue 版本:

3.4.27

vxe-pc-ui 版本:

vxe-table 版本:

4.12.4

是否使用当前最新版本?

  • 我确定已经更新到最新版本后依然存在该问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions