Browse Source

fix(table): editable cell can not submit

修复可编辑单元格某些情况下无法提交的问题
pull/1211/head
无木 5 years ago
parent
commit
ba2c1a3bf5
  1. 7
      CHANGELOG.zh_CN.md
  2. 2
      src/components/Table/src/components/editable/EditableCell.vue

7
CHANGELOG.zh_CN.md

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

2
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;

Loading…
Cancel
Save