- getTableColumns(fields): {
align?: "left" | "center" | "right";
className?: string;
colSpan?: number;
dataIndex?: string;
defaultSortOrder?: "ascend" | "descend" | string;
ellipsis?: boolean | any;
fixed?: "left" | "right" | false;
hidden?: boolean;
key?: string;
label?: string;
render?: ((text: any, record: any, index: number) => any);
search?: any;
showSearch?: boolean;
sorter?: any;
title?: string;
value?: string;
width?: number | string;
[key: string]: any;
}[] Parameters
- fields: {
align?: "center" | "left" | "right";
className?: string;
colSpan?: number;
dataIndex?: string;
defaultSortOrder?: string;
ellipsis?: any;
fixed?: false | "left" | "right";
hidden?: boolean;
key?: string;
label?: string;
render?: ((text: any, record: any, index: number) => any);
search?: any;
showSearch?: boolean;
sorter?: any;
title?: string;
value?: string;
width?: string | number;
[key: string]: any;
}[]
Returns {
align?: "left" | "center" | "right";
className?: string;
colSpan?: number;
dataIndex?: string;
defaultSortOrder?: "ascend" | "descend" | string;
ellipsis?: boolean | any;
fixed?: "left" | "right" | false;
hidden?: boolean;
key?: string;
label?: string;
render?: ((text: any, record: any, index: number) => any);
search?: any;
showSearch?: boolean;
sorter?: any;
title?: string;
value?: string;
width?: number | string;
[key: string]: any;
}[]
生成 table columns 数组