fix: 修复 table 组件提前映射了 lable, 导致 label 使用 数据容器数据时无法正确获取到值的问题 (#8056)

This commit is contained in:
feely 2023-10-27 16:08:50 +08:00 committed by GitHub
parent 9bbaccb1e1
commit 1e5f4942c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1113,10 +1113,7 @@ export const TableStore = iRendererStore
pristine: item.pristine || item,
toggled: item.toggled !== false,
breakpoint: item.breakpoint,
/** 提前映射变量方便后续view中使用 */
label: isPureVariable(item.label)
? resolveVariableAndFilter(item.label, self.data)
: item.label
isPrimary: index === PARTITION_INDEX
};
});