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 { display(): Component | string {
if (this.layer.display != undefined) { if (this.layer.nodeDisplay != undefined) {
return coerceComponent(this.layer.display); return coerceComponent(this.layer.nodeDisplay);
} else if (this.layer.image != undefined) { } else if (this.layer.image != undefined) {
return coerceComponent(`<img src=${this.layer.image}/>`); return coerceComponent(`<img src=${this.layer.image}/>`);
} else { } else {

View file

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