created回调改为异步

master
yutent 2023-09-20 17:37:54 +08:00
parent fb5068b040
commit ce4bf92ce2
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ export class Component extends HTMLElement {
this[__changed_props__].set(prop, this[prop])
}
this.created()
nextTick(_ => this.created())
}
createProperty(name, options) {