diff --git a/es/table/index.js b/es/table/index.js index b42fd03..15de7a8 100644 --- a/es/table/index.js +++ b/es/table/index.js @@ -1486,7 +1486,7 @@ const _sfc_main = defineComponent({ console.log("sxlist\u66F4\u65B0"); }); watch([() => sxlist, () => props.dataSource], (old, new1) => { - if (sxlist.value.length == 0) { + if (sxlist.value.keys().length == 0) { return; } let list = [...props.dataSource]; diff --git a/lib/index.js b/lib/index.js index a05d6df..a68d37c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -19933,7 +19933,7 @@ const _sfc_main$D = defineComponent({ console.log("sxlist\u66F4\u65B0"); }); watch([() => sxlist, () => props.dataSource], (old, new1) => { - if (sxlist.value.length == 0) { + if (sxlist.value.keys().length == 0) { return; } let list = [...props.dataSource]; diff --git a/src/component/table/index.vue b/src/component/table/index.vue index 0dc0986..3703fa9 100644 --- a/src/component/table/index.vue +++ b/src/component/table/index.vue @@ -792,7 +792,7 @@ watch( (old, new1) => { // tableDataSource // console.log(JSON.stringify(sxlist.value),JSON.stringify(props.dataSource),old[0] == new1[0],old[1] == new1[1]) - if (sxlist.value.length == 0) { + if (sxlist.value.keys().length == 0) { return; } let list: any = [...props.dataSource]; diff --git a/umd/index.js b/umd/index.js index 4d8da92..298ff6e 100644 --- a/umd/index.js +++ b/umd/index.js @@ -90,7 +90,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho