antd Table每列样式修改


      {
        title: formatMessage({ id: 'OPERATE', defaultMessage: '操作' }),
        dataIndex: 'id',
        key: 'id',
        ellipsis: true,
        render: v => {
          const obj = {
            children: <div className={styles.iconStyle}>
               {/* <MyIcon
                      type="iconfile-copy"
                       title={formatMessage({ id: 'COMMON_EDIT', defaultMessage: '编辑' })}
               /> */}
                 <Popconfirm
                  title={formatMessage({ id: 'CONFIRM_DELETION', defaultMessage: '确认删除?' })}
                  onConfirm={() => {
                   singleListDelete(v);
                 }}
                >
                  <MyIcon
                    type="icondelete"
                    title={formatMessage({ id: 'COMMON_DELETE', defaultMessage: '删除' })}
                  />
                </Popconfirm>
               </div>,
            props: {
              rowSpan: 1,
              colSpan: 1,
              id: 'lastRowSpan',
            },
          };
          return obj;
        },
      },

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM