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";