fix(core): update

This commit is contained in:
Philipp Kunz 2021-11-26 18:27:29 +01:00
parent dd71751864
commit abb20def4b
2 changed files with 14 additions and 0 deletions

View File

@ -20,6 +20,17 @@ enum ETestEnum {
export class TestDemoelement extends DeesElement { export class TestDemoelement extends DeesElement {
public static demo = () => html`<test-demoelement>This is a slot text</test-demoelement>`; public static demo = () => html`<test-demoelement>This is a slot text</test-demoelement>`;
@property()
public notTyped = 'hello';
@property({
type: String,
})
public typedAndNotInitizalized: string;
@property()
public notTypedAndNotInitizalized: string;
@property({ @property({
type: Boolean, type: Boolean,
}) })

View File

@ -255,6 +255,9 @@ export class WccProperties extends LitElement {
if (this.selectedItem && (this.selectedItem as any).demo) { if (this.selectedItem && (this.selectedItem as any).demo) {
console.log(`Got Dees-Element for property evaluation.`); console.log(`Got Dees-Element for property evaluation.`);
const anonItem: any = this.selectedItem; const anonItem: any = this.selectedItem;
if (!anonItem) {
return;
}
console.log(anonItem.elementProperties); console.log(anonItem.elementProperties);
const wccFrame = await this.dashboardRef.wccFrame; const wccFrame = await this.dashboardRef.wccFrame;
let selectedElement: HTMLElement; let selectedElement: HTMLElement;