From 5ab76e40b64f94d5f19c083d0fa9ad8f7341b0d2 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Tue, 15 Jan 2019 20:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E6=9C=89=E4=BA=9B=E9=83=A8=E5=88=86=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 8e5f8771f72201a004394e1023aa32db505e99f5 [formerly 8e5f8771f72201a004394e1023aa32db505e99f5 [formerly 8e5f8771f72201a004394e1023aa32db505e99f5 [formerly 8e5f8771f72201a004394e1023aa32db505e99f5 [formerly 82f392f3dcfd6330d93166753d315281f2c1ab22 [formerly 40f46e5f03c81cea2c7318b63a13c8bb7437e313]]]]] Former-commit-id: 5e32dca8505362087b0d5da989a0477921094717 Former-commit-id: e35dd9f7641400071df1d8825b783ed829beaff5 Former-commit-id: 9de2cdc0677db206b7abb487b9593fb9ff5dd2ea [formerly 864bfbcb3c25bcddae4ed4df9e769e8faed3dce9] Former-commit-id: 72680620cbfc6780e2f8fee25ebb07d127bcd519 Former-commit-id: 9cf0ad163189304fbc62478969e0a4d700457f4e Former-commit-id: ac479e2d905ff534a5e3e2f484089bf2cb2f37a1 Former-commit-id: f866071615cfe13b277d629a284ce278b03275df Former-commit-id: 5c752efe5623fdbf791f96adc2a90ba46590a83b --- src/components/d2-container/components/mixins/bs.js | 1 + src/layout/header-aside/components/menu-side/index.vue | 3 ++- src/pages/demo/plugins/better-scroll/base.vue | 1 + src/pages/demo/plugins/better-scroll/to.vue | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/d2-container/components/mixins/bs.js b/src/components/d2-container/components/mixins/bs.js index 51c449132..bece609b9 100644 --- a/src/components/d2-container/components/mixins/bs.js +++ b/src/components/d2-container/components/mixins/bs.js @@ -24,6 +24,7 @@ export default { // 初始化 bs this.BS = new BScroll(this.$refs.wrapper, Object.assign({ mouseWheel: true, + click: true, scrollbar: { fade: true, interactive: false diff --git a/src/layout/header-aside/components/menu-side/index.vue b/src/layout/header-aside/components/menu-side/index.vue index f451f1c3f..6d3da5fe1 100644 --- a/src/layout/header-aside/components/menu-side/index.vue +++ b/src/layout/header-aside/components/menu-side/index.vue @@ -76,7 +76,8 @@ export default { methods: { scrollInit () { this.BS = new BScroll(this.$el, { - mouseWheel: true + mouseWheel: true, + click: true // 如果你愿意可以打开显示滚动条 // scrollbar: { // fade: true, diff --git a/src/pages/demo/plugins/better-scroll/base.vue b/src/pages/demo/plugins/better-scroll/base.vue index 861b05cf7..deb899a1f 100644 --- a/src/pages/demo/plugins/better-scroll/base.vue +++ b/src/pages/demo/plugins/better-scroll/base.vue @@ -28,6 +28,7 @@ export default { scrollInit () { this.BS = new BScroll(this.$refs.wrapper, { mouseWheel: true, + click: true, scrollbar: { fade: true, interactive: false diff --git a/src/pages/demo/plugins/better-scroll/to.vue b/src/pages/demo/plugins/better-scroll/to.vue index f7a2358f6..d934307d3 100644 --- a/src/pages/demo/plugins/better-scroll/to.vue +++ b/src/pages/demo/plugins/better-scroll/to.vue @@ -72,6 +72,7 @@ export default { scrollInit () { this.BS = new BScroll(this.$refs.wrapper, { mouseWheel: true, + click: true, scrollbar: { fade: true, interactive: false