继承
无
用法
this.messagerService.alert({
title: 'Error',
icon: 'error',
msg: 'Here is an error message!'
});
this.messagerService.confirm({
title: 'Confirm',
msg: 'Are you confirm this?',
result: (r) => {
if (r){
alert('confirmed: '+r);
}
}
});
方法
名称 | 参数 | 返回值 | 描述 |
---|---|---|---|
alert | options:any | void | 显示警告对话框。 |
confirm | options:any | void | 显示确认对话框。 |
prompt | options:any | void | 显示提示对话框。 |