From bf6e0beb027b3f6566c90d1d1301edf153242b17 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Tue, 1 Dec 2020 16:41:39 +0800 Subject: [PATCH] docs: fix update:model-value event doc #7649 --- src/field/README.md | 2 +- src/field/README.zh-CN.md | 2 +- src/search/README.md | 16 ++++++++-------- src/search/README.zh-CN.md | 16 ++++++++-------- src/slider/README.md | 12 ++++++------ src/slider/README.zh-CN.md | 12 ++++++------ 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/field/README.md b/src/field/README.md index 94df106fa..beab34f32 100644 --- a/src/field/README.md +++ b/src/field/README.md @@ -260,7 +260,7 @@ Field support all native events of input tag | Event | Description | Parameters | | --- | --- | --- | -| input | Emitted when input value changed | _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_ | diff --git a/src/field/README.zh-CN.md b/src/field/README.zh-CN.md index e3e0e91c8..f8c47439b 100644 --- a/src/field/README.zh-CN.md +++ b/src/field/README.zh-CN.md @@ -283,7 +283,7 @@ export default { | 事件 | 说明 | 回调参数 | | -------------------- | -------------------- | ------------------------------ | -| input | 输入框内容变化时触发 | _value: string (当前输入的值)_ | +| update:model-value | 输入框内容变化时触发 | _value: string (当前输入的值)_ | | focus | 输入框获得焦点时触发 | _event: Event_ | | blur | 输入框失去焦点时触发 | _event: Event_ | | clear | 点击清除按钮时触发 | _event: Event_ | diff --git a/src/search/README.md b/src/search/README.md index 69efd2a8d..6ffd2935a 100644 --- a/src/search/README.md +++ b/src/search/README.md @@ -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 diff --git a/src/search/README.zh-CN.md b/src/search/README.zh-CN.md index 510578043..46c521160 100644 --- a/src/search/README.zh-CN.md +++ b/src/search/README.zh-CN.md @@ -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 | 点击取消按钮时触发 | - | ### 方法 diff --git a/src/slider/README.md b/src/slider/README.md index 980221c88..ca37bd44b 100644 --- a/src/slider/README.md +++ b/src/slider/README.md @@ -160,12 +160,12 @@ export default { ### Events -| Event | Description | Arguments | -| ---------- | ------------------------------ | ------------------- | -| input | Emitted when value is changing | value: current rate | -| change | Emitted after value changed | value: current rate | -| drag-start | Emitted when start draging | - | -| drag-end | Emitted when end draging | - | +| Event | Description | Arguments | +| ------------------ | ------------------------------ | ------------------- | +| update:model-value | Emitted when value is changing | value: current rate | +| change | Emitted after value changed | value: current rate | +| drag-start | Emitted when start draging | - | +| drag-end | Emitted when end draging | - | ### Slots diff --git a/src/slider/README.zh-CN.md b/src/slider/README.zh-CN.md index a725c88a4..0f4a6bddc 100644 --- a/src/slider/README.zh-CN.md +++ b/src/slider/README.zh-CN.md @@ -166,12 +166,12 @@ export default { ### Events -| 事件名 | 说明 | 回调参数 | -| ---------- | ------------------------ | --------------- | -| input | 进度变化时实时触发 | value: 当前进度 | -| change | 进度变化且结束拖动后触发 | value: 当前进度 | -| drag-start | 开始拖动时触发 | - | -| drag-end | 结束拖动时触发 | - | +| 事件名 | 说明 | 回调参数 | +| ------------------ | ------------------------ | --------------- | +| update:model-value | 进度变化时实时触发 | value: 当前进度 | +| change | 进度变化且结束拖动后触发 | value: 当前进度 | +| drag-start | 开始拖动时触发 | - | +| drag-end | 结束拖动时触发 | - | ### Slots