调整table滚动兼顾使用滚动条
This commit is contained in:
@@ -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}}))
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user