From 4f1cd51e5ae35951f756d6f3d08c6949e707fd10 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: Wed, 16 Nov 2022 10:29:32 +0800
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20update?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package/component/src/component/select/index.vue | 2 +-
package/component/src/component/table/index.vue | 15 ++++++++++-----
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/package/component/src/component/select/index.vue b/package/component/src/component/select/index.vue
index be07feb5..40e7d8da 100644
--- a/package/component/src/component/select/index.vue
+++ b/package/component/src/component/select/index.vue
@@ -181,7 +181,7 @@ const handleClear = () => {
const handleHide = () => {
searchValue.value = "";
openState.value = false;
-}
+};
provide("selectRef", selectRef);
provide("openState", openState);
diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue
index c9224061..dc9c1095 100644
--- a/package/component/src/component/table/index.vue
+++ b/package/component/src/component/table/index.vue
@@ -676,11 +676,11 @@ const totalRowMethod = (column: any, dataSource: any[]) => {
};
const showToolbar = (toolbarName: string) => {
- if(props.defaultToolbar instanceof Array) {
- return props.defaultToolbar.includes(toolbarName)
+ if (props.defaultToolbar instanceof Array) {
+ return props.defaultToolbar.includes(toolbarName);
}
return props.defaultToolbar;
-}
+};
onBeforeUnmount(() => {
window.onresize = null;
@@ -696,7 +696,6 @@ onBeforeUnmount(() => {