diff --git a/es/table/index.js b/es/table/index.js index 0f42cdb..bf2527d 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, tableDataSource], () => { + 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 2b0024b..430f2c6 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, tableDataSource], () => { + 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 694fdd6..dc92fd4 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,tableDataSource], + ()=>[sxlist,props.dataSource], () => { // tableDataSource let list: any = [...props.dataSource]; diff --git a/umd/index.js b/umd/index.js index db17dd2..cbb0daa 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