[improvement] Swipe: jsx (#2626)

This commit is contained in:
neverland
2019-01-26 09:43:46 +08:00
committed by GitHub
parent 4e6d0b9c79
commit fab090bef9
6 changed files with 56 additions and 50 deletions

View File

@@ -1,4 +1,5 @@
import { use } from '../utils';
import { stop } from '../utils/event';
import Key from './Key';
const [sfc, bem, t] = use('number-keyboard');
@@ -140,9 +141,7 @@ export default sfc({
v-show={this.show}
style={{ zIndex: this.zIndex }}
class={bem([theme])}
onTouchstart={event => {
event.stopPropagation();
}}
onTouchstart={stop}
onAnimationend={this.onAnimationEnd}
onWebkitAnimationEnd={this.onAnimationEnd}
>