React-antd-Table similar table different field processing

1. When two table fields are similar, but one or two fields are different, we can extract the different fields separately in the form of objects and 情况pushjust enter according to them.
2.
Code reference

   const change =  
      {
    
    
        title: '操作',
        dataIndex: 'operate',
        key: 'operate',
        width: '15%',
        align: 'center',
        render: (text, record) => {
    
    
          return (
            <span>
     
            </span>
          );
        },
      }
    if () {
    
    
      columns.push(change);
    }

Guess you like

Origin blog.csdn.net/weixin_45416217/article/details/106767716