Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/vue/src/grid/src/edit/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export default {
newRecords
})

this.updateCache()
this.handleTableData(true)
this.checkSelectionStatus()
this.updateFooter()
Expand Down Expand Up @@ -212,6 +213,7 @@ export default {
})

// 修改缓存
this.updateCache()
this.handleTableData(true)
this.checkSelectionStatus()
this.updateFooter()
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/grid/src/table/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ const Methods = {
},
/** 设置数据查找缓存,对数据进行备份,深度克隆 */
updateCache(backup = false, deepCopy = false) {
const { rawData, treeConfig, treeOrdered, editConfig, saveSource = false } = this
const newArray = isArray(rawData) ? rawData.slice(0) : []
const { tableFullData, treeConfig, treeOrdered, editConfig, saveSource = false } = this
const newArray = isArray(tableFullData) ? tableFullData.slice(0) : []
const rowKey = getRowkey(this)
const { children: childrenKey, temporaryIndex = '_$index_' } = treeConfig || {}
const isTreeOrderedFalse = treeConfig && !treeOrdered
Expand Down
Loading