Skip to content

Commit

Permalink
Merge pull request #38 from zen0822/vue2do-29
Browse files Browse the repository at this point in the history
vue2do-29: 删除冗余代码
  • Loading branch information
zen0822 committed Mar 11, 2019
2 parents cbfd18d + ba80d49 commit 0713846
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 @@ -108,8 +108,7 @@ export default {
mousePoi: { // 点击按钮的鼠标位置
top: 0,
left: 0
},
inTouch: false // 判断是否在触摸屏
}
}
},

Expand Down Expand Up @@ -148,10 +147,6 @@ export default {
},

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

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

if (this.inTouch) {
return false
}

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

0 comments on commit 0713846

Please sign in to comment.