mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 04:08:34 +08:00
Co-authored-by: KawaiiZapic <kawaiizapic@zapic.moe>
This commit is contained in:
parent
812b1b8b80
commit
d2ab3844b6
@ -8,6 +8,7 @@ import {
|
||||
hasClass,
|
||||
getStyle,
|
||||
} from '@element-plus/utils/dom'
|
||||
import isServer from '@element-plus/utils/isServer'
|
||||
|
||||
import type { Ref } from 'vue'
|
||||
|
||||
@ -23,6 +24,10 @@ export const useLockscreen = (trigger: Ref<boolean>) => {
|
||||
'You need to pass a ref param to this function'
|
||||
)
|
||||
}
|
||||
if (isServer || hasClass(document.body, 'el-popup-parent--hidden')) {
|
||||
return
|
||||
}
|
||||
|
||||
let scrollBarWidth = 0
|
||||
let withoutHiddenClass = false
|
||||
let bodyPaddingRight = '0'
|
||||
|
Loading…
Reference in New Issue
Block a user