Skip to content

Commit

Permalink
feat: 弹窗icon优化
Browse files Browse the repository at this point in the history
  • Loading branch information
weishuodan committed Jan 4, 2024
1 parent 3921655 commit a265766
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/dialog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ Dialog.alert = ({
*/
Dialog.succeed = props => {
props.icon = 'success-color'
props.iconSvg = true
return Dialog.confirm(props)
}

Expand All @@ -185,6 +186,7 @@ Dialog.succeed = props => {
*/
Dialog.failed = props => {
props.icon = 'warn-color'
props.iconSvg = true
return Dialog.confirm(props)
}

Expand Down

0 comments on commit a265766

Please sign in to comment.