diff --git a/package.json b/package.json index 69d884f..69260a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bd/core", - "version": "1.5.4", + "version": "1.5.5", "type": "module", "description": "百搭UI组件库的核心", "main": "dist/index.js", diff --git a/src/index.js b/src/index.js index 34b5ca6..ae1a6f8 100644 --- a/src/index.js +++ b/src/index.js @@ -181,7 +181,13 @@ export class Component extends HTMLElement { * @param value */ [__attr2prop__](name, value, old) { - let options = this.#getPropOptions(name) + let _name = boolMap[name], + options + if (_name) { + name = _name + } + + options = this.#getPropOptions(name) this[name] = fixedValue(value, options) }