Fixed #6159
parent
9608e30977
commit
df7889447c
|
@ -143,7 +143,9 @@ export default {
|
|||
}
|
||||
|
||||
if (this.isCheckboxSelectionMode()) {
|
||||
if (this.node.selectable != false) {
|
||||
this.toggleCheckbox();
|
||||
}
|
||||
} else {
|
||||
this.$emit('node-click', {
|
||||
originalEvent: event,
|
||||
|
@ -337,7 +339,7 @@ export default {
|
|||
});
|
||||
},
|
||||
propagateDown(node, check, selectionKeys) {
|
||||
if (check) selectionKeys[node.key] = { checked: true, partialChecked: false };
|
||||
if (check && node.selectable != false) selectionKeys[node.key] = { checked: true, partialChecked: false };
|
||||
else delete selectionKeys[node.key];
|
||||
|
||||
if (node.children && node.children.length) {
|
||||
|
|
|
@ -44,7 +44,7 @@ export interface TreeNode {
|
|||
styleClass?: string;
|
||||
/**
|
||||
* Whether the node is selectable when selection mode is enabled.
|
||||
* @defaultValue false
|
||||
* @defaultValue null
|
||||
*/
|
||||
selectable?: boolean;
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue