[new feature] Button: add touchstart event (#3039)

This commit is contained in:
neverland
2019-03-22 14:41:01 +08:00
committed by GitHub
parent 2a4c2d86e9
commit 5a44d204bd
7 changed files with 46 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
<template>
<demo-section>
<demo-block :title="$t('default')">
<van-button @touchstart.native.stop="keyboard = 'default'">
<van-button @touchstart.stop="keyboard = 'default'">
{{ $t('button1') }}
</van-button>
@@ -16,7 +16,7 @@
</demo-block>
<demo-block :title="$t('custom')">
<van-button @touchstart.native.stop="keyboard = 'custom'">
<van-button @touchstart.stop="keyboard = 'custom'">
{{ $t('button2') }}
</van-button>