mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(NumberKeyboard): add maxlength description (#8877)
This commit is contained in:
parent
e4d720a261
commit
41d95829ba
@ -141,7 +141,7 @@ export default {
|
||||
|
||||
### 双向绑定
|
||||
|
||||
可以通过 `v-model` 绑定键盘当前输入值。
|
||||
可以通过 `v-model` 绑定键盘当前输入值,并通过 `maxlength` 属性来限制输入长度。
|
||||
|
||||
```html
|
||||
<van-field v-model="value" readonly clickable @touchstart.stop="show = true" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user