Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 66x | import React, { ReactElement } from "react";
import { Table } from "antd";
import { TableMetaProps } from "@props/RecordProps";
export interface TableChartComponentProps {
data?: string;
column: TableMetaProps;
}
export const TableChart: React.FC<TableChartComponentProps> = (props: TableChartComponentProps): ReactElement => {
const { data, column } = props;
const { columns } = column.extInfo?.chartInfo ?? {};
return <Table
pagination={false}
columns={columns}
// bordered
dataSource={JSON.parse(data ?? '[]')}
/>;
};
|