Commit 42bc3ca8 authored by 张烨's avatar 张烨

perf: 去掉pageContainer的大title

parent c7af9ddd
import { isDev } from '@/utils/tools'; import { isDev } from '@/utils/tools';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import { Tabs } from 'antd'; import { Tabs } from 'antd';
import React from 'react'; import React from 'react';
import styles from './index.less'; import styles from './index.less';
...@@ -36,6 +36,7 @@ const FrameContainer = props => { ...@@ -36,6 +36,7 @@ const FrameContainer = props => {
return ( return (
<PageContainer <PageContainer
className={styles.container} className={styles.container}
title={false}
style={{ style={{
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
......
import { PageContainer } from '@ant-design/pro-layout';
import React from 'react';
const BasePageContainer = props => {
const { children, ...rest } = props;
return (
<PageContainer {...rest} title={false}>
{children}
</PageContainer>
);
};
export default BasePageContainer;
import React from 'react'; import React from 'react';
import { Alert, Card, Typography } from 'antd'; import { Alert, Card, Typography } from 'antd';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import styles from './Welcome.less'; import styles from './Welcome.less';
......
import React from 'react'; import React from 'react';
import { Tabs, Card } from 'antd'; import { Tabs, Card } from 'antd';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import SevenParams from './SevenParams'; import SevenParams from './SevenParams';
import AppMenu from './AppMenu'; import AppMenu from './AppMenu';
......
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Select, Card, Row, Col, Button, Spin, notification } from 'antd'; import { Select, Card, Row, Col, Button, Spin, notification } from 'antd';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import { getSolutionList, changeSolution } from '@/services/database/api'; import { getSolutionList, changeSolution } from '@/services/database/api';
import styles from './CurrentSolution.less'; import styles from './CurrentSolution.less';
const { Option } = Select; const { Option } = Select;
......
...@@ -14,7 +14,7 @@ import { ...@@ -14,7 +14,7 @@ import {
Popconfirm, Popconfirm,
Spin, Spin,
} from 'antd'; } from 'antd';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { get, post } from '../../services'; import { get, post } from '../../services';
import { import {
......
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
Popconfirm, Popconfirm,
notification, notification,
} from 'antd'; } from 'antd';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import { get } from '../../services'; import { get } from '../../services';
import styles from './ManagementDataBase.less'; import styles from './ManagementDataBase.less';
import { updateDateBase } from '@/services/database/api'; import { updateDateBase } from '@/services/database/api';
......
import React, { useState } from 'react'; import React, { useState } from 'react';
import { Card, Tabs } from 'antd'; import { Card, Tabs } from 'antd';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import SQLServerTable from './sqlServer/SQLServerTable'; import SQLServerTable from './sqlServer/SQLServerTable';
import OracleTable from './oracle/OracleTable'; import OracleTable from './oracle/OracleTable';
import MongDBTable from './mongDB/MongDBTable'; import MongDBTable from './mongDB/MongDBTable';
......
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Card, Tabs } from 'antd'; import { Card, Tabs } from 'antd';
import ProCard from '@ant-design/pro-card'; import ProCard from '@ant-design/pro-card';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import { miniAppSiteTree } from '@/services/mobileConfig/api'; import { miniAppSiteTree } from '@/services/mobileConfig/api';
import SiteConfig from './SiteConfig'; import SiteConfig from './SiteConfig';
import MenuConfig from './menuconfig/MenuConfig'; import MenuConfig from './menuconfig/MenuConfig';
......
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Card, TreeSelect, Space, Button, Table, Input, Row, Col } from 'antd'; import { Card, TreeSelect, Space, Button, Table, Input, Row, Col } from 'antd';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import TestModal from './ModalComponent'; import TestModal from './ModalComponent';
import ListCard from './ListCard'; import ListCard from './ListCard';
......
...@@ -4,7 +4,7 @@ import { ...@@ -4,7 +4,7 @@ import {
Input, Input,
Button Button
} from 'antd'; } from 'antd';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import ProTable from '@ant-design/pro-table'; import ProTable from '@ant-design/pro-table';
import { get, post } from '../../services'; import { get, post } from '../../services';
......
...@@ -30,7 +30,7 @@ import { ...@@ -30,7 +30,7 @@ import {
FolderOpenOutlined, FolderOpenOutlined,
FileOutlined, FileOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
// import classnames from 'classnames'; // import classnames from 'classnames';
// import { get } from '../../services'; // import { get } from '../../services';
import styles from './UserManage.less'; import styles from './UserManage.less';
......
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { PageContainer } from '@ant-design/pro-layout'; import PageContainer from '@/components/BasePageContainer';
import { Tabs } from 'antd'; import { Tabs } from 'antd';
import { getWebModuleTree } from '@/services/webConfig/api'; import { getWebModuleTree } from '@/services/webConfig/api';
import styles from './index.less'; import styles from './index.less';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment