From 09d4e8869469001766aee4b4d99bd71ab568adb1 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 30 Aug 2021 23:13:57 -0500 Subject: [PATCH] Fixed tree component not loading --- src/components/tree/TreeNode.vue | 4 ++-- src/typings/layer.d.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/tree/TreeNode.vue b/src/components/tree/TreeNode.vue index db57c9c..2f4f53b 100644 --- a/src/components/tree/TreeNode.vue +++ b/src/components/tree/TreeNode.vue @@ -66,8 +66,8 @@ export default defineComponent({ ]; }, display(): Component | string { - if (this.layer.display != undefined) { - return coerceComponent(this.layer.display); + if (this.layer.nodeDisplay != undefined) { + return coerceComponent(this.layer.nodeDisplay); } else if (this.layer.image != undefined) { return coerceComponent(``); } else { diff --git a/src/typings/layer.d.ts b/src/typings/layer.d.ts index 9dfd56a..e6e4e6d 100644 --- a/src/typings/layer.d.ts +++ b/src/typings/layer.d.ts @@ -61,6 +61,7 @@ export interface Layer extends Feature { midsection?: CoercableComponent; style?: Partial; nodeStyle?: Partial; + nodeDisplay?: CoercableComponent; display?: CoercableComponent; shown: boolean; layerShown: boolean | "ghost";