diff --git a/src/html.js b/src/html.js index d852695..84e2e8d 100644 --- a/src/html.js +++ b/src/html.js @@ -559,11 +559,11 @@ class AttributePart { } } if (change && !noCommit) { - this.#commitValue(value) + this.commitValue(value) } } - #commitValue(value) { + commitValue(value) { let isBoolAttr = boolMap[this.name] // ref属性不渲染到节点上 if (this.name === 'ref') { @@ -594,7 +594,7 @@ class PropertyPart extends AttributePart { super(...args) } - #commitValue(value) { + commitValue(value) { this.element[this.name] = value } }