import { SearchBarPlugin, SearchBottonsCardPlugin } from '@/components/SearchBarPlugin'; import { PageContainer } from '@ant-design/pro-components'; import { Button, Col, Form, Input, Pagination, Row, Select, Table } from 'antd'; import React, { useState } from 'react'; import { ChatBar, ChatTime } from './ChatBar'; interface DataType { key: React.Key; firstName: string; lastName: string; age: number; address: string; tags: string[]; } const ChatLogs: React.FC = () => { const [param, setParam] = useState({ curr_page: 1, page_count: 20, }); const data: DataType[] = [ { key: '1', firstName: 'John', lastName: 'Brown', age: 32, address: 'New York No. 1 Lake Park', tags: ['nice', 'developer'], }, { key: '2', firstName: 'Jim', lastName: 'Green', age: 42, address: 'London No. 1 Lake Park', tags: ['loser'], }, { key: '3', firstName: 'Joe', lastName: 'Black', age: 32, address: 'Sydney No. 1 Lake Park', tags: ['cool', 'teacher'], }, ]; // const { notification } = App.useApp(); return (
{ param.page_count = size; setParam({ ...param }); }} showTotal={(total, range) => { return 共{total}条; }} onChange={(page, pageSize) => { param.curr_page = page; setParam({ ...param }); }} />
); }; export default ChatLogs;