feat: add multiple examples (#5564)
This commit is contained in:
@@ -90,6 +90,45 @@ export default {
|
||||
}
|
||||
```
|
||||
|
||||
### Bottom Left Button Content
|
||||
|
||||
Use `extra-key` prop to set the content of bottom left button
|
||||
|
||||
```html
|
||||
<van-button plain type="primary" @touchstart.stop="show = true'">
|
||||
Show Id Card Number Keyboard
|
||||
</van-button>
|
||||
|
||||
<van-number-keyboard
|
||||
:show="show"
|
||||
close-button-text="Close"
|
||||
extra-key="X"
|
||||
@blur="show = false"
|
||||
@input="onInput"
|
||||
@delete="onDelete"
|
||||
/>
|
||||
```
|
||||
|
||||
### Keyboard Title
|
||||
|
||||
Use `title` prop to set keyboard title
|
||||
|
||||
```html
|
||||
<van-button plain type="info" @touchstart.stop="show = true'">
|
||||
Show Custom Title Keyboard
|
||||
</van-button>
|
||||
|
||||
<van-number-keyboard
|
||||
:show="show"
|
||||
close-button-text="Close"
|
||||
title="Keyboard Title"
|
||||
extra-key="."
|
||||
@blur="show = false"
|
||||
@input="onInput"
|
||||
@delete="onDelete"
|
||||
/>
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Props
|
||||
|
||||
Reference in New Issue
Block a user