From 71e57b93c21ec3e3371eff24d21d4208313d1e45 Mon Sep 17 00:00:00 2001 From: Theluyuan <1162963624@qq.com> Date: Wed, 28 Jun 2023 17:06:41 +0800 Subject: [PATCH] test table --- es/table/index.js | 2 +- lib/index.js | 2 +- src/component/table/index.vue | 2 +- umd/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/es/table/index.js b/es/table/index.js index 66794be..d60eb59 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.keys().length == 0) { + if (Object.keys(sxlist.value).length == 0) { return; } let list = [...props.dataSource]; diff --git a/lib/index.js b/lib/index.js index 8ad4e57..dbf489e 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.keys().length == 0) { + if (Object.keys(sxlist.value).length == 0) { return; } let list = [...props.dataSource]; diff --git a/src/component/table/index.vue b/src/component/table/index.vue index dc097f5..478d387 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.keys().length == 0) { + if (Object.keys(sxlist.value).length == 0) { return; } let list: any = [...props.dataSource]; diff --git a/umd/index.js b/umd/index.js index 40dbbb6..fd0936e 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