Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

表格编辑,键盘导航怎么可以不清空之前内容 #89

Open
yingfengchen opened this issue Aug 6, 2021 · 2 comments
Open

Comments

@yingfengchen
Copy link

表格编辑,键盘导航,单元格重新获取到焦点后,怎么可以不清空之前内容

@parlay96
Copy link
Member

parlay96 commented Aug 7, 2021

设置 mouse-config={selected: true} 启用单元格选中功能(只能用于 edit-config {mode:cell }有效)
通过 keyboard-config={editMethod} 重写默认的编辑方法,改为追加的方式
代码:
editMethod ({ row, column }) {
const $table = this.$refs.plTable
// 重写默认的覆盖式,改为追加式
$table.setActiveCell(row, column)
},
希望不要删除你的提问!为了后续开发同学!

@wang1fann
Copy link

还需要 return false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants