From d1df623a4caf358806c9418352ba52bc17276203 Mon Sep 17 00:00:00 2001 From: Theluyuan <1162963624@qq.com> Date: Sun, 25 Jun 2023 13:44:41 +0800 Subject: [PATCH] test --- es/table/index.js | 4 +++- lib/index.js | 4 +++- src/component/table/index.vue | 4 +++- umd/index.js | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/es/table/index.js b/es/table/index.js index 1bfe0be..1f5dfc7 100644 --- a/es/table/index.js +++ b/es/table/index.js @@ -1500,7 +1500,9 @@ const _sfc_main = defineComponent({ } } if (!props.page || props.serverpage) { - datalist.value = endlist; + nextTick(() => { + datalist.value = endlist; + }); } else { tableDataSource.value = endlist; change({ diff --git a/lib/index.js b/lib/index.js index 02e4290..8e6fd5f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -19947,7 +19947,9 @@ const _sfc_main$D = defineComponent({ } } if (!props.page || props.serverpage) { - datalist.value = endlist; + nextTick(() => { + datalist.value = endlist; + }); } else { tableDataSource.value = endlist; change3({ diff --git a/src/component/table/index.vue b/src/component/table/index.vue index be1d7ad..d08ae10 100644 --- a/src/component/table/index.vue +++ b/src/component/table/index.vue @@ -808,7 +808,9 @@ watch( } } if (!props.page || props.serverpage) { - datalist.value = endlist; + nextTick(()=>{ + datalist.value = endlist; + }) } else { tableDataSource.value = endlist; change({ diff --git a/umd/index.js b/umd/index.js index 2ab91f2..5f74a2c 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