Skip to content

Commit 3145362

Browse files
committed
improve s-alert
1 parent db1f8e7 commit 3145362

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Const.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const CONST_VAR = {
5555
REMOTE_FILTER: 'filter',
5656
REMOTE_SEARCH: 'search',
5757
REMOTE_EXPORT_CSV: 'exportCSV',
58-
INSERT_FAIL_INDICATOR: 'Form validate errors, please checking!'
58+
INSERT_FAIL_INDICATOR: 'Validation errors, please check!'
5959
};
6060

6161
CONST_VAR.REMOTE = {};

src/Notification.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ const notice = (type, msg, title) => {
55

66
const bodyHTML = `
77
${ titleHTML }
8-
<span>${ msg }</span>
8+
<div>
9+
<span class=' glyphicon glyphicon-alert'></span>&nbsp;
10+
<span>${ msg }</span>
11+
</div>
912
`;
1013

1114
Alert.error(bodyHTML, {
1215
position: 'top-right',
13-
timeout: 3500,
14-
html: true
16+
timeout: 3000,
17+
html: true,
18+
effect: 'scale'
1519
});
1620
};
1721

0 commit comments

Comments
 (0)