import React from 'react'; import Tag from '../tag'; import { ApolloTable } from '.'; // import Table from '../table'; // export default { // title: 'ApolloTable', // component: ApolloTable, // }; export const 表格 = () => { const renderTable = (props?: any) => ( {label}, }, }, { title: 'id', dataIndex: 'id', filterType: 'input', // filterType: 'select', // valueEnum: [{ label: '1', value: '1' }], search: { shortcut: true, }, }, ]} tableAlertRender={() => ({ promotedBulkActions: [ { content: '导出', onClick: () => [] }, { content: '导入', onClick: () => [] }, ], })} rowSelection={{}} // title={() => '123'} dataSource={ [ // { id: 1, title: '123' }, // { id: 2, title: '333' }, ] } loading // showHeader={false} options={false} // summary={() => ( // // Total // 1234 // // )} // footer={() =>
123
} /> ); return (
{renderTable()} {/* {renderTable({ bordered: false })} */}
); };