New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in antd table column not allow to add align prop #48638
Comments
Hello @jeyakumar-BTR. Please provide a online reproduction by forking codesandbox of [email protected] or [email protected], or provide a minimal GitHub repository. Issues labeled by 你好 @jeyakumar-BTR,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 [email protected] 或 [email protected] 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。 |
I can't see TS error in your reproduce link. |
Reproduction link
https://codepen.io/JoyeSara/pen/bGJZEPv?editors=0010
Steps to reproduce
import { Button, Table } from 'antd';
export const PayBillInvoicedRecordsList = () => {
const columns = [
{
title: 'Customer Name',
dataIndex: 'leaseCompanyName',
key: 'leaseCompanyName',
align: 'left',
render: (_: any, record: any) => ({
children:
props: { rowSpan: record.isFirstElement ? rowSpan[record.enquiryNumber] : 0 },
}),
},
];
return (
<Table
columns={columns}
dataSource={flatten(data)}
rowKey={(record, index) =>
${record.enquiryNumber}_${index}
}loading={isFetchingInvoicedRecords}
pagination={false}
bordered
/>
);
};
What is expected?
it should allow
What is actually happening?
The text was updated successfully, but these errors were encountered: