parent
0eecaa22dc
commit
406f581ecf
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@bd/core",
|
"name": "@bd/core",
|
||||||
"version": "1.5.4",
|
"version": "1.5.5",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "百搭UI组件库的核心",
|
"description": "百搭UI组件库的核心",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|
|
@ -181,7 +181,13 @@ export class Component extends HTMLElement {
|
||||||
* @param value<String|Boolean|Number>
|
* @param value<String|Boolean|Number>
|
||||||
*/
|
*/
|
||||||
[__attr2prop__](name, value, old) {
|
[__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)
|
this[name] = fixedValue(value, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue