encapsulate the button and dialog into a component, and with the introduction of import, you will find that the open pop-up mask layer is always at the top, but the level is not the highest, and the level of the pop-up box is higher than that of the mask layer.
this problem will not occur if you use a normal form