From 8f0cb42c5f8b6bcbfe977e9d2be011a8ec396621 Mon Sep 17 00:00:00 2001 From: Theluyuan <1162963624@qq.com> Date: Mon, 16 Jan 2023 10:01:19 +0800 Subject: [PATCH] table watch --- es/table/index.js | 2 ++ lib/index.js | 2 ++ src/component/table/index.vue | 2 ++ umd/index.js | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/es/table/index.js b/es/table/index.js index cd94edd..6cd1db6 100644 --- a/es/table/index.js +++ b/es/table/index.js @@ -1002,6 +1002,8 @@ const _sfc_main = defineComponent({ console.log("\u6570\u636E\u53D8\u5316", scrollWidthCell.value); getScrollWidth(); }); + }, { + deep: true }); onMounted(() => { var _a, _b; diff --git a/lib/index.js b/lib/index.js index 3b4d682..958db1f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -19420,6 +19420,8 @@ const _sfc_main$D = defineComponent({ console.log("\u6570\u636E\u53D8\u5316", scrollWidthCell.value); getScrollWidth(); }); + }, { + deep: true }); onMounted(() => { var _a2, _b; diff --git a/src/component/table/index.vue b/src/component/table/index.vue index 9454a3e..fc28ec1 100644 --- a/src/component/table/index.vue +++ b/src/component/table/index.vue @@ -456,6 +456,8 @@ watch( console.log("数据变化",scrollWidthCell.value) getScrollWidth(); }); + },{ + deep:true } ); diff --git a/umd/index.js b/umd/index.js index 6c80df6..18a770e 100644 --- a/umd/index.js +++ b/umd/index.js @@ -88,7 +88,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho