liuyao
2022-03-11 a23020b76d4fd69871d7a782efe6a9f13eeca6c1
src/components/Table/src/hooks/useColumns.ts
@@ -152,10 +152,10 @@
        return hasPermission(column.auth) && isIfShow(column);
      })
      .map((column) => {
        const { slots, dataIndex, customRender, format, edit, editRow, flag } = column;
        const { slots, customRender, format, edit, editRow, flag } = column;
        if (!slots || !slots?.title) {
          column.slots = { title: `header-${dataIndex}`, ...(slots || {}) };
          // column.slots = { title: `header-${dataIndex}`, ...(slots || {}) };
          column.customTitle = column.title;
          Reflect.deleteProperty(column, 'title');
        }