fix: portalWrapper add autoLock prop (#6687), close #6649

pull/6660/head
Cherry7 1 year ago committed by GitHub
parent 7fd0e4a225
commit e9d26f2a7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,12 +61,15 @@ export const genModalMaskStyle: GenerateStyle<TokenWithCommonCls<AliasToken>> =
userSelect: 'none',
},
[`${componentCls}${token.antCls}-zoom-leave ${componentCls}-content`]: {
pointerEvents: 'none',
},
[`${componentCls}-mask`]: {
...box('fixed'),
zIndex: token.zIndexPopupBase,
height: '100%',
backgroundColor: token.colorBgMask,
[`${componentCls}-hidden`]: {
display: 'none',
},

@ -50,6 +50,7 @@ const DialogWrap = defineComponent({
}
return (
<Portal
autoLock
visible={visible}
forceRender={forceRender}
getContainer={getContainer}

@ -66,6 +66,7 @@ const DrawerWrapper = defineComponent({
if ($forceRender || props.open || dom.value) {
portal = (
<PortalWrapper
autoLock
visible={props.open}
forceRender={$forceRender}
getContainer={getContainer}

Loading…
Cancel
Save