|
3 | 3 | @Injectable() |
4 | 4 | export class MessageService { |
5 | 5 |
|
6 | | - info(message: string, title?: string): any { |
7 | | - return abp.message.info(message, title); |
| 6 | + info(message: string, title?: string, isHtml?: boolean): any { |
| 7 | + return abp.message.info(message, title, isHtml); |
8 | 8 | } |
9 | 9 |
|
10 | | - success(message: string, title?: string): any { |
11 | | - return abp.message.success(message, title); |
| 10 | + success(message: string, title?: string, isHtml?: boolean): any { |
| 11 | + return abp.message.success(message, title, isHtml); |
12 | 12 | } |
13 | 13 |
|
14 | | - warn(message: string, title?: string): any { |
15 | | - return abp.message.warn(message, title); |
| 14 | + warn(message: string, title?: string, isHtml?: boolean): any { |
| 15 | + return abp.message.warn(message, title, isHtml); |
16 | 16 | } |
17 | 17 |
|
18 | | - error(message: string, title?: string): any { |
19 | | - return abp.message.error(message, title); |
| 18 | + error(message: string, title?: string, isHtml?: boolean): any { |
| 19 | + return abp.message.error(message, title, isHtml); |
20 | 20 | } |
21 | 21 |
|
22 | 22 | confirm(message: string, callback?: (result: boolean) => void): any; |
23 | | - confirm(message: string, title?: string, callback?: (result: boolean) => void): any; |
| 23 | + confirm(message: string, title?: string, callback?: (result: boolean) => void, isHtml?: boolean): any; |
24 | 24 |
|
25 | | - confirm(message: string, titleOrCallBack?: string | ((result: boolean) => void), callback?: (result: boolean) => void): any { |
| 25 | + confirm(message: string, titleOrCallBack?: string | ((result: boolean) => void), callback?: (result: boolean) => void, isHtml?: boolean): any { |
26 | 26 | if (typeof titleOrCallBack == 'string') { |
27 | | - return abp.message.confirm(message, titleOrCallBack as string, callback); |
| 27 | + return abp.message.confirm(message, titleOrCallBack as string, callback, isHtml); |
28 | 28 | } else { |
29 | | - return abp.message.confirm(message, titleOrCallBack as ((result: boolean) => void)); |
| 29 | + return abp.message.confirm(message, titleOrCallBack as ((result: boolean) => void), isHtml); |
30 | 30 | } |
31 | 31 | } |
32 | 32 |
|
|
0 commit comments