From e599f0e50e34e823ae2a5183c2a4a2789690487c Mon Sep 17 00:00:00 2001 From: Theluyuan <1162963624@qq.com> Date: Sun, 25 Jun 2023 13:25:45 +0800 Subject: [PATCH] test --- es/table/index.js | 2 +- lib/index.js | 2 +- src/component/table/index.vue | 2 +- src/component/table/soultable.vue | 1 + umd/index.js | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/es/table/index.js b/es/table/index.js index 40d2691..0f42cdb 100644 --- a/es/table/index.js +++ b/es/table/index.js @@ -1482,7 +1482,7 @@ const _sfc_main = defineComponent({ function sx(e) { sxlist.value[e.key] = e.list; } - watch(sxlist, () => { + watch(() => [sxlist, tableDataSource], () => { let list = [...props.dataSource]; let endlist = []; for (let i in sxlist.value) { diff --git a/lib/index.js b/lib/index.js index 325a086..2b0024b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -19929,7 +19929,7 @@ const _sfc_main$D = defineComponent({ function sx(e) { sxlist.value[e.key] = e.list; } - watch(sxlist, () => { + watch(() => [sxlist, tableDataSource], () => { let list = [...props.dataSource]; let endlist = []; for (let i in sxlist.value) { diff --git a/src/component/table/index.vue b/src/component/table/index.vue index 6ec3381..694fdd6 100644 --- a/src/component/table/index.vue +++ b/src/component/table/index.vue @@ -788,7 +788,7 @@ function sx(e: any) { sxlist.value[e.key] = e.list; } watch( - sxlist, + ()=>[sxlist,tableDataSource], () => { // tableDataSource let list: any = [...props.dataSource]; diff --git a/src/component/table/soultable.vue b/src/component/table/soultable.vue index 4cf4a33..9d332cb 100644 --- a/src/component/table/soultable.vue +++ b/src/component/table/soultable.vue @@ -169,4 +169,5 @@ function shubiao(event: any) { selshow.value = false; } } + diff --git a/umd/index.js b/umd/index.js index 7c8bd1c..db17dd2 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