add touch

pull/165/head
tjz 2018-02-04 14:01:14 +08:00
parent e8337c5d5f
commit 5fc268983d
1 changed files with 2 additions and 2 deletions

View File

@ -518,11 +518,11 @@ export default {
if (this.isClickToHide() || this.isClickToShow()) {
newChildProps.on.click = this.onClick
newChildProps.on.mousedown = this.onMousedown
// newChildProps.on.touchstart = this.onTouchstart
newChildProps.on.touchstart = this.onTouchstart
} else {
newChildProps.on.click = this.createTwoChains('click')
newChildProps.on.mousedown = this.createTwoChains('mousedown')
// newChildProps.on.touchstart = this.createTwoChains('onTouchstart')
newChildProps.on.touchstart = this.createTwoChains('onTouchstart')
}
if (this.isMouseEnterToShow()) {
newChildProps.on.mouseenter = this.onMouseenter