File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import { useMergeCompStyles } from "@lowcoder-ee/util/hooks";
38
38
export type NewChildren < ChildrenCompMap extends Record < string , Comp < unknown > > > =
39
39
ChildrenCompMap & {
40
40
hidden : InstanceType < typeof BoolCodeControl > ;
41
+ showDataLoadingIndicators : InstanceType < typeof BoolControl > ,
41
42
className : InstanceType < typeof StringControl > ;
42
43
dataTestId : InstanceType < typeof StringControl > ;
43
44
preventStyleOverwriting : InstanceType < typeof BoolControl > ;
@@ -78,7 +79,7 @@ export const ExtendedPropertyView = React.memo(<
78
79
const editorState = useContext ( EditorContext ) ;
79
80
const selectedComp = values ( editorState ?. selectedComps ( ) ) [ 0 ] ;
80
81
const compType = selectedComp ?. children ?. compType ?. getView ( ) as UICompType ;
81
-
82
+
82
83
useEffect ( ( ) => {
83
84
setCompName ( uiCompRegistry [ compType ] ?. compName || '' ) ;
84
85
} , [ compType ] ) ;
@@ -139,6 +140,7 @@ export function uiChildren<
139
140
return {
140
141
...childrenMap ,
141
142
hidden : BoolCodeControl ,
143
+ showDataLoadingIndicators : withDefault ( BoolControl , false ) ,
142
144
className : StringControl ,
143
145
dataTestId : StringControl ,
144
146
preventStyleOverwriting : withDefault ( BoolControl , false ) ,
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ export function isCompWithPropertyView<C extends Comp<any> = Comp<any>>(
16
16
return "propertyView" in comp && typeof ( comp as any ) [ "propertyView" ] === "function" ;
17
17
}
18
18
19
+ export const showDataLoadingIndicatorsPropertyView = (
20
+ children : { showDataLoadingIndicators : InstanceType < typeof BoolControl > }
21
+ ) =>
22
+ children . showDataLoadingIndicators . propertyView ( { label : trans ( "themeDetail.showDataLoadingIndicators" ) } ) ;
23
+
19
24
export const hiddenPropertyView = ( children : { hidden : InstanceType < typeof BoolCodeControl > } ) =>
20
25
children . hidden . propertyView ( { label : trans ( "prop.hide" ) } ) ;
21
26
Original file line number Diff line number Diff line change @@ -2706,7 +2706,8 @@ export const en = {
2706
2706
"gridColumnsDesc" : "Default number of columns typically used for most containers" ,
2707
2707
"loadingIndicators" : "Loading Indicators" ,
2708
2708
"showComponentLoadingIndicators" : "Show loading indicators when component load" ,
2709
- "showDataLoadingIndicators" : "Show loading indicators when data load" ,
2709
+ "showDataLoadingIndicators" : "Show indicators during data loading" ,
2710
+ "dataLoadingIndicator" : "Data loading indicator" ,
2710
2711
"background" : "Background Styles" ,
2711
2712
"gridSettings" : "Grid Settings" ,
2712
2713
"gridRowHeight" : "Grid Row Height" ,
You can’t perform that action at this time.
0 commit comments