Skip to content

Commit

Permalink
feat(Confirm): Confirm显示优化,文字换行后,依然可以左对齐
Browse files Browse the repository at this point in the history
  • Loading branch information
btboys committed Oct 31, 2022
1 parent 8ccbc48 commit 86734f3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/plugins/confirm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ let Default = {
};

function Confirm(params = {}) {
const { content, title, onConfirm = () => {}, onCancel = () => {} } = params;
const {
content, title, onConfirm = () => {
}, onCancel = () => {
}
} = params;
let param = {
type: prefixCls,
content: `<div><i class="h-icon-warn yellow-color" style="font-size:28px;vertical-align: -8px;"></i>&nbsp;&nbsp;${content}</div>`,
content: `<div style="display: flex"><i class="h-icon-warn yellow-color" style="font-size:28px;vertical-align: -8px;margin-right: 8px"></i><div>${content}</div></div>`,
buttons: [
{
name: locale.hlang('h.common.cancel'),
Expand Down

0 comments on commit 86734f3

Please sign in to comment.