diff --git a/src/components/organizationchart/OrganizationChartNode.vue b/src/components/organizationchart/OrganizationChartNode.vue
index b6e151cce..ae5fe240d 100644
--- a/src/components/organizationchart/OrganizationChartNode.vue
+++ b/src/components/organizationchart/OrganizationChartNode.vue
@@ -5,7 +5,7 @@
@@ -133,6 +133,9 @@ export default {
},
selected() {
return this.selectable && this.selectionKeys && this.selectionKeys[this.node.key] === true;
+ },
+ toggleable() {
+ return this.collapsible && this.node.collapsible !== false && !this.leaf;
}
},
components: {
diff --git a/src/views/organizationchart/OrganizationChartDoc.vue b/src/views/organizationchart/OrganizationChartDoc.vue
index 163c40727..1e750ce1c 100644
--- a/src/views/organizationchart/OrganizationChartDoc.vue
+++ b/src/views/organizationchart/OrganizationChartDoc.vue
@@ -105,6 +105,12 @@ export default {
| true |
Whether node is selectable when selection is enabled. |
+
+ collapsible |
+ boolean |
+ true |
+ Whether node is collapsible when node expansion is enabled. |
+
children |
array |