Fix background and fix PageElement system
This commit is contained in:
parent
6fc16f4de0
commit
91d92f7f48
24 changed files with 528 additions and 809 deletions
10
src/page/main/main.ts
Normal file
10
src/page/main/main.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { PageElement } from '../page-element';
|
||||
import { generate } from './main.html';
|
||||
import { createElement } from '../../helper/create-element';
|
||||
|
||||
export class Main extends PageElement {
|
||||
constructor(...children: Array<PageElement>) {
|
||||
super(createElement(generate()), children);
|
||||
children.forEach(c => this.attachElement(c));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue