fix: edit state does not revert when switching keys

fix: some digits are incorrectly recognized as base64-encoded text
This commit is contained in:
tiny-craft
2023-11-10 23:24:01 +08:00
parent 21c63e2ac2
commit a2ad85627e
6 changed files with 39 additions and 16 deletions

View File

@@ -131,6 +131,11 @@ const valueColumn = reactive({
}
},
})
const cancelEdit = () => {
currentEditRow.value.no = 0
}
const actionColumn = {
key: 'action',
title: i18n.t('interface.action'),
@@ -185,9 +190,7 @@ const actionColumn = {
currentEditRow.value.no = 0
}
},
onCancel: () => {
currentEditRow.value.no = 0
},
onCancel: cancelEdit,
})
},
}
@@ -265,6 +268,7 @@ const onUpdateFilter = (filters, sourceColumn) => {
defineExpose({
reset: () => {
clearFilter()
cancelEdit()
},
})
</script>