feat(NumberKeyboard): add focused prop (#4279)

This commit is contained in:
neverland
2019-08-29 15:30:28 +08:00
committed by GitHub
parent 667c4f692c
commit 3264825f77
7 changed files with 47 additions and 1 deletions
+3
View File
@@ -4,6 +4,7 @@
<van-password-input
:value="value1"
:info="$t('info')"
:focused="keyboard === 'value1'"
@focus="keyboard = 'value1'"
/>
@@ -20,6 +21,7 @@
:value="value2"
:length="4"
gutter="15"
:focused="keyboard === 'value2'"
@focus="keyboard = 'value2'"
/>
</demo-block>
@@ -28,6 +30,7 @@
<van-password-input
:value="value3"
:mask="false"
:focused="keyboard === 'value3'"
@focus="keyboard = 'value3'"
/>
</demo-block>