mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
[new feature] Button: add touchstart event (#3039)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user