Skip to content

Commit

Permalink
修复在移动端有些部分无法点击的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
FairyEver committed Jan 15, 2019
1 parent b16ae22 commit 0c8d38d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/d2-container/components/mixins/bs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/layout/header-aside/components/menu-side/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export default {
methods: {
scrollInit () {
this.BS = new BScroll(this.$el, {
mouseWheel: true
mouseWheel: true,
click: true
// 如果你愿意可以打开显示滚动条
// scrollbar: {
// fade: true,
Expand Down
1 change: 1 addition & 0 deletions src/pages/demo/plugins/better-scroll/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default {
scrollInit () {
this.BS = new BScroll(this.$refs.wrapper, {
mouseWheel: true,
click: true,
scrollbar: {
fade: true,
interactive: false
Expand Down
1 change: 1 addition & 0 deletions src/pages/demo/plugins/better-scroll/to.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default {
scrollInit () {
this.BS = new BScroll(this.$refs.wrapper, {
mouseWheel: true,
click: true,
scrollbar: {
fade: true,
interactive: false
Expand Down

0 comments on commit 0c8d38d

Please sign in to comment.