import { PageContainer } from '@ant-design/pro-layout'; import BaseService from '@/utils/BaseService'; import type { ProtocolItem } from '@/pages/link/Protocol/typings'; import { useRef } from 'react'; import type { ActionType, ProColumns } from '@jetlinks/pro-table'; import { Tooltip } from 'antd'; import { ArrowDownOutlined, BarsOutlined, BugOutlined, EditOutlined, MinusOutlined, } from '@ant-design/icons'; import BaseCrud from '@/components/BaseCrud'; import { useIntl } from '@@/plugin-locale/localeExports'; export const service = new BaseService('protocol'); const Protocol = () => { const intl = useIntl(); const actionRef = useRef(); const columns: ProColumns[] = [ { dataIndex: 'index', valueType: 'indexBorder', width: 48, }, { dataIndex: 'name', title: intl.formatMessage({ id: 'pages.table.name', defaultMessage: '名称', }), }, { dataIndex: 'type', title: intl.formatMessage({ id: 'pages.link.type', defaultMessage: '类型', }), }, { dataIndex: 'provider', title: intl.formatMessage({ id: 'pages.table.provider', defaultMessage: '服务商', }), }, { title: intl.formatMessage({ id: 'pages.data.option', defaultMessage: '操作', }), valueType: 'option', align: 'center', width: 200, render: (text, record) => [ console.log(record)}> , , , , , ], }, ]; const schema = {}; return ( ); }; export default Protocol;