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

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

@ -3,31 +3,24 @@
@Injectable()
export class MessageService {
info(message: string, title?: string, isHtml?: boolean): any {
return abp.message.info(message, title, isHtml);
info(message: string, title?: string, options?: any): any {
return abp.message.info(message, title, options);
}
success(message: string, title?: string, isHtml?: boolean): any {
return abp.message.success(message, title, isHtml);
success(message: string, title?: string, options?: any): any {
return abp.message.success(message, title, options);
}
warn(message: string, title?: string, isHtml?: boolean): any {
return abp.message.warn(message, title, isHtml);
warn(message: string, title?: string, options?: any): any {
return abp.message.warn(message, title, options);
}
error(message: string, title?: string, isHtml?: boolean): any {
return abp.message.error(message, title, isHtml);
error(message: string, title?: string, options?: any): any {
return abp.message.error(message, title, options);
}
confirm(message: string, callback?: (result: boolean) => void): any;
confirm(message: string, title?: string, callback?: (result: boolean) => void, isHtml?: boolean): any;
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);
}
confirm(message: string, title?: string, callback?: (result: boolean) => void, options?: any): any {
return abp.message.confirm(message, title, callback, options);
}
}