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": {
|
||||
"projectType": {
|
||||
"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;
|
||||
}
|
||||
`)}
|
||||
</style>
|
||||
</style>
|
||||
<div class="maincontainer">This is a demo element</div>
|
||||
`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -81,6 +81,8 @@ export class WccDashboard extends LitElement {
|
||||
.dashboardRef=${this}
|
||||
.warning="${this.warning}"
|
||||
.selectedItem=${this.selectedItem}
|
||||
.selectedViewport=${this.selectedViewport}
|
||||
.selectedTheme=${this.selectedTheme}
|
||||
@selectedViewport=${(eventArg) => {
|
||||
this.selectedViewport = eventArg.detail;
|
||||
this.performUpdate();
|
||||
@ -138,6 +140,7 @@ export class WccDashboard extends LitElement {
|
||||
domtoolsInstance.setVirtualViewport(routeInfo.params.viewport as TViewport);
|
||||
this.selectedViewport = routeInfo.params.viewport as TViewport;
|
||||
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();
|
||||
this.updating = true;
|
||||
const storeElement = this.selectedItem;
|
||||
|
||||
setTimeout(async () => {
|
||||
this.selectedItem = null;
|
||||
|
||||
setTimeout(async () => {
|
||||
this.selectedItem = storeElement;
|
||||
setTimeout(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user