Skip to content

Commit

Permalink
fix:Copy as insert first row lost problem
Browse files Browse the repository at this point in the history
  • Loading branch information
shanhexi committed Nov 13, 2023
1 parent e85abc5 commit 6a28e4f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 3.0.12

`2023-11-13`

**更新日志**

- 🐞【Fixed】Copy as insert first row lost problem


## 3.0.11

`2023-11-08`
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 3.0.12

`2023-11-13`

**更新日志**

- 🐞【修复】复制为insert第一行丢失问题


## 3.0.11

`2023-11-10`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@ export default function TableBox(props: ITableProps) {
const newRowDatas = tableData.filter((item) => rowIds.includes(item[colNoCode]!));
const newRowDatasList = newRowDatas.map((item) => {
const _item = lodash.cloneDeep(item);
delete _item[colNoCode];
return Object.keys(_item).map((i) => _item[i]);
});
const _updateDatas = newRowDatasList.map((item, index) => {
Expand All @@ -791,7 +790,6 @@ export default function TableBox(props: ITableProps) {
const newRowDatas = tableData.filter((item) => rowIds.includes(item[colNoCode]!));
const newRowDatasList = newRowDatas.map((item) => {
const _item = lodash.cloneDeep(item);
delete _item[colNoCode];
return Object.keys(_item).map((i) => _item[i]);
});
const _updateDatas = newRowDatasList.map((item, index) => {
Expand Down

0 comments on commit 6a28e4f

Please sign in to comment.