From f9a2e6114d4085e104658243a7316d926e2c2d1f Mon Sep 17 00:00:00 2001 From: Rijn Date: Tue, 24 Jan 2017 13:36:13 -0600 Subject: [PATCH 1/3] added scrolling property to toggle CSS for creating or hiding scrollbars --- src/components/modal/modal.vue | 15 ++++++++++++++- test/routers/more.vue | 7 ++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue index 63cf6eee..9b39b4d8 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 3c351b41..db17c446 100644 --- a/test/routers/more.vue +++ b/test/routers/more.vue @@ -5,21 +5,26 @@