Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
elf-mouse committed Jun 6, 2023
1 parent 298e270 commit 69622dd
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions docs/scripts/docs/en/side-sheet/side-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/docs/en/tree/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
> <del>The `selectedEvent` parameter of `@change` event is new in 9.35.0</del>
> NOTE: If you are not using `v-model`, you should listen for the tree using `@update:modelValue` and update the `modelValue` prop.
Expand Down
8 changes: 4 additions & 4 deletions docs/scripts/docs/zh/side-sheet/side-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 属性
- 自动

Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/docs/zh/tree/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 参数
> <del>9.35.0 中 `@change` 事件新增 `selectedEvent` 参数</del>
> 提示:如果你不使用 `v-model` 绑定数据,你应该使用 `@update:modelValue` 监听树节点值并更新 `modelValue` 属性
Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/snippets/select/demo4.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
v-model="formData.province"
:options="provinces"
default-label="Province"
@change="onChangeProvince($event)"
@update:model-value="onChangeProvince($event)"
></ui-select>

<ui-select
Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/snippets/table/demo2.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
v-model="page"
:total="total"
show-total
@change="onPage"
@update:model-value="onPage"
></ui-pagination>
</ui-table>
```
Expand Down

0 comments on commit 69622dd

Please sign in to comment.