chore(Picker): deprecatation warning of valueKey (#8994)

This commit is contained in:
neverland
2021-07-08 10:16:05 +08:00
committed by GitHub
parent 44f4ba89e1
commit 76c0b08bde
4 changed files with 70 additions and 42 deletions
+30 -18
View File
@@ -1,23 +1,35 @@
<template>
<demo-block card>
<van-cell is-link @touchstart.stop="keyboard = 'default'">
{{ t('button1') }}
</van-cell>
<van-cell is-link @touchstart.stop="keyboard = 'custom'">
{{ t('button2') }}
</van-cell>
<van-cell is-link @touchstart.stop="keyboard = 'extraKey'">
{{ t('button3') }}
</van-cell>
<van-cell is-link @touchstart.stop="keyboard = 'title'">
{{ t('button4') }}
</van-cell>
<van-cell is-link @touchstart.stop="keyboard = 'multiExtraKey'">
{{ t('button5') }}
</van-cell>
<van-cell is-link @touchstart.stop="keyboard = 'randomKeyOrder'">
{{ t('button6') }}
</van-cell>
<van-cell
is-link
:title="t('button1')"
@touchstart.stop="keyboard = 'default'"
/>
<van-cell
is-link
:title="t('button2')"
@touchstart.stop="keyboard = 'custom'"
/>
<van-cell
is-link
:title="t('button3')"
@touchstart.stop="keyboard = 'extraKey'"
/>
<van-cell
is-link
:title="t('button4')"
@touchstart.stop="keyboard = 'title'"
/>
<van-cell
is-link
:title="t('button5')"
@touchstart.stop="keyboard = 'multiExtraKey'"
/>
<van-cell
is-link
:title="t('button6')"
@touchstart.stop="keyboard = 'randomKeyOrder'"
/>
<van-field
v-model="value"
readonly
@@ -6,8 +6,10 @@ exports[`should render demo and match snapshot 1`] = `
role="button"
tabindex="0"
>
<div class="van-cell__value van-cell__value--alone">
Show Default Keyboard
<div class="van-cell__title">
<span>
Show Default Keyboard
</span>
</div>
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
</i>
@@ -16,8 +18,10 @@ exports[`should render demo and match snapshot 1`] = `
role="button"
tabindex="0"
>
<div class="van-cell__value van-cell__value--alone">
Show Keyboard With Sidebar
<div class="van-cell__title">
<span>
Show Keyboard With Sidebar
</span>
</div>
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
</i>
@@ -26,8 +30,10 @@ exports[`should render demo and match snapshot 1`] = `
role="button"
tabindex="0"
>
<div class="van-cell__value van-cell__value--alone">
Show IdNumber Keyboard
<div class="van-cell__title">
<span>
Show IdNumber Keyboard
</span>
</div>
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
</i>
@@ -36,8 +42,10 @@ exports[`should render demo and match snapshot 1`] = `
role="button"
tabindex="0"
>
<div class="van-cell__value van-cell__value--alone">
Show Keyboard With Title
<div class="van-cell__title">
<span>
Show Keyboard With Title
</span>
</div>
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
</i>
@@ -46,8 +54,10 @@ exports[`should render demo and match snapshot 1`] = `
role="button"
tabindex="0"
>
<div class="van-cell__value van-cell__value--alone">
Show Keyboard With Multiple ExtraKey
<div class="van-cell__title">
<span>
Show Keyboard With Multiple ExtraKey
</span>
</div>
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
</i>
@@ -56,8 +66,10 @@ exports[`should render demo and match snapshot 1`] = `
role="button"
tabindex="0"
>
<div class="van-cell__value van-cell__value--alone">
Show Keyboard With Random Key Order
<div class="van-cell__title">
<span>
Show Keyboard With Random Key Order
</span>
</div>
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
</i>