From 0a70cb1b2e4f828a8185acdd5fe0ed69ff800376 Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 15 Aug 2023 14:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81wkitd=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E5=BC=8F=E7=8A=B6=E6=80=81=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/index.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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规范, 在构造函数内不可设置节点的属性