From e522bb54ce2ade80da51ba7d49111694cbc4ed76 Mon Sep 17 00:00:00 2001 From: Theluyuan <1162963624@qq.com> Date: Wed, 28 Jun 2023 16:45:49 +0800 Subject: [PATCH] test table --- es/table/index.js | 4 ++-- lib/index.js | 4 ++-- src/component/table/index.vue | 4 ++-- umd/index.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/es/table/index.js b/es/table/index.js index ed77a61..c548a40 100644 --- a/es/table/index.js +++ b/es/table/index.js @@ -1479,13 +1479,13 @@ const _sfc_main = defineComponent({ sortTable(event, selcolumn.value.key, "desc", true); } function sx(e) { - console.log("\u7B5B\u9009\u4E8B\u4EF6"); + console.log("\u7B5B\u9009\u4E8B\u4EF6", e); sxlist.value[e.key] = e.list; } watch(sxlist, () => { console.log("sxlist\u66F4\u65B0"); }); - watch([sxlist, () => props.dataSource], (old, new1) => { + watch([() => sxlist, () => props.dataSource], (old, new1) => { if (sxlist.value.length == 0) { return; } diff --git a/lib/index.js b/lib/index.js index fe6fec6..ac82ea7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -19926,13 +19926,13 @@ const _sfc_main$D = defineComponent({ sortTable(event, selcolumn.value.key, "desc", true); } function sx(e) { - console.log("\u7B5B\u9009\u4E8B\u4EF6"); + console.log("\u7B5B\u9009\u4E8B\u4EF6", e); sxlist.value[e.key] = e.list; } watch(sxlist, () => { console.log("sxlist\u66F4\u65B0"); }); - watch([sxlist, () => props.dataSource], (old, new1) => { + watch([() => sxlist, () => props.dataSource], (old, new1) => { if (sxlist.value.length == 0) { return; } diff --git a/src/component/table/index.vue b/src/component/table/index.vue index 7c385c8..6388a5a 100644 --- a/src/component/table/index.vue +++ b/src/component/table/index.vue @@ -781,14 +781,14 @@ function desc(event: any) { } function sx(e: any) { - console.log("筛选事件") + console.log("筛选事件",e) sxlist.value[e.key] = e.list; } watch(sxlist, () => { console.log("sxlist更新"); }); watch( - [sxlist, () => props.dataSource], + [()=>sxlist, () => props.dataSource], (old, new1) => { // tableDataSource // console.log(JSON.stringify(sxlist.value),JSON.stringify(props.dataSource),old[0] == new1[0],old[1] == new1[1]) diff --git a/umd/index.js b/umd/index.js index 47d8a35..395c989 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