Merge branch '2.x' into dev

This commit is contained in:
chenjiahan
2021-01-02 16:23:31 +08:00
7 changed files with 91 additions and 3 deletions
+18
View File
@@ -115,6 +115,23 @@ Use `title` prop to set keyboard title.
/>
```
### Random Key Order
Use `random-key-order` prop to shuffle the order of keys.
```html
<van-cell @touchstart.stop="show = true">
Show Keyboard With Random Key Order
</van-cell>
<van-number-keyboard
:show="show"
random-key-order
@blur="show = false"
@input="onInput"
@delete="onDelete"
/>
```
### Bind Value
```html
@@ -163,6 +180,7 @@ export default {
| hide-on-click-outside | Whether to hide keyboard when outside is clicked | _boolean_ | `true` |
| teleport `v2.10.0` | Return the mount node for NumberKeyboard | _string \| Element_ | - |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` |
| random-key-order `v2.12.2` | Whether to shuffle the order of keys | _boolean_ | `false` |
### Events