(message, options = {})
| 24 | |
| 25 | export default class Message { |
| 26 | static success(message, options = {}) { |
| 27 | ElNotification( |
| 28 | { |
| 29 | |
| 30 | title: options.title ? options.title : message, |
| 31 | showClose: true, |
| 32 | message: options.title ? message : null, |
| 33 | customClass: 'success', |
| 34 | icon: successIcon, |
| 35 | duration: 6000, |
| 36 | dangerouslyUseHTMLString: true, |
| 37 | position: 'bottom-right', |
| 38 | offset: 24, |
| 39 | ...options, |
| 40 | }, |
| 41 | ); |
| 42 | } |
| 43 | |
| 44 | static error(payload, options = {}) { |
| 45 | let message = payload; |
no outgoing calls
no test coverage detected