Commit ba2c1a3bf5f6d83ce37dd3bd9a1ff263ac02fc44
1 parent
2346a90c
fix(table): editable cell can not submit
修复可编辑单元格某些情况下无法提交的问题
Showing
2 changed files
with
8 additions
and
1 deletions
CHANGELOG.zh_CN.md
src/components/Table/src/components/editable/EditableCell.vue
@@ -246,7 +246,7 @@ | @@ -246,7 +246,7 @@ | ||
246 | if (!record) return false; | 246 | if (!record) return false; |
247 | const { key, dataIndex } = column; | 247 | const { key, dataIndex } = column; |
248 | const value = unref(currentValueRef); | 248 | const value = unref(currentValueRef); |
249 | - if (!key || !dataIndex) return; | 249 | + if (!key && !dataIndex) return; |
250 | 250 | ||
251 | const dataKey = (dataIndex || key) as string; | 251 | const dataKey = (dataIndex || key) as string; |
252 | 252 |