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) }