angular - PrimeNG ConfirmDialog 版本更改后未弹出
问题描述
版本更改为 9.1.3 后,确认对话框未居中。
如果我将confirmDialog
标签放在 HTML 页面的顶部,它会显示在顶部并移动其他组件。如果我把它放在 HTML 页面的底部,那么它就会显示在屏幕的底部。它不会弹出,而是根据标签位置显示。
HTML 代码:
<p-confirmDialog header="Confirmation" icon="pi pi-exclamation-triangle"></p-confirmDialog>
打字稿:
this.confirmationService.confirm({
message: 'Are you sure that you want to proceed?',
accept: () => {
---
--
},
reject: () => {
//alert('do not navigate to next screen');
}
});
解决方案
推荐阅读
- reactjs - 在 react-native 中链接和使用本地 UI 模块
- c - 寻找字谜
- c - 使用 Arduino IDE 为 I2C 光传感器创建回调函数
- ubuntu - 高 CPU 使用率 - 使用 VirtualBox 的 VM 非常慢
- flowtype - 类型声明中的扩展运算符在 Flow 中的作用是什么?
- python-3.x - Python print 语句返回语法错误
- python - 将 MatPlotLib 图插入 QWidget 类型
- groovy - 如何将 picocli groovy-grape 脚本转换为本机独立应用程序?
- asp.net-web-api - JWT 密码验证最佳实践建议
- python - 删除 HTML 文件中的换行符