diff --git a/docs/examples-docs/panel.md b/docs/examples-docs/panel.md index 12bae1f50..850fc28b7 100644 --- a/docs/examples-docs/panel.md +++ b/docs/examples-docs/panel.md @@ -79,7 +79,7 @@ export default { #### 高级用法 -使用具名`slot`自定义内容。 +使用`slot`自定义内容。比如在自定义内容中放入一个`zan-card`。 :::demo 高级用法 ```html diff --git a/docs/examples-docs/swipe.md b/docs/examples-docs/swipe.md index 47f125708..00bc495af 100644 --- a/docs/examples-docs/swipe.md +++ b/docs/examples-docs/swipe.md @@ -80,6 +80,19 @@ export default { + + ``` ::: @@ -94,6 +107,25 @@ export default { + + ``` ::: diff --git a/src/mixins/popup/index.js b/src/mixins/popup/index.js index acb441b97..a41a22392 100644 --- a/src/mixins/popup/index.js +++ b/src/mixins/popup/index.js @@ -118,7 +118,7 @@ export default { this.bodyOverflow = document.body.style.overflow; } - document.body.style.overlay = 'hidden'; + document.body.style.overflow = 'hidden'; } } @@ -139,7 +139,7 @@ export default { if (this.lockOnScroll) { setTimeout(() => { - if (this.modal && this.bodyOverflow !== 'hidden') { + if (this.overlay && this.bodyOverflow !== 'hidden') { document.body.style.overflow = this.bodyOverflow; } this.bodyOverflow = null;