From 248075cd81b146c341fdc551452de5b56890445a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com>
Date: Mon, 21 Nov 2022 17:39:35 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20Error=E7=BB=84=E4=BB=B6=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E8=B0=83=E7=94=A8=E6=96=B9=E5=BC=8F=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/common/Error.vue | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/src/components/common/Error.vue b/src/components/common/Error.vue
index 62442682..c7cc2095 100644
--- a/src/components/common/Error.vue
+++ b/src/components/common/Error.vue
@@ -57,9 +57,10 @@
目前有三种形式,分别是default、tooltip、info
默认,即红框展示:
在标题之后显示,需要鼠标移动到图标上显示弹窗:
- 文字提示:
+ 文字提示:
-->
@@ -121,11 +122,8 @@ export default {
this.localPopoverWidth = this.width !== undefined
}
- if (this.tooltip === undefined && this.info === undefined) {
- this.showDefault = true
- } else {
- this.showDefault = false
- }
+ // 默认default模式
+ this.showDefault = this.tooltip === undefined && this.info === undefined
if (this.width) {
// 避免宽度出现负数的情况
@@ -149,7 +147,3 @@ export default {
}
}
-
-