mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
* DataTable performance improvement (1) * Refactor on DT performance * Refactor * Refactor * Update RowExpansionDoc.vue * Update RowExpansionDoc.vue * Update RowExpansionDoc.vue
This commit is contained in:
parent
f6c5cda987
commit
fb1fb60eab
7 changed files with 674 additions and 467 deletions
|
@ -368,7 +368,7 @@ const classes = {
|
|||
rowgroupHeader: 'p-rowgroup-header',
|
||||
rowGroupToggler: 'p-row-toggler p-link',
|
||||
rowGroupTogglerIcon: 'p-row-toggler-icon',
|
||||
row: ({ instance, props, rowData }) => {
|
||||
row: ({ instance, props }) => {
|
||||
let rowStyleClass = [];
|
||||
|
||||
if (props.selectionMode) {
|
||||
|
@ -377,13 +377,13 @@ const classes = {
|
|||
|
||||
if (props.selection) {
|
||||
rowStyleClass.push({
|
||||
'p-highlight': instance.isSelected(rowData)
|
||||
'p-highlight': instance.isSelected
|
||||
});
|
||||
}
|
||||
|
||||
if (props.contextMenuSelection) {
|
||||
rowStyleClass.push({
|
||||
'p-highlight-contextmenu': instance.isSelectedWithContextMenu(rowData)
|
||||
'p-highlight-contextmenu': instance.isSelectedWithContextMenu
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue