fix: 显示列字段不展示隐藏列 (#5307)

This commit is contained in:
RUNZE LU 2022-09-05 15:12:09 +08:00
parent bd5a43286e
commit d1f81253a5

View File

@ -309,7 +309,15 @@ export const TableStore = iRendererStore
})
.views(self => {
function getColumnsExceptBuiltinTypes() {
return self.columns.filter(item => !/^__/.test(item.type));
return self.columns.filter(
item =>
/** 排除掉内置的列和不可见的列 */
!/^__/.test(item.type) &&
isVisible(
item.pristine,
hasVisibleExpression(item.pristine) ? self.data : {}
)
);
}
function getForms() {