|
|
@@ -4,7 +4,7 @@ import React, { useState, useRef } from 'react';
|
|
|
import { useIntl, FormattedMessage } from 'umi';
|
|
|
import { PageContainer, FooterToolbar } from '@ant-design/pro-layout';
|
|
|
import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table';
|
|
|
-import ProDescriptions from '@ant-design/pro-descriptions';
|
|
|
+import ProDescriptions, { ProDescriptionsItemProps } from '@ant-design/pro-descriptions';
|
|
|
import CreateForm from './components/CreateForm';
|
|
|
import UpdateForm, { FormValueType } from './components/UpdateForm';
|
|
|
import { TableListItem } from './data.d';
|
|
|
@@ -214,7 +214,7 @@ const TableList: React.FC<{}> = () => {
|
|
|
labelWidth: 120,
|
|
|
}}
|
|
|
toolBarRender={() => [
|
|
|
- <Button type="primary" onClick={() => handleModalVisible(true)}>
|
|
|
+ <Button type="primary" key="primary" onClick={() => handleModalVisible(true)}>
|
|
|
<PlusOutlined /> <FormattedMessage id="pages.searchTable.new" defaultMessage="新建" />
|
|
|
</Button>,
|
|
|
]}
|
|
|
@@ -312,7 +312,7 @@ const TableList: React.FC<{}> = () => {
|
|
|
params={{
|
|
|
id: row?.name,
|
|
|
}}
|
|
|
- columns={columns}
|
|
|
+ columns={columns as ProDescriptionsItemProps<TableListItem>[]}
|
|
|
/>
|
|
|
)}
|
|
|
</Drawer>
|