Skip to content

Commit 2b35e78

Browse files
authored
Merge pull request #3720 from libondev/develop
docs: correct the dropdown menu click event name
2 parents 63fcb95 + 2d76bc2 commit 2b35e78

11 files changed

Lines changed: 23 additions & 23 deletions

docs/assets/demo/en/component/dropdown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ option: ListTable-columns-text#dropDownMenu
1111
# drop down menu
1212

1313
In this example, the dropDownMenu is configured in the first column of columns, and when hovered to the header cell, a drop-down menu is displayed for further operation.
14-
At the same time through monitoring`click_cell`Event, when the mouse clicks the order icon in the first column, the interface showDropDownMenu is called to display the drop-down menu. To continue the operation according to the item clicked on the drop-down menu, you can listen to the event dropdownmenu_click.
14+
At the same time through monitoring`click_cell`Event, when the mouse clicks the order icon in the first column, the interface showDropDownMenu is called to display the drop-down menu. To continue the operation according to the item clicked on the drop-down menu, you can listen to the event dropdown_menu_click.
1515

1616
## Key Configurations
1717

docs/assets/demo/en/interaction/context-menu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ option: ListTable#menu.contextMenuItems
1010

1111
# Right click menu
1212

13-
Right-click pop-up menu, if you need to click on the drop-down menu to continue the operation, you can listen to the event dropdownmenu_click.
13+
Right-click pop-up menu, if you need to click on the drop-down menu to continue the operation, you can listen to the event dropdown_menu_click.
1414

1515
In this example, after clicking the right mouse button, a copy, paste, delete and other functions will appear in the drop-down menu. After clicking the copy, the selected cell content will be copied to the clipboard, after clicking paste, the content in the clipboard will be pasted to the selected cell, and after clicking delete, the content of the selected cell will be set to empty.
1616

docs/assets/demo/zh/component/dropdown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ option: ListTable-columns-text#dropDownMenu
1111
# 下拉菜单
1212

1313
在该示例中,在 columns 第一列中配置了 dropDownMenu, 当 hover 到表头单元格时会显示下拉菜单以进行进一步操作。
14-
同时通过监听`click_cell`事件,鼠标点击第一列中订单 icon 时,调用接口 showDropDownMenu 来显示下拉菜单。如需根据点击下拉菜单的项目来继续操作,可以监听事件 dropdownmenu_click
14+
同时通过监听`click_cell`事件,鼠标点击第一列中订单 icon 时,调用接口 showDropDownMenu 来显示下拉菜单。如需根据点击下拉菜单的项目来继续操作,可以监听事件 dropdown_menu_click
1515

1616
## 关键配置
1717

docs/assets/demo/zh/interaction/context-menu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ option: ListTable#menu.contextMenuItems
1010

1111
# 右键菜单
1212

13-
右键弹出菜单, 如需根据点击下拉菜单的项目来继续操作,可以监听事件 dropdownmenu_click
13+
右键弹出菜单, 如需根据点击下拉菜单的项目来继续操作,可以监听事件 dropdown_menu_click
1414

1515
本例中,点击右键后会出现复制、粘贴、删除等功能的下拉菜单,点击复制后,会将选中的单元格内容复制到剪贴板,点击粘贴后,会将剪贴板中的内容粘贴到选中的单元格中,点击删除后,会将选中的单元格内容设置为空。
1616

