import React from 'react'; import { Table } from 'antd'; import type { TableColumnsType } from 'antd'; interface DataType { key: React.Key; name: string; age: number; address: string; } const columns: TableColumnsType = [ { title: 'Full Name', width: 100, dataIndex: 'name', fixed: 'left', }, { title: 'Age', width: 100, dataIndex: 'age', }, { title: 'Column 1', dataIndex: 'address', fixed: 'left' }, { title: 'Column 2', dataIndex: 'address' }, { title: 'Column 3', dataIndex: 'address' }, { title: 'Column 4', dataIndex: 'address' }, { title: 'Column 5', dataIndex: 'address' }, { title: 'Column 6', dataIndex: 'address' }, { title: 'Column 7', dataIndex: 'address' }, { title: 'Column 8', dataIndex: 'address' }, { title: 'Action 1', fixed: 'right', width: 90, render: () => action, }, { title: 'Action 2', width: 90, render: () => action, }, { title: 'Action 3', fixed: 'right', width: 90, render: () => action, }, ]; const data: DataType[] = [ { key: '1', name: 'John Brown', age: 32, address: 'New York Park', }, ]; const App: React.FC = () => ( ); export default App;