add touch

pull/9/head
tjz 2018-02-04 14:01:14 +08:00
parent d9f31c1722
commit b12ce05ab2
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