紧急修复crud table树桩操作限死主键问题 (#102)

紧急修复 crud 自定义树桩表格的错误 之前仅支持id的,修复后 支持自定义主键
This commit is contained in:
YLQZ
2020-08-25 17:24:31 +08:00
committed by GitHub
parent 634b8359ae
commit f95e05c884

View File

@@ -511,7 +511,7 @@ function CRUD(options) {
return
}
const lazyTreeNodeMap = table.store.states.lazyTreeNodeMap
const children = lazyTreeNodeMap[row.id]
const children = lazyTreeNodeMap[crud.getDataId(row)]
row.children = children
children.forEach(ele => {
const id = crud.getDataId(ele)