parent
03c5255e6a
commit
5624fa43eb
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@bd/core",
|
"name": "@bd/core",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "百搭UI组件库的核心",
|
"description": "百搭UI组件库的核心",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|
|
@ -56,7 +56,7 @@ export class Component extends HTMLElement {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this[key] = value
|
this[key] = value
|
||||||
this.requestUpdate(name, oldValue)
|
this.#requestUpdate(name, oldValue)
|
||||||
},
|
},
|
||||||
enumerable: false
|
enumerable: false
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,7 @@ export class Component extends HTMLElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 请求更新
|
// 请求更新
|
||||||
requestUpdate(name, oldValue) {
|
#requestUpdate(name, oldValue) {
|
||||||
let shouldUpdate = true
|
let shouldUpdate = true
|
||||||
|
|
||||||
this[__changed_props__].set(name, this[name])
|
this[__changed_props__].set(name, this[name])
|
||||||
|
|
Loading…
Reference in New Issue