[new feature] NumberKeyboard: add maxlength prop (#3532)

This commit is contained in:
neverland
2019-06-17 15:33:25 +08:00
committed by GitHub
parent ce3dfc859a
commit 8331b7597d
6 changed files with 34 additions and 4 deletions
+2
View File
@@ -75,6 +75,7 @@ export default {
<van-number-keyboard
v-model="value"
:show="show"
:maxlength="6"
@blur="show = false"
/>
```
@@ -100,6 +101,7 @@ export default {
| show | 是否显示键盘 | `Boolean` | - | - |
| theme | 样式风格,可选值为 `default` `custom` | `String` | `default` | - |
| title | 键盘标题 | `String` | - | - |
| maxlength | 输入值最大长度 | `Number | String` | - | 2.0.2 |
| transition | 是否开启过场动画 | `Boolean` | `true` | - |
| z-index | 键盘 z-index | `Number` | `100` | - |
| extra-key | 左下角按键内容 | `String` | `''` | - |