diff --git a/src/utils/inject.js b/src/utils/inject.js index 709f2d8..1548b68 100644 --- a/src/utils/inject.js +++ b/src/utils/inject.js @@ -152,7 +152,12 @@ Vue.component("scrollTable", { props: { headerCellClassName: 'tableHeader', cellClassName: 'tableCell', stripe: !0, ...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}})) )