alibaba / x-render

🚴‍♀️ 阿里 - 很易用的中后台「表单 / 表格 / 图表」解决方案
https://xrender.fun
6.99k stars 989 forks source link

form-render 表格列表tableList的列设置hidden:true,在表格中还会显示出来 #1316

Closed aiyuezhicheng closed 1 year ago

aiyuezhicheng commented 1 year ago

1.依赖仓库的版本(Dependencies versions)

2.问题描述(Bug description): 表格列表的列设置hidden:true,在表格中还会显示出来。如果不用hidden设置隐藏,还可以用什么方法去设置?用actionColumnProps好像也不行

3.出现问题的 schema demo(Reproduction schema demo)

const schema = 
  {
  type: 'object',
  displayType: 'row',
  properties: {
    list: {
      title: '两层数组-有隐藏属性',
      type: 'array',
      widget: 'tableList',
      items: {
        type: 'object',
        properties: {
          input1: {
            title: '简单输入框',
            type: 'string',
            hidden: true,
          },
        },
      },
    },
  },
}

image

lhbxs commented 1 year ago

先更新本地版本道 2.2.9 看看是否有问题