diff --git a/package.json b/package.json index a5a9967..c507f58 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index c44cc70..d1e4fee 100644 --- a/src/index.js +++ b/src/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规范, 在构造函数内不可设置节点的属性