fix(core): update
This commit is contained in:
parent
b1350c463b
commit
c5eec2ac22
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -15,7 +15,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"projectType": {
|
"projectType": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["website", "element", "service", "npm"]
|
"enum": ["website", "element", "service", "npm", "wcc"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3863
package-lock.json
generated
3863
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,8 +20,8 @@ export class TestDemoelement extends LitElement {
|
|||||||
background: #000;
|
background: #000;
|
||||||
}
|
}
|
||||||
`)}
|
`)}
|
||||||
</style>
|
</style>
|
||||||
<div class="maincontainer">This is a demo element</div>
|
<div class="maincontainer">This is a demo element</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,8 @@ export class WccDashboard extends LitElement {
|
|||||||
.dashboardRef=${this}
|
.dashboardRef=${this}
|
||||||
.warning="${this.warning}"
|
.warning="${this.warning}"
|
||||||
.selectedItem=${this.selectedItem}
|
.selectedItem=${this.selectedItem}
|
||||||
|
.selectedViewport=${this.selectedViewport}
|
||||||
|
.selectedTheme=${this.selectedTheme}
|
||||||
@selectedViewport=${(eventArg) => {
|
@selectedViewport=${(eventArg) => {
|
||||||
this.selectedViewport = eventArg.detail;
|
this.selectedViewport = eventArg.detail;
|
||||||
this.performUpdate();
|
this.performUpdate();
|
||||||
@ -138,6 +140,7 @@ export class WccDashboard extends LitElement {
|
|||||||
domtoolsInstance.setVirtualViewport(routeInfo.params.viewport as TViewport);
|
domtoolsInstance.setVirtualViewport(routeInfo.params.viewport as TViewport);
|
||||||
this.selectedViewport = routeInfo.params.viewport as TViewport;
|
this.selectedViewport = routeInfo.params.viewport as TViewport;
|
||||||
this.selectedTheme = routeInfo.params.theme as TTheme;
|
this.selectedTheme = routeInfo.params.theme as TTheme;
|
||||||
|
domtoolsInstance.themeManager.goBrightBoolean = this.selectedTheme === 'bright';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,10 +153,8 @@ export class WccDashboard extends LitElement {
|
|||||||
await this.domtools.router._handleRouteState();
|
await this.domtools.router._handleRouteState();
|
||||||
this.updating = true;
|
this.updating = true;
|
||||||
const storeElement = this.selectedItem;
|
const storeElement = this.selectedItem;
|
||||||
|
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
this.selectedItem = null;
|
this.selectedItem = null;
|
||||||
|
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
this.selectedItem = storeElement;
|
this.selectedItem = storeElement;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user