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