修复属性绑定
parent
0043895a66
commit
afac6fddb2
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "wkit",
|
"name": "wkit",
|
||||||
"version": "1.10.13",
|
"version": "1.10.14",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "A library for building fast, lightweight web components.",
|
"description": "A library for building fast, lightweight web components.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|
|
@ -481,7 +481,7 @@ class AttributePart {
|
||||||
this.$parent = parent
|
this.$parent = parent
|
||||||
this.options = options
|
this.options = options
|
||||||
if (strings.length > 2 || strings[0] !== '' || strings[1] !== '') {
|
if (strings.length > 2 || strings[0] !== '' || strings[1] !== '') {
|
||||||
this._$committedValue = new Array(strings.length - 1).fill('')
|
this._$committedValue = Array(strings.length - 1).fill(null)
|
||||||
this.strings = strings
|
this.strings = strings
|
||||||
} else {
|
} else {
|
||||||
this._$committedValue = NOTHING
|
this._$committedValue = NOTHING
|
||||||
|
|
Loading…
Reference in New Issue