docs: fix update:model-value event doc #7649

This commit is contained in:
chenjiahan
2020-12-01 16:41:39 +08:00
parent 154ef6c33c
commit bf6e0beb02
6 changed files with 30 additions and 30 deletions
+8 -8
View File
@@ -132,14 +132,14 @@ Use `action` slot to custom right button, `cancel` event will no longer be Emitt
### Events
| 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 | - |
| Event | Description | Arguments |
| --- | --- | --- |
| search | Emitted when confirming search | _value: string_ |
| update:model-value | 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 | - |
### Methods
+8 -8
View File
@@ -148,14 +148,14 @@ export default {
### Events
| 事件名 | 说明 | 回调参数 |
| ------ | -------------------- | ------------------------------ |
| search | 确定搜索时触发 | _value: string (当前输入的值)_ |
| input | 输入框内容变化时触发 | _value: string (当前输入的值)_ |
| focus | 输入框获得焦点时触发 | _event: Event_ |
| blur | 输入框失去焦点时触发 | _event: Event_ |
| clear | 点击清除按钮后触发 | _event: Event_ |
| cancel | 点击取消按钮时触发 | - |
| 事件名 | 说明 | 回调参数 |
| ------------------ | -------------------- | ------------------------------ |
| search | 确定搜索时触发 | _value: string (当前输入的值)_ |
| update:model-value | 输入框内容变化时触发 | _value: string (当前输入的值)_ |
| focus | 输入框获得焦点时触发 | _event: Event_ |
| blur | 输入框失去焦点时触发 | _event: Event_ |
| clear | 点击清除按钮后触发 | _event: Event_ |
| cancel | 点击取消按钮时触发 | - |
### 方法