Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36704c6

Browse files
committed
remote npm comp load fix
1 parent 24ef259 commit 36704c6

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

viewer/packages/lowcoder/src/comps/comps/containerBase/containerCompBuilder.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ export class ContainerCompBuilder<
4040
this.childrenMap = childrenMap;
4141
this.viewFn = viewFn;
4242
}
43+
setPropertyViewFn(
44+
propertyViewFn: any
45+
) {
46+
return this;
47+
}
4348
build() {
4449
if (this.childrenMap.hasOwnProperty("container")) {
4550
throw new Error("already has container");

viewer/packages/lowcoder/src/comps/generators/multi.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ export class MultiCompBuilder<ViewReturn, ChildrenCompMap extends Record<string,
8080
this.viewFn = viewFn;
8181
}
8282

83+
setPropertyViewFn(
84+
propertyViewFn: any
85+
) {
86+
return this;
87+
}
88+
8389
build() {
8490
const builder = this;
8591

viewer/packages/lowcoder/src/comps/generators/uiCompBuilder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class UICompBuilder<
9191
setPropertyViewFn(
9292
propertyViewFn: any
9393
) {
94-
return true;
94+
return this;
9595
}
9696

9797
setExposeStateConfigs(

0 commit comments

Comments
 (0)