Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1cdbf34

Browse files
fixed default value for form comps inside listview doesn't reflect on changing dyanmic data
1 parent54e1b50 commit1cdbf34

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

‎client/packages/lowcoder/src/comps/generators/withMultiContext.tsx‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,14 @@ export function withMultiContext<TCtor extends MultiCompConstructor>(VariantComp
124124
constmapComps=this.getMap();
125125
if(mapComps.hasOwnProperty(key)&&!paramsEqual(params,mapComps[key].getParams())){
126126
// refresh the item, since params changed
127-
this.dispatch(deferAction(wrapChildAction(MAP_KEY,MapCtor.batchDeleteAction([key]))));
127+
// this.dispatch(deferAction(wrapChildAction(MAP_KEY, MapCtor.batchDeleteAction([key]))));
128+
this.dispatch(wrapChildAction(MAP_KEY,MapCtor.batchDeleteAction([key])));
129+
comp=this.getOriginalComp();
130+
}else{
131+
comp=this.getOriginalComp()
132+
.setParams(params)
133+
.changeDispatch(wrapDispatch(wrapDispatch(this.dispatch,MAP_KEY),key));
128134
}
129-
comp=this.getOriginalComp()
130-
.setParams(params)
131-
.changeDispatch(wrapDispatch(wrapDispatch(this.dispatch,MAP_KEY),key));
132135
}
133136
returncomp;
134137
}

‎client/packages/lowcoder/src/comps/utils/supademoDisplay.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const SupaDemoDisplay = ({ url, modalWidth = '75%', modalTop = '6%', showText =
3535
style={{top:modalTop}}
3636
okButtonProps={{style:{display:'none'}}}
3737
cancelButtonProps={{style:{display:'none'}}}
38-
bodyStyle={{padding:0}}
38+
styles={{body:{padding:0}}}
3939
>
4040
<divstyle={{position:'relative',boxSizing:'content-box',maxHeight:'80vh',width:'100%',aspectRatio:'1.7712177121771218',padding:'40px 0'}}>
4141
<iframe

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp