forked from profectus/Profectus
Fixed tree component not loading
This commit is contained in:
parent
0dcf417a31
commit
09d4e88694
2 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
1
src/typings/layer.d.ts
vendored
1
src/typings/layer.d.ts
vendored
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue