diff --git a/es/table/index.js b/es/table/index.js index 1f5dfc7..5410ce5 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, props.dataSource], () => { + watch([sxlist, () => props.dataSource], () => { let list = [...props.dataSource]; let endlist = []; for (let i in sxlist.value) { diff --git a/lib/index.js b/lib/index.js index 8e6fd5f..3a54079 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, props.dataSource], () => { + watch([sxlist, () => props.dataSource], () => { 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 d08ae10..ca0ff42 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,props.dataSource], + [sxlist,()=>props.dataSource], () => { // tableDataSource let list: any = [...props.dataSource]; diff --git a/umd/index.js b/umd/index.js index 5f74a2c..0c48f1d 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