修复props定义

pull/1/head 1.9.5
yutent 2023-05-08 19:17:55 +08:00
parent ecd46ba23d
commit da5e5fd4a4
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@bd/core",
"version": "1.9.4",
"version": "1.9.5",
"type": "module",
"description": "百搭UI组件库的核心",
"main": "dist/index.js",

View File

@ -121,6 +121,7 @@ export class Component extends HTMLElement {
k = boolMap[attrName]
} else {
options.attrName = hyphen(k)
k = camelize(k)
}
this.createProperty(k, options)
}