import { TableProps } from 'antd';

export default {
  rowSelection: {
    hideSelectAll: true,
    type: 'radio',
  },
  expandable: {
    rowExpandable: record => record.message || record.children,
    expandedRowRender: record => record.message,
    // expandRowByClick: true,
    // expandIconColumnIndex: -1,
  },
  pagination: false,
  size: 'small',
} as TableProps<any>;

export type InsTableColumn = {
  title?: string;
  dataIndex: string;
  [key: string]: any;
};
