mirror of
https://github.com/youzan/vant.git
synced 2025-12-21 01:07:46 +08:00
fix dialog
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template><section class="demo-popup"><h1 class="demo-title">popup</h1><example-block title="基础用法">
|
<template><section class="demo-popup"><h1 class="demo-title">popup</h1><example-block title="基础用法">
|
||||||
<zan-button block="" @click="popupShow1 = true">从中间弹出popup</zan-button>
|
<zan-button block="" @click="popupShow1 = true">从中间弹出popup</zan-button>
|
||||||
<zan-popup v-model="popupShow1" class="zan-popup-1">
|
<zan-popup v-model="popupShow1" class="zan-popup-1" :lock-on-scroll="true">
|
||||||
从中间弹出popup
|
从中间弹出popup
|
||||||
</zan-popup>
|
</zan-popup>
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export default {
|
|||||||
|
|
||||||
if (this.lockOnScroll) {
|
if (this.lockOnScroll) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (this.modal && this.bodyOverflow !== 'hidden') {
|
if (this.overlay && this.bodyOverflow !== 'hidden') {
|
||||||
document.body.style.overflow = this.bodyOverflow;
|
document.body.style.overflow = this.bodyOverflow;
|
||||||
}
|
}
|
||||||
this.bodyOverflow = null;
|
this.bodyOverflow = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user