From 820b956871790e9dd9c69e0f9c81275b2f3a4991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Fri, 12 Aug 2022 13:55:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(component):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20table=20=E9=94=80=E6=AF=81=E6=97=B6=E6=9C=AA=E6=B3=A8?= =?UTF-8?q?=E9=94=80=20onresize=20=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/table/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index bc12613a..c7d3faca 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -15,6 +15,7 @@ import { StyleValue, WritableComputedRef, computed, + onBeforeUnmount, } from "vue"; import { v4 as uuidv4 } from "../../utils/guidUtil"; import { Recordable } from "../../types"; @@ -610,6 +611,10 @@ const renderTotalRowCell = (column: any) => { } } }; + +onBeforeUnmount(() => { + window.onresize = null; +})