From ec691e5ae785a5c4d8ef895ec1f586163a5ab54d Mon Sep 17 00:00:00 2001 From: weishuodan Date: Mon, 8 Jan 2024 17:03:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=BD=A6=E7=89=8C=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dialog/index.js | 8 +++----- components/icon/index.vue | 9 +-------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/components/dialog/index.js b/components/dialog/index.js index f0769bcb..2fd96bc2 100644 --- a/components/dialog/index.js +++ b/components/dialog/index.js @@ -17,7 +17,7 @@ const instances = [] const generate = function({ title = '', icon = '', - iconSvg = false, + iconSvg = true, content = '', closable = false, transition = 'md-bounce', @@ -75,7 +75,7 @@ const generate = function({ Dialog.confirm = ({ title = '', icon = '', - iconSvg = false, + iconSvg = true, content = '', cancelText = t('md.dialog.cancel'), cancelWarning = false, @@ -131,7 +131,7 @@ Dialog.confirm = ({ Dialog.alert = ({ title = '', icon = '', - iconSvg = false, + iconSvg = true, content = '', confirmText = t('md.dialog.confirm'), closable = false, @@ -174,7 +174,6 @@ Dialog.alert = ({ */ Dialog.succeed = props => { props.icon = 'success-color' - props.iconSvg = true return Dialog.confirm(props) } @@ -186,7 +185,6 @@ Dialog.succeed = props => { */ Dialog.failed = props => { props.icon = 'warn-color' - props.iconSvg = true return Dialog.confirm(props) } diff --git a/components/icon/index.vue b/components/icon/index.vue index db45fa83..79975059 100644 --- a/components/icon/index.vue +++ b/components/icon/index.vue @@ -1,6 +1,6 @@