Lind 3 лет назад
Родитель
Сommit
a9f57d2c9d

+ 11 - 0
src/global.less

@@ -34,6 +34,7 @@ ul,
 ol {
   list-style: none;
 }
+
 // 菜单图标
 .ant-pro-menu-item {
   display: flex;
@@ -98,3 +99,13 @@ ol {
 .ant-formily-item-colon {
   display: none;
 }
+
+.ant-page-header-heading {
+  display: none;
+}
+
+.page-title-show {
+  .ant-page-header-heading {
+    display: flex;
+  }
+}

+ 1 - 1
src/pages/device/Category/Save/index.tsx

@@ -142,7 +142,7 @@ const Save = (props: Props) => {
       onCancel={() => props.close()}
       onOk={save}
     >
-      <Form form={form} labelCol={5} wrapperCol={16}>
+      <Form layout={'vertical'} form={form}>
         <SchemaField schema={schema} />
       </Form>
     </Modal>

+ 1 - 0
src/pages/device/Instance/Detail/index.tsx

@@ -173,6 +173,7 @@ const InstanceDetail = observer(() => {
 
   return (
     <PageContainer
+      className={'page-title-show'}
       onBack={history.goBack}
       onTabChange={setTab}
       tabList={list}

+ 1 - 0
src/pages/device/Product/Detail/index.tsx

@@ -150,6 +150,7 @@ const ProductDetail = observer(() => {
 
   return (
     <PageContainer
+      className={'page-title-show'}
       onBack={() => history.goBack()}
       extraContent={<Space size={24} />}
       content={

+ 1 - 1
src/pages/link/AccessConfig/Detail/index.tsx

@@ -14,7 +14,7 @@ const Detail = () => {
   const [data, setData] = useState<any>({});
 
   return (
-    <PageContainer>
+    <PageContainer className={'page-title-show'}>
       {visible ? (
         <Provider
           change={(param: any) => {

+ 1 - 1
src/pages/notice/Config/index.tsx

@@ -290,7 +290,7 @@ const Config = observer(() => {
     });
 
   return (
-    <PageContainer>
+    <PageContainer className={'page-title-show'}>
       <BaseCrud
         columns={columns}
         service={service}

+ 1 - 1
src/pages/notice/Template/index.tsx

@@ -604,7 +604,7 @@ const Template = () => {
 
   const [param, setParam] = useState({});
   return (
-    <PageContainer>
+    <PageContainer className={'page-title-show'}>
       <SearchComponent
         field={columns}
         onSearch={(data) => {

+ 1 - 0
src/pages/system/Menu/Detail/index.tsx

@@ -47,6 +47,7 @@ export default () => {
 
   return (
     <PageContainer
+      className={'page-title-show'}
       tabList={[
         {
           tab: intl.formatMessage({

+ 6 - 1
src/pages/system/Role/Detail/index.tsx

@@ -30,7 +30,12 @@ const RoleEdit = observer(() => {
   ];
 
   return (
-    <PageContainer onBack={history.goBack} tabList={list} onTabChange={setTab}>
+    <PageContainer
+      className={'page-title-show'}
+      onBack={history.goBack}
+      tabList={list}
+      onTabChange={setTab}
+    >
       {list.find((k) => k.key === tab)?.component}
     </PageContainer>
   );