From da5e5fd4a4fac787db19c714c49914334a494883 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 8 May 2023 19:17:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dprops=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a56c6f0..7454516 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bd/core", - "version": "1.9.4", + "version": "1.9.5", "type": "module", "description": "百搭UI组件库的核心", "main": "dist/index.js", diff --git a/src/index.js b/src/index.js index 6b46ca4..b7c034a 100644 --- a/src/index.js +++ b/src/index.js @@ -121,6 +121,7 @@ export class Component extends HTMLElement { k = boolMap[attrName] } else { options.attrName = hyphen(k) + k = camelize(k) } this.createProperty(k, options) }