Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.1k views
in Technique[技术] by (71.8m points)

antd 的table组件多维数组解析问题

data: [

    [
      {
        number: '
        1',
        money: '1'
      },
      {
        number: '2',
        money: '2'
      },
      {}
    ],
    [
      {
        number: '1',
        money: '3'
      },
      {
        number: '2',
        money: '4'
      },
      {}
    ]
  ]

columns:[
{

      key: '1',
      title: '信息',
      align: 'center',
      render:()=>{}
      

},

{
      key: '2',
      title: '时间',
      align: 'center',
      render:()=>{}
      

},

{
      key: '3',
      title: '数量',
      align: 'center',
      render:()=>{}
      

}

{
      key: '4',
      title: '价格',
      align: 'center',
      render:()=>{}
      

}
]
多维数组 render如何解析呢 主要是想实现行合并


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...