docs/assets/faq/en/16-How to customize the drop-down menu in table component.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ menu: {
5858
2. Configure in the header
5959
dropDownMenu can be configured in columns. The items are the same as defaultHeaderMenuItems. The menu only takes effect in the corresponding column.
6060
3. Menu selection status update
61-
After the drop-down menu item is selected, the "dropdownmenu_click" event will be triggered. The listening event updates the drop-down menu status through the setDropDownMenuHighlight interface. The selected item text and icon will change the style.
61+
After the drop-down menu item is selected, the "dropdown_menu_click" event will be triggered. The listening event updates the drop-down menu status through the setDropDownMenuHighlight interface. The selected item text and icon will change the style.
6262

6363
```javascript
64-
table.on('dropdownmenu_click', (args: any) => {
65-
console.log('dropdownmenu_click', args);
64+
table.on('dropdown_menu_click', (args: any) => {
65+
console.log('dropdown_menu_click', args);
6666
table.setDropDownMenuHighlight([args]);
6767
});
6868
```
@@ -140,8 +140,8 @@ const option: TYPES.ListTableConstructorOptions = {
140140
}
141141
};
142142
const table = new ListTable(document.getElementById('container'), option);
143-
table.on('dropdownmenu_click', (args: any) => {
144-
console.log('dropdownmenu_click', args);
143+
table.on('dropdown_menu_click', (args: any) => {
144+
console.log('dropdown_menu_click', args);
145145
table.setDropDownMenuHighlight([args]);
146146
});
147147
```

docs/assets/faq/en/18-How to customize the context menu in the table component.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Menu item configuration:
3838
- text: the text of the menu item
3939
- menuKey: unique identifier of the menu item
4040

41-
After the drop-down menu item is selected, the "dropdownmenu_click" event will be triggered, and you can listen to the event and perform related operations.
41+
After the drop-down menu item is selected, the "dropdown_menu_click" event will be triggered, and you can listen to the event and perform related operations.
4242

4343
```javascript
44-
table.on('dropdownmenu_click', (args: any) => {
44+
table.on('dropdown_menu_click', (args: any) => {
4545
console.log('menu_click', args);
4646
});
4747
```
@@ -65,7 +65,7 @@ const option: TYPES.ListTableConstructorOptions = {
6565
}
6666
};
6767
const table = new ListTable(document.getElementById('container'), option);
68-
table.on('dropdownmenu_click', (args: any) => {
68+
table.on('dropdown_menu_click', (args: any) => {
6969
console.log('menu_click', args);
7070
});
7171
```

docs/assets/faq/zh/16-How to customize the drop-down menu in table component.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ menu: {
5858
2. 在表头中配置
5959
在 columns 中可以配置 dropDownMenu,项目与 defaultHeaderMenuItems 相同,该菜单只在对应的列中生效。
6060
3. 菜单选中状态更新
61-
下拉菜单项目选中后,会触发"dropdownmenu_click"事件,监听事件事件通过 setDropDownMenuHighlight 接口更新下拉菜单状态,选中的项目文字和 icon 会更改样式。
61+
下拉菜单项目选中后,会触发"dropdown_menu_click"事件,监听事件事件通过 setDropDownMenuHighlight 接口更新下拉菜单状态,选中的项目文字和 icon 会更改样式。
6262

6363
```javascript
64-
table.on('dropdownmenu_click', (args: any) => {
65-
console.log('dropdownmenu_click', args);
64+
table.on('dropdown_menu_click', (args: any) => {
65+
console.log('dropdown_menu_click', args);
6666
table.setDropDownMenuHighlight([args]);
6767
});
6868
```
@@ -140,8 +140,8 @@ const option: TYPES.ListTableConstructorOptions = {
140140
}
141141
};
142142
const table = new ListTable(document.getElementById('container'), option);
143-
table.on('dropdownmenu_click', (args: any) => {
144-
console.log('dropdownmenu_click', args);
143+
table.on('dropdown_menu_click', (args: any) => {
144+
console.log('dropdown_menu_click', args);
145145
table.setDropDownMenuHighlight([args]);
146146
});
147147
```

docs/assets/faq/zh/18-How to customize the context menu in the table component.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ menu: {
3838
- text: 菜单项目的文字
3939
- menuKey: 菜单项目的唯一标识符
4040

41-
下拉菜单项目选中后,会触发"dropdownmenu_click"事件,可以监听事件事件执行相关操作。
41+
下拉菜单项目选中后,会触发"dropdown_menu_click"事件,可以监听事件事件执行相关操作。
4242

4343
```javascript
44-
table.on('dropdownmenu_click', (args: any) => {
44+
table.on('dropdown_menu_click', (args: any) => {
4545
console.log('menu_click', args);
4646
});
4747
```
@@ -65,7 +65,7 @@ const option: TYPES.ListTableConstructorOptions = {
6565
}
6666
};
6767
const table = new ListTable(document.getElementById('container'), option);
68-
table.on('dropdownmenu_click', (args: any) => {
68+
table.on('dropdown_menu_click', (args: any) => {
6969
console.log('menu_click', args);
7070
});
7171
```

docs/assets/guide/en/Event/event_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ For a more comprehensive list of events, please refer to: https://visactor.io/vt
3333
| After sort | AFTER_SORT | Execute after sorting event |
3434
| Click Fixed Column | FREEZE_CLICK | Click Fixed Column Icon Event |
3535
| Scroll | SCROLL | Scroll Table Events |
36-
| Click the drop-down icon | DROPDOWNMENU_CLICK | Click the drop-down menu icon event |
36+
| Click the drop-down icon | DROPDOWN_MENU_CLICK | Click the drop-down menu icon event |
3737
| Click on the drop-down menu | MENU_CLICK | Click on the drop-down menu Events |
3838
| Mouse over miniature | MOUSEOVER_CHART_SYMBOL | Mouse over miniature mark events |
3939
| Drag and drop box to select mouse release | DRAG_SELECT_END | Drag and drop box to select cell mouse release event |

docs/assets/guide/zh/Event/event_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
| 滚动 | SCROLL | 滚动表格事件 |
3636
| 滚动 | SCROLL_HORIZONTAL_END | 横向滚动右侧事件 |
3737
| 滚动 | SCROLL_VERTICAL_END | 竖向滚动底部事件 |
38-
| 点击下拉图标 | DROPDOWNMENU_CLICK | 点击下拉菜单图标事件 |
38+
| 点击下拉图标 | DROPDOWN_MENU_CLICK | 点击下拉菜单图标事件 |
3939
| 点击下拉菜单 | MENU_CLICK | 点击下拉菜单事件 |
4040
| 鼠标经过迷你图 | MOUSEOVER_CHART_SYMBOL | 鼠标经过迷你图标记事件 |
4141
| 拖拽框选鼠标松开 | DRAG_SELECT_END | 拖拽框选单元格鼠标松开事件 |

0 commit comments

Comments
 (0)