Browse Source

fix(table): editable cell can not submit

修复可编辑单元格某些情况下无法提交的问题
无木 3 years ago
parent
commit
ba2c1a3bf5

+ 7 - 0
CHANGELOG.zh_CN.md

@@ -1,3 +1,10 @@
+### 🐛 Bug Fixes
+
+- **BasicTable** 修复可编辑单元格某些情况下无法提交的问题
+- **BasicModal**
+  - 修复点击遮罩、按下`Esc`键都不能关闭`Modal`的问题
+  - 修复点击关闭按钮、最大化按钮旁边的空白区域也会导致`Modal`关闭的问题
+
 ## 2.7.2(2021-09-14)
 
 ### ✨ Features

+ 1 - 1
src/components/Table/src/components/editable/EditableCell.vue

@@ -246,7 +246,7 @@
         if (!record) return false;
         const { key, dataIndex } = column;
         const value = unref(currentValueRef);
-        if (!key || !dataIndex) return;
+        if (!key && !dataIndex) return;
 
         const dataKey = (dataIndex || key) as string;