From 5624fa43eb66c4c0eded8d1e661e70f76383b69d Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 13 Mar 2023 18:50:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9B=B4=E6=96=B0=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= 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, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1431d91..7126589 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bd/core", - "version": "1.0.1", + "version": "1.0.2", "type": "module", "description": "百搭UI组件库的核心", "main": "dist/index.js", diff --git a/src/index.js b/src/index.js index d03a891..1f7092e 100644 --- a/src/index.js +++ b/src/index.js @@ -56,7 +56,7 @@ export class Component extends HTMLElement { return } this[key] = value - this.requestUpdate(name, oldValue) + this.#requestUpdate(name, oldValue) }, enumerable: false } @@ -177,7 +177,7 @@ export class Component extends HTMLElement { } // 请求更新 - requestUpdate(name, oldValue) { + #requestUpdate(name, oldValue) { let shouldUpdate = true this[__changed_props__].set(name, this[name])