Antd table 自定义列

  • Post author:
  • Post category:其他

const columns = [
      {
        title: "字段名称",
        dataIndex: "aa",
        key: "aa",
        width:192
      },
      {
        title: "输出内容",
        dataIndex: "bb",
        //实际字段看接口的返回字段名称 这里只是演示
        key: "bb",
        width:768
      },
      {
        title: "解密内容",
        dataIndex: "jimineirong",
        key: "jimineirong",
        width:192,
        render: ( jimineirong, record) => <span>
           {String(record.jimineirong)}
        </span> 
      },
    ];

版权声明:本文为weixin_44195250原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。