diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue index 63cf6ee..9b39b4d 100644 --- a/src/components/modal/modal.vue +++ b/src/components/modal/modal.vue @@ -76,6 +76,10 @@ footerHide: { type: Boolean, default: false + }, + scrolling: { + type: Boolean, + default: false } }, data () { @@ -204,13 +208,22 @@ } else { if (this.timer) clearTimeout(this.timer); this.wrapShow = true; - this.addScrollEffect(); + if (!this.scrolling) { + this.addScrollEffect(); + } } }, loading (val) { if (!val) { this.buttonLoading = false; } + }, + scrolling (val) { + if (!this.scrolling) { + this.addScrollEffect(); + } else { + this.removeScrollEffect(); + } } } }; diff --git a/test/routers/more.vue b/test/routers/more.vue index 3c351b4..db17c44 100644 --- a/test/routers/more.vue +++ b/test/routers/more.vue @@ -5,21 +5,26 @@