mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
Merge branch '2.x' into dev
This commit is contained in:
@@ -30,7 +30,7 @@ export default {
|
||||
|
||||
### Listen to Events
|
||||
|
||||
`search` event will be triggered when click the search button on the keyboard, `cancel` event will be triggered when click the cancel button.
|
||||
`search` event will be Emitted when click the search button on the keyboard, `cancel` event will be Emitted when click the cancel button.
|
||||
|
||||
```html
|
||||
<form action="/">
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
|
||||
### Custom Action Button
|
||||
|
||||
Use `action` slot to custom right button, `cancel` event will no longer be triggered when use this slot.
|
||||
Use `action` slot to custom right button, `cancel` event will no longer be Emitted when use this slot.
|
||||
|
||||
```html
|
||||
<van-search
|
||||
@@ -132,14 +132,14 @@ Use `action` slot to custom right button, `cancel` event will no longer be trigg
|
||||
|
||||
### Events
|
||||
|
||||
| Event | Description | Arguments |
|
||||
| ------ | ---------------------------------- | --------------- |
|
||||
| search | Triggered when confirm search | _value: string_ |
|
||||
| input | Triggered when input value changed | _value: string_ |
|
||||
| focus | Triggered when input gets focus | _event: Event_ |
|
||||
| blur | Triggered when input loses focus | _event: Event_ |
|
||||
| clear | Triggered when click clear icon | _event: Event_ |
|
||||
| cancel | Triggered when click cancel button | - |
|
||||
| Event | Description | Arguments |
|
||||
| ------ | ----------------------------------------- | --------------- |
|
||||
| search | Emitted when confirming search | _value: string_ |
|
||||
| input | Emitted when input value changed | _value: string_ |
|
||||
| focus | Emitted when input is focused | _event: Event_ |
|
||||
| blur | Emitted when input is blured | _event: Event_ |
|
||||
| clear | Emitted when the clear icon is clicked | _event: Event_ |
|
||||
| cancel | Emitted when the cancel button is clicked | - |
|
||||
|
||||
### Slots
|
||||
|
||||
|
Reference in New Issue
Block a user