支持wkitd响应式状态管理

master
yutent 2023-08-15 14:29:00 +08:00
parent 8c1b1350b0
commit 0a70cb1b2e
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "wkit",
"version": "1.10.2",
"version": "1.10.3",
"type": "module",
"description": "A library for building fast, lightweight web components.",
"main": "dist/index.js",

View File

@ -140,6 +140,10 @@ export class Component extends HTMLElement {
enumerable: false
})
if (window.wkitd && this.$store) {
window.wkitd.assign(this)
}
for (let [prop, options] of this.constructor[__props__]) {
this.createProperty(prop, options)
// 按W3C规范, 在构造函数内不可设置节点的属性