import { Button, Divider, Drawer, Form, Input, Modal, Popconfirm, Space, Table } from 'antd'; import { ColumnsType } from 'antd/lib/table'; import moment from 'moment'; import React, { useMemo, useState } from 'react'; import OpButton, { DelOpButton, EditOpButton } from '../../components/crud/OpButton'; import { DamItem } from '../../models/_/defs'; import { IContextProp } from './_'; const DataTable: React.FC<{ ctx: IContextProp }> = ({ ctx }) => { const { pager2, crud } = ctx; const columns = useMemo>(() => [ { title: '站名', key: '站名', dataIndex: '站名', width: 120, align: 'center' }, { title: '测站编码', key: '测站编码', dataIndex: '测站编码', width: 120, align: 'center' }, { title: '时间', key: '时间', dataIndex: '时间', width: 120, align: 'center' }, { title: '数据(mm)', key: '数据(mm)', dataIndex: '数据(mm)', width: 120, align: 'center' }, ], []); const [openIntroduction, setOpenIntroduction] = useState(false); const onCloseIntroduction = () => { setOpenIntroduction(false); }; const [form] = Form.useForm(); // 弹框 const [isModalOpen, setIsModalOpen] = useState(false); const showModal = () => { setIsModalOpen(true); }; const handleOk = () => { setIsModalOpen(false); }; const handleCancel = () => { setIsModalOpen(false); }; return ( <> row.大坝代码} {...pager2.tableProps} />
) } export default DataTable