暂存
This commit is contained in:
@@ -256,19 +256,19 @@ export class Message {
|
||||
remove();
|
||||
};
|
||||
};
|
||||
success = (message, timeout = 1000, onClose) => {
|
||||
success = (message, timeout = 1000, onClose = () => {}) => {
|
||||
return this.open(message, timeout, onClose, { type: 'success' });
|
||||
};
|
||||
info = (message, timeout = 1500, onClose) => {
|
||||
info = (message, timeout = 1500, onClose = () => {}) => {
|
||||
return this.open(message, timeout, onClose, { type: 'info' });
|
||||
};
|
||||
warning = (message, timeout = 3000, onClose) => {
|
||||
warning = (message, timeout = 3000, onClose = () => {}) => {
|
||||
return this.open(message, timeout, onClose, { type: 'warning' });
|
||||
};
|
||||
error = (message, timeout = 3000, onClose) => {
|
||||
error = (message, timeout = 3000, onClose = () => {}) => {
|
||||
return this.open(message, timeout, onClose, { type: 'error' });
|
||||
};
|
||||
loading = (message, timeout = 0, onClose) => {
|
||||
loading = (message, timeout = 0, onClose = () => {}) => {
|
||||
return this.open(message, timeout, onClose, { type: 'loading' });
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user