mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor #5196
This commit is contained in:
parent
3a89a10fd5
commit
30c20d4e8a
2 changed files with 15 additions and 4 deletions
|
@ -350,7 +350,7 @@ const classes = {
|
|||
rowgroupHeader: 'p-rowgroup-header',
|
||||
rowGroupToggler: 'p-row-toggler p-link',
|
||||
rowGroupTogglerIcon: 'p-row-toggler-icon',
|
||||
row: ({ instance, props, index }) => {
|
||||
row: ({ instance, props, index, columnSelectionMode }) => {
|
||||
let rowStyleClass = [];
|
||||
|
||||
if (props.selectionMode) {
|
||||
|
@ -358,9 +358,8 @@ const classes = {
|
|||
}
|
||||
|
||||
if (props.selection) {
|
||||
console.log(props.selectionMode);
|
||||
rowStyleClass.push({
|
||||
'p-highlight': props.selectionMode === 'multiple' || props.selectionMode === 'single' ? instance.isSelected : instance.isSelected && instance.$parentInstance.$parentInstance.highlightOnSelect
|
||||
'p-highlight': columnSelectionMode ? instance.isSelected && instance.$parentInstance.$parentInstance.highlightOnSelect : instance.isSelected
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue