File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
viewer/packages/lowcoder/src/comps Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export function HidableView(props: {
44
44
</ >
45
45
) ;
46
46
}
47
- }
47
+ }
48
48
49
49
export function uiChildren <
50
50
ChildrenCompMap extends Record < string , Comp < unknown > > ,
@@ -87,6 +87,13 @@ export class UICompBuilder<
87
87
this . viewFn = viewFn ;
88
88
}
89
89
90
+ // TODO: Kagayaki - we need to check, how can we "remove" setPropertyViewFn - but keep the support for the component plugins (npmLoader) (remote-comp)
91
+ setPropertyViewFn (
92
+ propertyViewFn : any
93
+ ) {
94
+ return true ;
95
+ }
96
+
90
97
setExposeStateConfigs (
91
98
configs : ExposingConfig < ChildrenToComp < ChildrenCompMap > > [ ]
92
99
) {
Original file line number Diff line number Diff line change @@ -204,16 +204,20 @@ export function getCompContainer<T extends CompConstructor>(params: GetContainer
204
204
// 1ms
205
205
const reduceFn = wrapWithPromiseHandling ( ( act : CompAction ) => {
206
206
let action = act ;
207
- if ( reduceContext && reduceContext . readOnly && action . editDSL ) {
207
+
208
+ /* if (reduceContext && reduceContext.readOnly && action.editDSL) {
208
209
log.info("editDSL should be false in view mode, action: ", action);
209
- action = { ...action , editDSL : false } ;
210
- }
210
+ // action = { ...action, editDSL: false };
211
+ } */
211
212
212
213
// console.info("~~ action: ", action);
213
214
tmpComp = reduceContext
214
215
? reduceInContext ( reduceContext , ( ) => tmpComp . reduce ( action ) )
215
216
: tmpComp . reduce ( action ) ;
216
- actions . push ( action ) ;
217
+
218
+ if ( reduceContext && ! reduceContext . readOnly && ! action . editDSL ) {
219
+ actions . push ( action ) ;
220
+ }
217
221
218
222
// record the time of the first calm down
219
223
if ( ! this . appCalmDowned ) {
You can’t perform that action at this time.
0 commit comments