fix: 修复输入时按空格会清空输入框的问题

This commit is contained in:
jmal 2024-07-12 15:58:21 +08:00
parent 8158187a8d
commit b2e73dce4e

View File

@ -1344,9 +1344,7 @@ export default {
}
// space
if (keyCode === 32) {
if (this.inputting || this.editingIndex !== -1) {
event.target.select()
} else {
if (!this.inputting) {
if (this.selectRowData.length > 0 && !this.drawer) {
this.drawer = true
this.drawerShowTime = Date.now()