fix(core): update
This commit is contained in:
parent
bb46890b58
commit
dcca98c535
@ -21,6 +21,6 @@
|
||||
<script src="../ts_web/index.ts"></script>
|
||||
</head>
|
||||
<body>
|
||||
<wcc-dashboard></wcc-dashboard>
|
||||
<></>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -38,4 +38,4 @@
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
]
|
||||
}
|
||||
}
|
@ -18,6 +18,10 @@ wcc tools for creating element catalogues
|
||||
|
||||
## Usage
|
||||
|
||||
## Contribution
|
||||
|
||||
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
|
||||
|
||||
|
||||
## Contribution
|
||||
|
||||
|
@ -19,13 +19,20 @@ export class WccDashboard extends LitElement {
|
||||
public selectedViewport: string = 'desktop';
|
||||
|
||||
@property()
|
||||
public pages: TemplateResult[] = [];
|
||||
public pages: { [key: string]: TemplateResult } = {};
|
||||
|
||||
@property()
|
||||
public elements: LitElement[] = [];
|
||||
public elements: { [key: string]: LitElement } = {};
|
||||
|
||||
constructor() {
|
||||
constructor(elementsArg?: { [key: string]: LitElement }, pagesArg?: { [key: string]: TemplateResult }) {
|
||||
super();
|
||||
if (elementsArg) {
|
||||
this.elements = elementsArg;
|
||||
}
|
||||
|
||||
if (pagesArg) {
|
||||
this.pages = pagesArg;
|
||||
}
|
||||
}
|
||||
|
||||
public render(): TemplateResult {
|
||||
|
Loading…
Reference in New Issue
Block a user