import React from 'react'; import Table from './Table'; // export default { // title: 'Table', // component: Table as any, // }; export const 表格 = () => { const renderTable = (props: any) => ( '123'} locale={{ emptyText: '123', }} dataSource={ [ // { id: 1, title: '123' }, // { id: 2, title: '333' }, ] } // showHeader={false} // summary={() => ( // // Total // 1234 // // )} // scroll={{ x: 'max-content' }} // footer={() =>
123
} /> ); return (
{renderTable({ bordered: true })}
{renderTable({ scroll: { x: 'max-content' }, loading: false })}
); };