第二个弹出 运行 在第一个之后( ng prime )
the second pop up run behind the first ( ng prime )
我有一个 ng prime modal,我在其中显示我的数据,所以当我想通过单击按钮显示第二个弹出窗口来删除我的一个数据时,第二个弹出窗口出现在第一个像照片中的例子后面:
ps
enter image description here
HTML代码
<table>
<tr>
<td>
<p-button
(onClick)="confirm($event)"
icon="pi pi-trash"
label="Clear"
></p-button>
<p-confirmPopup></p-confirmPopup>
</td>
</tr>
</table>
在您的 p-confirmPopup 组件的 css 中,您应该将 z-index 设置为大于第一个组件。
我有一个 ng prime modal,我在其中显示我的数据,所以当我想通过单击按钮显示第二个弹出窗口来删除我的一个数据时,第二个弹出窗口出现在第一个像照片中的例子后面: ps enter image description here
HTML代码
<table>
<tr>
<td>
<p-button
(onClick)="confirm($event)"
icon="pi pi-trash"
label="Clear"
></p-button>
<p-confirmPopup></p-confirmPopup>
</td>
</tr>
</table>
在您的 p-confirmPopup 组件的 css 中,您应该将 z-index 设置为大于第一个组件。