1.设置按键回车+箭头+tab健设置
:mouse-config="{selected: true}"
:keyboard-config="{ isArrow: true, isEnter: true, isEdit: true,isTab:true}"
2 表格编辑设置
:edit-config="{trigger: this.triggerFlag, mode: 'row', showIcon: false , activeMethod: activeRowMethod}"
目前项目用到这些
1.this.triggerFlag,可以代码控制,切换
2 activeRowMethod 判断,返回值决定是否可以编辑


3
@edit-closed="editSave"

@edit-actived="editActived"

@edit-disabled="editDisabledEvent"

本文主要介绍了如何在项目中设置键盘快捷键(如回车+箭头+tab),鼠标操作以及表格编辑的触发条件和状态管理,包括使用`triggerFlag`控制编辑开关和`activeRowMethod`判断行编辑权限。
2800

被折叠的 条评论
为什么被折叠?



