Skip to content

Commit

Permalink
vue2do-29: 删除冗余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0822 committed Nov 30, 2018
1 parent 0a1c9f9 commit 0d2a723
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/component/Btn/Btn.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ export default {
mousePoi: { // 点击按钮的鼠标位置
top: 0,
left: 0
},
inTouch: false // 判断是否在触摸屏
}
}
},

Expand Down Expand Up @@ -145,10 +144,6 @@ export default {
},

_handlerMouseup(event) {
if (this.inTouch) {
return false
}

if (this.stateDisabled) {
return false
}
Expand Down Expand Up @@ -204,10 +199,6 @@ export default {
emitter: this
})

if (this.inTouch) {
return false
}

if (this.allowFocus) {
this.motion = true
}
Expand Down

0 comments on commit 0d2a723

Please sign in to comment.