diff --git a/docs/scripts/docs/en/side-sheet/side-sheet.md b/docs/scripts/docs/en/side-sheet/side-sheet.md index eae4bb9f4..c67e17c41 100644 --- a/docs/scripts/docs/en/side-sheet/side-sheet.md +++ b/docs/scripts/docs/en/side-sheet/side-sheet.md @@ -19,11 +19,11 @@ ### Events -| Name | Type | Description | -| -------- | ------------------------- | ------------------------------------ | -| `change` | `function(open: boolean)` | Emits when the side sheet is hidden. | +| Name | Type | Description | +| ------------------- | ------------------------- | ------------------------------------ | +| `update:modelValue` | `function(open: boolean)` | Emits when the side sheet is hidden. | -> NOTE: If you are not using `v-model`, you should listen for the side sheet using `@change` and update the `modelValue` prop. +> NOTE: If you are not using `v-model`, you should listen for the side sheet using `@update:modelValue` and update the `modelValue` prop. - Automatic diff --git a/docs/scripts/docs/en/tree/tree.md b/docs/scripts/docs/en/tree/tree.md index 5a18566b3..307e5c274 100644 --- a/docs/scripts/docs/en/tree/tree.md +++ b/docs/scripts/docs/en/tree/tree.md @@ -62,7 +62,7 @@ | `update:modelValue` | `function(selectedNodes: string \| array, selectedEvent: object)` | Emits when tree node is changed. | | | `selected` | `function(selectedNodesData: string \| array)` | Emits when tree node is selected. | 9.34.0 | -> The `selectedEvent` parameter of `@change` event is new in 9.35.0 +> The `selectedEvent` parameter of `@change` event is new in 9.35.0 > NOTE: If you are not using `v-model`, you should listen for the tree using `@update:modelValue` and update the `modelValue` prop. diff --git a/docs/scripts/docs/zh/side-sheet/side-sheet.md b/docs/scripts/docs/zh/side-sheet/side-sheet.md index 5e8433bdd..c9f7b98bc 100644 --- a/docs/scripts/docs/zh/side-sheet/side-sheet.md +++ b/docs/scripts/docs/zh/side-sheet/side-sheet.md @@ -19,11 +19,11 @@ ### Events -| Name | Type | Description | -| -------- | ------------------------- | -------------------- | -| `change` | `function(open: boolean)` | 侧边动作表隐藏时触发 | +| Name | Type | Description | +| ------------------- | ------------------------- | -------------------- | +| `update:modelValue` | `function(open: boolean)` | 侧边动作表隐藏时触发 | -> 提示:如果你不使用 `v-model` 绑定数据,你应该使用 `@change` 监听侧边动作表显示状态并更新 `modelValue` 属性 +> 提示:如果你不使用 `v-model` 绑定数据,你应该使用 `@update:modelValue` 监听侧边动作表显示状态并更新 `modelValue` 属性 - 自动 diff --git a/docs/scripts/docs/zh/tree/tree.md b/docs/scripts/docs/zh/tree/tree.md index f27ae3dcf..057f61d40 100644 --- a/docs/scripts/docs/zh/tree/tree.md +++ b/docs/scripts/docs/zh/tree/tree.md @@ -62,7 +62,7 @@ | `update:modelValue` | `function(selectedNodes: string \| array, selectedEvent: object)` | 树节点值变化时触发 | | | `selected` | `function(selectedNodesData: string \| array)` | 树节点被选中时触发 | 9.34.0 | -> 9.35.0 中 `@change` 事件新增 `selectedEvent` 参数 +> 9.35.0 中 `@change` 事件新增 `selectedEvent` 参数 > 提示:如果你不使用 `v-model` 绑定数据,你应该使用 `@update:modelValue` 监听树节点值并更新 `modelValue` 属性 diff --git a/docs/scripts/snippets/select/demo4.md b/docs/scripts/snippets/select/demo4.md index b1db40cc4..ed0256474 100644 --- a/docs/scripts/snippets/select/demo4.md +++ b/docs/scripts/snippets/select/demo4.md @@ -3,7 +3,7 @@ v-model="formData.province" :options="provinces" default-label="Province" - @change="onChangeProvince($event)" + @update:model-value="onChangeProvince($event)" > ```