设置当年dataType为string以免不回显,配置报表页面edirow时底部滚动条不变

This commit is contained in:
mll
2026-03-14 12:07:08 +08:00
parent d57c46b531
commit 2217b14377
2 changed files with 12 additions and 3 deletions

View File

@@ -14,7 +14,7 @@
:row-class-name="rowClassName"
@checkbox-all="(obj) => emit('selection-change', obj)"
@checkbox-change="(obj) => emit('selection-change', obj)"
@cell-click="(obj) => emit('cell-click', obj)"
@cell-click="cellClick"
>
<vxe-column v-if="tabItem.edit" type="checkbox" width="50" align="center"></vxe-column>
<vxe-column type="seq" width="50" align="center"></vxe-column>
@@ -106,7 +106,16 @@ const testClick = (row) => {
console.log('测试按钮被点击:', row)
alert('测试按钮工作正常!')
}
const cellClick = (obj) => {
const scrollLeft = vxeTableRef.value.getScroll().scrollLeft
const scrollTop = vxeTableRef.value.getScroll().scrollTop
emit('cell-click', obj)
nextTick(() => {
setTimeout(() => {
vxeTableRef.value.scrollTo(scrollLeft,scrollTop)
}, 1)
})
}
defineExpose({ vxeTableRef })
</script>