Commit ba2c1a3bf5f6d83ce37dd3bd9a1ff263ac02fc44

Authored by 无木
1 parent 2346a90c

fix(table): editable cell can not submit

修复可编辑单元格某些情况下无法提交的问题
CHANGELOG.zh_CN.md
  1 +### 🐛 Bug Fixes
  2 +
  3 +- **BasicTable** 修复可编辑单元格某些情况下无法提交的问题
  4 +- **BasicModal**
  5 + - 修复点击遮罩、按下`Esc`键都不能关闭`Modal`的问题
  6 + - 修复点击关闭按钮、最大化按钮旁边的空白区域也会导致`Modal`关闭的问题
  7 +
1 8 ## 2.7.2(2021-09-14)
2 9  
3 10 ### ✨ Features
... ...
src/components/Table/src/components/editable/EditableCell.vue
... ... @@ -246,7 +246,7 @@
246 246 if (!record) return false;
247 247 const { key, dataIndex } = column;
248 248 const value = unref(currentValueRef);
249   - if (!key || !dataIndex) return;
  249 + if (!key && !dataIndex) return;
250 250  
251 251 const dataKey = (dataIndex || key) as string;
252 252  
... ...