支持wkitd响应式状态管理
parent
8c1b1350b0
commit
0a70cb1b2e
|
@ -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",
|
||||
|
|
|
@ -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规范, 在构造函数内不可设置节点的属性
|
||||
|
|
Loading…
Reference in New Issue