修复attribute不生效的bug
parent
aa62c3f5b6
commit
8c3ff7d6ce
|
@ -141,6 +141,10 @@ export class Component extends HTMLElement {
|
||||||
[__prop2attr__](name, value) {
|
[__prop2attr__](name, value) {
|
||||||
let options = this.#getPropOptions(name)
|
let options = this.#getPropOptions(name)
|
||||||
|
|
||||||
|
if (options.attribute === false) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
switch (options.type) {
|
switch (options.type) {
|
||||||
case Number:
|
case Number:
|
||||||
case String:
|
case String:
|
||||||
|
|
Loading…
Reference in New Issue