|
|
|
@ -79,6 +79,12 @@ export class ModalManage
|
|
|
|
|
//捕获蒙版的事件
|
|
|
|
|
this.m_Masking.addEventListener('keydown', e => e.stopPropagation());
|
|
|
|
|
this.m_Masking.addEventListener('click', e => e.stopPropagation());
|
|
|
|
|
//如果模态框,焦点保持在模态框上
|
|
|
|
|
this.m_Masking.addEventListener('focus', () =>
|
|
|
|
|
{
|
|
|
|
|
if (this.m_IsModal)
|
|
|
|
|
this.m_ModalContainer.focus();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
OnKeyDown(e: KeyboardEvent)
|
|
|
|
|
{
|
|
|
|
@ -118,7 +124,7 @@ export class ModalManage
|
|
|
|
|
{
|
|
|
|
|
this.RenderModeless(Component, pos, props);
|
|
|
|
|
this.m_IsModal = true;
|
|
|
|
|
this.m_Masking.style.zIndex = "2";
|
|
|
|
|
this.m_Masking.style.zIndex = "25";
|
|
|
|
|
}
|
|
|
|
|
async ExecCmd()
|
|
|
|
|
{
|
|
|
|
|