mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
fix: 显示列字段不展示隐藏列 (#5307)
This commit is contained in:
parent
bd5a43286e
commit
d1f81253a5
@ -309,7 +309,15 @@ export const TableStore = iRendererStore
|
|||||||
})
|
})
|
||||||
.views(self => {
|
.views(self => {
|
||||||
function getColumnsExceptBuiltinTypes() {
|
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() {
|
function getForms() {
|
||||||
|
Loading…
Reference in New Issue
Block a user