feat: migrate NumberKeyboard component

This commit is contained in:
chenjiahan
2020-08-15 07:59:04 +08:00
parent bfe2e9843b
commit a70d1187fb
7 changed files with 71 additions and 63 deletions
+7 -7
View File
@@ -1,27 +1,27 @@
<template>
<demo-section>
<van-cell is-link @touchstart.native.stop="keyboard = 'default'">
<van-cell is-link @touchstart.stop="keyboard = 'default'">
{{ t('button1') }}
</van-cell>
<van-cell is-link @touchstart.native.stop="keyboard = 'custom'">
<van-cell is-link @touchstart.stop="keyboard = 'custom'">
{{ t('button2') }}
</van-cell>
<van-cell is-link @touchstart.native.stop="keyboard = 'extraKey'">
<van-cell is-link @touchstart.stop="keyboard = 'extraKey'">
{{ t('button3') }}
</van-cell>
<van-cell is-link @touchstart.native.stop="keyboard = 'title'">
<van-cell is-link @touchstart.stop="keyboard = 'title'">
{{ t('button4') }}
</van-cell>
<van-cell is-link @touchstart.native.stop="keyboard = 'multiExtraKey'">
<van-cell is-link @touchstart.stop="keyboard = 'multiExtraKey'">
{{ t('button5') }}
</van-cell>
<van-field
readonly
clickable
:value="value"
:label="t('bindValue')"
:model-value="value"
:placeholder="t('clickToInput')"
@touchstart.native.stop="keyboard = 'bindValue'"
@touchstart.stop="keyboard = 'bindValue'"
/>
<van-number-keyboard