Fixed #4133 - Selection(multiple and single) not working in TreeTable
parent
1c05650aaf
commit
a09f66ec46
|
@ -174,10 +174,10 @@ const styles = `
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const classes = {
|
const classes = {
|
||||||
root: ({ props }) => [
|
root: ({ instance, props }) => [
|
||||||
'p-treetable p-component',
|
'p-treetable p-component',
|
||||||
{
|
{
|
||||||
'p-treetable-hoverable-rows': props.rowHover || props.rowSelectionMode,
|
'p-treetable-hoverable-rows': props.rowHover || instance.rowSelectionMode,
|
||||||
'p-treetable-auto-layout': props.autoLayout,
|
'p-treetable-auto-layout': props.autoLayout,
|
||||||
'p-treetable-resizable': props.resizableColumns,
|
'p-treetable-resizable': props.resizableColumns,
|
||||||
'p-treetable-resizable-fit': props.resizableColumns && props.columnResizeMode === 'fit',
|
'p-treetable-resizable-fit': props.resizableColumns && props.columnResizeMode === 'fit',
|
||||||
|
|
|
@ -394,7 +394,7 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
containerClass() {
|
containerClass() {
|
||||||
return [this.node.styleClass, this.cx('root')];
|
return [this.node.styleClass, this.cx('row')];
|
||||||
},
|
},
|
||||||
expanded() {
|
expanded() {
|
||||||
return this.expandedKeys && this.expandedKeys[this.node.key] === true;
|
return this.expandedKeys && this.expandedKeys[this.node.key] === true;
|
||||||
|
|
Loading…
Reference in New Issue