调整table滚动兼顾使用滚动条

This commit is contained in:
2024-08-05 00:56:50 +08:00
parent 5519ae42ea
commit bc464398c7

View File

@@ -152,7 +152,12 @@ Vue.component("scrollTable", {
props: { props: {
headerCellClassName: 'tableHeader', cellClassName: 'tableCell', stripe: !0, headerCellClassName: 'tableHeader', cellClassName: 'tableCell', stripe: !0,
...config, data: tableData, height: '100%' ...config, data: tableData, height: '100%'
}, class: 'scrollTable' }, class: 'scrollTable',
on: {
'cell-click': (row, column, cell, event) => {
this.$emit("click", row, column, cell, event)
}
}
}, },
columns.map(col => h("tableColumn", {props: {column: col}})) columns.map(col => h("tableColumn", {props: {column: col}}))
) )