Fixed tree component not loading

This commit is contained in:
thepaperpilot 2021-08-30 23:13:57 -05:00
parent 0dcf417a31
commit 09d4e88694
2 changed files with 3 additions and 2 deletions

View file

@ -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(`<img src=${this.layer.image}/>`);
} else {

View file

@ -61,6 +61,7 @@ export interface Layer extends Feature {
midsection?: CoercableComponent;
style?: Partial<CSSStyleDeclaration>;
nodeStyle?: Partial<CSSStyleDeclaration>;
nodeDisplay?: CoercableComponent;
display?: CoercableComponent;
shown: boolean;
layerShown: boolean | "ghost";