📜  使用js在antd表中隐藏列与条件渲染反应 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:53.682000             🧑  作者: Mango

代码示例1
let columns = [
  {
    title: "Name",
    dataIndex: "name",
    key: "name"
  },
  {
    title: "Age",
    dataIndex: "age",
    key: "age"
  },
  {
    title: "Address",
    dataIndex: "address",
    key: "address"
  },
  {
    title: "Action",
    key: "action",
    dataIndex: "action",
    hidden: true
  }
].filter(item => !item.hidden);