fix(Popup): lockScroll not work #7738

This commit is contained in:
chenjiahan
2020-12-27 21:13:07 +08:00
parent 82acfb2f6e
commit c114a0ef47
6 changed files with 78 additions and 18 deletions
+4 -1
View File
@@ -112,7 +112,10 @@ export default createComponent({
const zIndex = ref();
const popupRef = ref();
const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
const [lockScroll, unlockScroll] = useLockScroll(
popupRef,
() => props.lockScroll
);
const lazyRender = useLazyRender(() => props.show || !props.lazyRender);