From 98d3c87bac6a7b534ca0cd512db4ace40efe2eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Sun, 12 Mar 2023 23:42:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91sTable?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dalert=E7=9A=84=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/components/Table/index.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/snowy-admin-web/src/components/Table/index.vue b/snowy-admin-web/src/components/Table/index.vue index 908bba0a..d54e9443 100644 --- a/snowy-admin-web/src/components/Table/index.vue +++ b/snowy-admin-web/src/components/Table/index.vue @@ -346,16 +346,14 @@ ) }) - // 绘制 清空 按钮 // eslint-disable-next-line no-unused-vars const clearItem = - typeof this.alert.clear === 'boolean' && this.alert.clear + typeof this.alert === 'boolean' && this.alert ? this.renderClear(this.clearSelected) : typeof this.alert.clear === 'function' ? this.renderClear(this.alert.clear) : null - // 绘制 alert 组件 if (alert) { const message = ( @@ -367,7 +365,6 @@ {clearItem} ) - return } },