Happy-Coding-Clans / vue-easytable

A powerful data table based on vuejs. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
https://happy-coding-clans.github.io/vue-easytable/
MIT License
3.69k stars 738 forks source link

Bug #447

Closed roma177 closed 2 years ago

roma177 commented 2 years ago

Hello, I try to style a table rows with this bodyCellClass: ({ row, column, rowIndex }) => { if (column.title === "abc") { return "alignment-by-padding"; } if (rowIndex || !rowIndex) { return "table-primary-color"; } }, With this code I expect that a column with title abc would have both classes alignment-by-padding and table-primary-color. But that does not work. It returns only one class alignment-by-padding or table-primary-color, cannot return both simultaneously. Is there a way to fix that?