样式优化整合
This commit is contained in:
@ -3,6 +3,7 @@ import { Button, Divider, message, Input, Drawer } from 'antd';
|
||||
import React, { useState, useRef } from 'react';
|
||||
import { PageContainer, FooterToolbar } from '@ant-design/pro-layout';
|
||||
import ProTable, { ProColumns, ActionType } from '@ant-design/pro-table';
|
||||
import tableProps from '@/utils/tableProps';
|
||||
import ProDescriptions from '@ant-design/pro-descriptions';
|
||||
import CreateForm from './components/CreateForm';
|
||||
import UpdateForm, { FormValueType } from './components/UpdateForm';
|
||||
@ -176,6 +177,7 @@ const TableList: React.FC<{}> = () => {
|
||||
rowSelection={{
|
||||
onChange: (_, selectedRows) => setSelectedRows(selectedRows),
|
||||
}}
|
||||
{...tableProps}
|
||||
/>
|
||||
{selectedRowsState?.length > 0 && (
|
||||
<FooterToolbar
|
||||
@ -214,6 +216,7 @@ const TableList: React.FC<{}> = () => {
|
||||
rowKey="key"
|
||||
type="form"
|
||||
columns={columns}
|
||||
{...tableProps}
|
||||
/>
|
||||
</CreateForm>
|
||||
{stepFormValues && Object.keys(stepFormValues).length ? (
|
||||
|
Reference in New Issue
Block a user