|
@@ -14,7 +14,7 @@ import { PageContainer } from '@ant-design/pro-layout'
|
|
|
import type { SchemaBaseModelState } from '@/pages/Schema/Base/model'
|
|
|
import { BaseMenuEnum } from '@/pages/Schema/Base'
|
|
|
import { generateColumns } from '@/utils/util'
|
|
|
-import DetailModal from './components/DetailModal'
|
|
|
+import Detail from './components/Detail'
|
|
|
import AnimateContent from '@/components/AnimateContent'
|
|
|
|
|
|
type ListProps = ConnectProps & {
|
|
@@ -198,7 +198,9 @@ const List: React.FC<ListProps> = ({ schema, dispatch, pTypeList }) => {
|
|
|
<AnimateContent
|
|
|
visible={state.visible}
|
|
|
onVisibleChange={visible => setState({ ...state, visible })}>
|
|
|
- <DetailModal
|
|
|
+ <Detail
|
|
|
+ visible={state.visible}
|
|
|
+ onVisibleChange={visible => setState({ ...state, visible })}
|
|
|
defaultFormData={state.defaultFormData}
|
|
|
pTypeList={pTypeList}
|
|
|
readOnly={state.readOnly}
|