-
-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sys-client): fix styles & add util function(show)
- Loading branch information
Showing
3 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Message, Notification } from 'element-ui' | ||
|
||
export function showSuccess(message) { | ||
Message.success(message) | ||
} | ||
|
||
export function showError(message) { | ||
Message.error(message) | ||
} | ||
|
||
export function showInfo(message) { | ||
Message.info(message) | ||
} | ||
|
||
export function showWarning(message) { | ||
Message.warning(message) | ||
} | ||
|
||
export function notifySuccess(message, title) { | ||
Notification.success({ message, title }) | ||
} | ||
|
||
export function notifyError(message, title) { | ||
Notification.error({ message, title }) | ||
} | ||
|
||
export function notifyInfo(message, title) { | ||
Notification.info({ message, title }) | ||
} | ||
|
||
export function notifyWarning(message, title) { | ||
Notification.warning({ message, title }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters