File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed
client/packages/lowcoder/src/pages/editor Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 1
1
import Header from "pages/common/header" ;
2
- import React from "react" ;
2
+ import React , { lazy } from "react" ;
3
3
import {
4
4
Body ,
5
5
EditorContainer ,
6
6
Height100Div ,
7
- LeftPanel ,
8
- MiddlePanel ,
9
7
} from "pages/common/styledComponent" ;
10
8
import { getPanelStatus , getEditorModeStatus , getPanelStyle } from "util/localStorageUtil" ;
11
- import { BottomSkeleton } from "pages/editor/bottom/BottomContent" ;
12
- import RightPanel from "pages/editor/right/RightPanel" ;
9
+ // import { BottomSkeleton } from "pages/editor/bottom/BottomContent";
10
+ // import RightPanel from "pages/editor/right/RightPanel";
13
11
import _ from "lodash" ;
12
+
14
13
import styled from "styled-components" ;
15
14
import { default as Skeleton } from "antd/es/skeleton" ;
16
15
import { default as Spin } from "antd/es/spin" ;
17
16
import { useTemplateViewMode , useUserViewMode } from "util/hooks" ;
18
17
import { ProductLoading } from "components/ProductLoading" ;
19
18
import { default as LoadingOutlined } from "@ant-design/icons/LoadingOutlined" ;
20
19
20
+ const BottomSkeleton = lazy ( ( ) => import ( "pages/editor/bottom/BottomContent" ) . then ( module => ( { default : module . BottomSkeleton } ) ) ) ;
21
+ const RightPanel = lazy ( ( ) => import ( 'pages/editor/right/RightPanel' ) ) ;
22
+ const LeftPanel = lazy ( ( ) => import ( "pages/common/styledComponent" ) . then ( module => ( { default : module . LeftPanel } ) ) ) ;
23
+ const MiddlePanel = lazy ( ( ) => import ( "pages/common/styledComponent" ) . then ( module => ( { default : module . MiddlePanel } ) ) ) ;
24
+
21
25
const StyledSkeleton = styled ( Skeleton ) `
22
26
padding: 16px;
23
27
` ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
ScrollBar ,
18
18
} from "lowcoder-design" ;
19
19
import { useTemplateViewMode } from "util/hooks" ;
20
- import Header , {
20
+ import {
21
21
type PanelStatus ,
22
22
type TogglePanel ,
23
23
type EditorModeStatus ,
@@ -55,7 +55,17 @@ import { isAggregationApp } from "util/appUtils";
55
55
import EditorSkeletonView from "./editorSkeletonView" ;
56
56
import { getCommonSettings } from "@lowcoder-ee/redux/selectors/commonSettingSelectors" ;
57
57
import { isEqual , noop } from "lodash" ;
58
- import { BottomSkeleton } from "./bottom/BottomContent" ;
58
+ // import { BottomSkeleton } from "./bottom/BottomContent";
59
+
60
+ const Header = lazy (
61
+ ( ) => import ( "pages/common/header" )
62
+ . then ( module => ( { default : module . default } ) )
63
+ ) ;
64
+
65
+ const BottomSkeleton = lazy (
66
+ ( ) => import ( "pages/editor/bottom/BottomContent" )
67
+ . then ( module => ( { default : module . BottomSkeleton } ) )
68
+ ) ;
59
69
60
70
const LeftContent = lazy (
61
71
( ) => import ( './LeftContent' )
You can’t perform that action at this time.
0 commit comments