mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-24 17:31:47 +00:00
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 {
|
||||
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 {
|
||||
|
|
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;
|
||||
style?: Partial<CSSStyleDeclaration>;
|
||||
nodeStyle?: Partial<CSSStyleDeclaration>;
|
||||
nodeDisplay?: CoercableComponent;
|
||||
display?: CoercableComponent;
|
||||
shown: boolean;
|
||||
layerShown: boolean | "ghost";
|
||||
|
|
Loading…
Reference in a new issue