|
2 | 2 |
|
3 | 3 | ### props |
4 | 4 |
|
5 | | -| 参数 | 说明 | 类型 | 可选值 | 默认值 | |
6 | | -| ----------- | ---------------------------------------------- | -------- | ------- | ------ | --- | |
7 | | -| eventTarget | 设置右键菜单作用的元素 | `Element | String` | - | - | |
8 | | -| options | 右键菜单项。支持无限层级树形结构,具体结构如下 | `Array` | - | - | |
| 5 | +| Property | Description | Type | Optional value | Default | |
| 6 | +| ----------- | ---------------------------------------------------------------------------------------- | ------------ | -------------- | ------- | --- | |
| 7 | +| eventTarget | Sets the element triggered by the contextmenu event | `HTMLElement | String` | - | - | |
| 8 | +| options | menu item.It supports infinite hierarchical tree structure. The structure is as follows: | `Array` | - | - | |
9 | 9 |
|
10 | 10 | ### options |
11 | 11 |
|
12 | | -| 参数 | 说明 | 类型 | 可选值 | 默认值 | |
13 | | -| -------- | --------------------------------------------------------------- | -------- | ------ | ------ | |
14 | | -| label | 展示的菜单名称 | `String` | - | - | |
15 | | -| type | 菜单类型,内置分隔符类型为‘separator’。将会作为点击后回调的参数 | `String` | - | - | |
16 | | -| disabled | 禁用当前菜单,点击无效 | `String` | - | - | |
| 12 | +| Property | Description | Type | Optional value | Default | |
| 13 | +| -------- | ------------------------------------------------------------------------------------------------------------------ | -------- | -------------- | ------- | |
| 14 | +| label | Displayed menu name | `String` | - | - | |
| 15 | +| type | contextmenu item type,The split line through ‘SEPARATOR’。It will be used as a parameter for callback after cliked | `String` | - | - | |
| 16 | +| disabled | Disable the current menu, click will be invalid | `String` | - | - | |
17 | 17 |
|
18 | 18 | ### Event |
19 | 19 |
|
20 | | -| Event Name | Description | Parameters | |
21 | | -| ------------- | ------------ | ------------------ | |
22 | | -| on-node-click | 菜单点击回调 | 当前点击的菜单类型 | |
| 20 | +| Event Name | Description | Parameters | |
| 21 | +| ------------- | ------------------- | --------------------------- | |
| 22 | +| on-node-click | menu click callback | currently clicked menu type | |
0 commit comments