Compare commits

..

No commits in common. 'b4dc165deda2d3d9e63b1f81f0724a9e2ae43fb4' and '8c1298ba96c2f46e4de81794f3b4cfb48c9b8eb4' have entirely different histories.

@ -574,13 +574,15 @@ const scrollX = computed(() => {
return
const tableEl: any = table?.$el
const wrapper = tableEl.querySelector('.n-data-table-wrapper')
// const arr = columnsRef.value.filter(item => !item.fixed)
const arr = columnsRef.value.filter(item => !item.fixed)
let width = 0
columnsRef.value.forEach((item) => {
console.log(arr)
arr.forEach((item) => {
width += Number(item.width) || 200
})
return width
console.log(wrapper.offsetWidth + width)
console.log(arr)
return wrapper.offsetWidth + width
})
query(pagination.page, pagination.pageSize)
@ -1194,8 +1196,4 @@ defineExpose({
:deep(.n-data-table .n-data-table-td) {
color: #666;
}
:deep(.n-data-table .n-data-table-base-table-header) {
overflow: hidden;
}
</style>

Loading…
Cancel
Save