Commit 9c3225d1 authored by 陈帅's avatar 陈帅

add GridContent

parent 34418ae2
...@@ -8,6 +8,7 @@ import PageLoading from './components/PageLoading'; ...@@ -8,6 +8,7 @@ import PageLoading from './components/PageLoading';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { IAnalysisData } from './data.d'; import { IAnalysisData } from './data.d';
import { RadioChangeEvent } from 'antd/lib/radio'; import { RadioChangeEvent } from 'antd/lib/radio';
import { GridContent } from '@ant-design/pro-layout';
const IntroduceRow = React.lazy(() => import('./components/IntroduceRow')); const IntroduceRow = React.lazy(() => import('./components/IntroduceRow'));
const SalesCard = React.lazy(() => import('./components/SalesCard')); const SalesCard = React.lazy(() => import('./components/SalesCard'));
...@@ -156,6 +157,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ...@@ -156,6 +157,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
const activeKey = currentTabKey || (offlineData[0] && offlineData[0].name); const activeKey = currentTabKey || (offlineData[0] && offlineData[0].name);
return ( return (
<GridContent>
<React.Fragment> <React.Fragment>
<Suspense fallback={<PageLoading />}> <Suspense fallback={<PageLoading />}>
<IntroduceRow loading={loading} visitData={visitData} /> <IntroduceRow loading={loading} visitData={visitData} />
...@@ -203,6 +205,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ...@@ -203,6 +205,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
/> />
</Suspense> </Suspense>
</React.Fragment> </React.Fragment>
</GridContent>
); );
} }
} }
......
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