diff --git a/frontend/src/components/ui/page-container.tsx b/frontend/src/components/ui/page-container.tsx new file mode 100644 index 00000000..6ea2a136 --- /dev/null +++ b/frontend/src/components/ui/page-container.tsx @@ -0,0 +1,27 @@ +import React from "react"; +import { cn } from "@/lib/utils"; + +interface PageContainerProps extends React.HTMLAttributes { + children: React.ReactNode; +} + +const PageContainer = React.forwardRef( + ({ className, children, ...props }, ref) => { + return ( +
+ {children} +
+ ); + } +); + +PageContainer.displayName = "PageContainer"; + +export { PageContainer }; \ No newline at end of file diff --git a/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx b/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx index c1d60cc5..366385f1 100644 --- a/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx +++ b/frontend/src/pages/Deploy/ProjectGroup/List/index.tsx @@ -1,5 +1,5 @@ import React, {useState} from 'react'; -import {PageContainer} from '@ant-design/pro-layout'; +import {PageContainer} from '@/components/ui/page-container'; import { PlusOutlined, EditOutlined, @@ -269,77 +269,61 @@ const ProjectGroupList: React.FC = () => { return ( - - - 搜索条件 - - -
- - ( - - 项目组编码 - - - - - )} - /> +
+

项目组管理

+ +
- ( - - 项目组名称 - - - - - )} - /> - - ( - - 项目组类型 - - - )} - /> - - - - - -
+ +
+
+ form.setValue('projectGroupCode', e.target.value)} + className="max-w-[200px]" + /> + form.setValue('projectGroupName', e.target.value)} + className="max-w-[200px]" + /> + + + + +
+