web:fix init and build api

This commit is contained in:
pengfei.zhou
2020-03-30 15:18:35 +08:00
parent 050dfc46ae
commit bd5391a0ac
4 changed files with 14 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ export class DoricElement extends HTMLElement {
divElement.style.height = '100%'
this.append(divElement)
this.context.rootNode.view = divElement
this.context.init({
this.context.build({
width: divElement.offsetWidth,
height: divElement.offsetHeight,
})