File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
client/packages/lowcoder/src/pages/editor/right Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,12 @@ import PropertyView from "./PropertyView";
4
4
import InsertView from "./InsertView" ;
5
5
import type UIComp from "comps/comps/uiComp" ;
6
6
import type { UiLayoutType } from "comps/comps/uiComp" ;
7
- import { useEffect , useState } from "react" ;
7
+ import { Suspense , useEffect , useState } from "react" ;
8
8
import { trans } from "i18n" ;
9
9
import { isAggregationApp } from "util/appUtils" ;
10
10
import React from "react" ;
11
11
import { MultiIconDisplay } from "@lowcoder-ee/comps/comps/multiIconDisplay" ;
12
+ import { Skeleton } from "antd" ;
12
13
13
14
type RightPanelProps = {
14
15
onTabChange : ( key : string ) => void ;
@@ -45,13 +46,15 @@ function RightPanel(props: RightPanelProps) {
45
46
46
47
return (
47
48
< RightPanelWrapper className = "cypress-right-content" >
48
- < Tabs
49
- onChange = { ( key ) => {
50
- onTabChange ( key ) ;
51
- } }
52
- tabsConfig = { tabConfigs }
53
- activeKey = { activeKey }
54
- />
49
+ < Suspense fallback = { < Skeleton > </ Skeleton > } >
50
+ < Tabs
51
+ onChange = { ( key ) => {
52
+ onTabChange ( key ) ;
53
+ } }
54
+ tabsConfig = { tabConfigs }
55
+ activeKey = { activeKey }
56
+ />
57
+ </ Suspense >
55
58
</ RightPanelWrapper >
56
59
) ;
57
60
}
You can’t perform that action at this time.
0 commit comments