Compare commits

..

2 Commits

@ -574,15 +574,13 @@ 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
console.log(arr)
arr.forEach((item) => {
columnsRef.value.forEach((item) => {
width += Number(item.width) || 200
})
console.log(wrapper.offsetWidth + width)
console.log(arr)
return wrapper.offsetWidth + width
return width
})
query(pagination.page, pagination.pageSize)
@ -1196,4 +1194,8 @@ 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