table2文本对齐与列保持一致

This commit is contained in:
zhangtao07 2024-07-10 14:22:53 +08:00
parent d9bd618f18
commit 834a1a7435

View File

@ -905,6 +905,11 @@ export default class Table2 extends React.Component<Table2Props, object> {
titleSchema = {type: 'plain'};
}
if (column.align) {
titleSchema.align = column.align;
titleSchema.className = 'flex-1';
}
const titleRender = (children: any) => {
const content = this.renderCellSchema(titleSchema, titleProps);