maliming 2019-10-09 15:59:30 +08:00
Родитель d30ae5335e
Коммит 3006fc5d7f
1 изменённых файлов: 10 добавлений и 17 удалений

Просмотреть файл

@ -3,31 +3,24 @@
@Injectable() @Injectable()
export class MessageService { export class MessageService {
info(message: string, title?: string, isHtml?: boolean): any { info(message: string, title?: string, options?: any): any {
return abp.message.info(message, title, isHtml); return abp.message.info(message, title, options);
} }
success(message: string, title?: string, isHtml?: boolean): any { success(message: string, title?: string, options?: any): any {
return abp.message.success(message, title, isHtml); return abp.message.success(message, title, options);
} }
warn(message: string, title?: string, isHtml?: boolean): any { warn(message: string, title?: string, options?: any): any {
return abp.message.warn(message, title, isHtml); return abp.message.warn(message, title, options);
} }
error(message: string, title?: string, isHtml?: boolean): any { error(message: string, title?: string, options?: any): any {
return abp.message.error(message, title, isHtml); return abp.message.error(message, title, options);
} }
confirm(message: string, callback?: (result: boolean) => void): any; confirm(message: string, title?: string, callback?: (result: boolean) => void, options?: any): any {
confirm(message: string, title?: string, callback?: (result: boolean) => void, isHtml?: boolean): any; return abp.message.confirm(message, title, callback, options);
confirm(message: string, titleOrCallBack?: string | ((result: boolean) => void), callback?: (result: boolean) => void, isHtml?: boolean): any {
if (typeof titleOrCallBack == 'string') {
return abp.message.confirm(message, titleOrCallBack as string, callback, isHtml);
} else {
return abp.message.confirm(message, undefined, titleOrCallBack as ((result: boolean) => void), isHtml);
}
} }
} }