mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
!13 根据 v4 版本代码修复树形表格配置 transform: true 时,执行 cacheSourceMap 方法没有将子节点放入到 sourceDataRowIdData 中的问题
Merge pull request !13 from Scythe1912/v3
This commit is contained in:
@@ -685,7 +685,7 @@ const Methods = {
|
||||
}
|
||||
}
|
||||
// 源数据缓存
|
||||
if (treeConfig && !treeOpts.transform) {
|
||||
if (treeConfig) {
|
||||
const childrenField = treeOpts.children || treeOpts.childrenField
|
||||
XEUtils.eachTree(sourceData, handleSourceRow, { children: treeOpts.transform ? treeOpts.mapChildrenField : childrenField })
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user