docs: fix field value #7817
This commit is contained in:
@@ -118,7 +118,7 @@ Use `title` prop to set keyboard title.
|
||||
### Bind Value
|
||||
|
||||
```html
|
||||
<van-field readonly clickable :value="value" @touchstart.stop="show = true" />
|
||||
<van-field v-model="value" readonly clickable @touchstart.stop="show = true" />
|
||||
<van-number-keyboard
|
||||
v-model="value"
|
||||
:show="show"
|
||||
|
||||
@@ -131,7 +131,7 @@ export default {
|
||||
可以通过 `v-model` 绑定键盘当前输入值。
|
||||
|
||||
```html
|
||||
<van-field readonly clickable :value="value" @touchstart.stop="show = true" />
|
||||
<van-field v-model="value" readonly clickable @touchstart.stop="show = true" />
|
||||
<van-number-keyboard
|
||||
v-model="value"
|
||||
:show="show"
|
||||
|
||||
Reference in New Issue
Block a user