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

Commit38311f7

Browse files
committed
container padding updated
1 parent47300c1 commit38311f7

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

‎client/packages/lowcoder/src/comps/comps/autoCompleteComp/autoCompleteComp.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const InputStyle = styled(Input)<{ $style: InputLikeStyleType }>`
6363
${getStyle(props.$style)}
6464
input {
6565
padding:${props.style?.padding};
66-
rotate:${props?.$style?.rotation};
6766
}
6867
.ant-select-single {
6968
width:100%!important;

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

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,14 @@ function UIView(props: {
221221
constcomp=props.comp;
222222
constchildrenProps=childrenToProps(comp.children);
223223
constparentDisabled=useContext(DisabledContext);
224-
constdisabled=childrenProps["disabled"];
225-
if(disabled!==undefined&&typeofdisabled==="boolean"){
226-
childrenProps["disabled"]=disabled||parentDisabled;
224+
constdisabled=childrenProps['disabled'];
225+
if(disabled!==undefined&&typeofdisabled==='boolean'){
226+
childrenProps['disabled']=disabled||parentDisabled;
227227
}
228228

229229
//ADDED BY FRED
230230
if(childrenProps.events){
231-
constevents=childrenProps.eventsas{value?:any[]};
231+
constevents=childrenProps.eventsas{value?:any[]};
232232
if(!events.value||events.value.length===0){
233233
events.value=[];
234234
}
@@ -246,22 +246,31 @@ function UIView(props: {
246246
);
247247
}
248248

249+
letdefaultChildren=comp.children;
250+
constisNotContainer=defaultChildren.hasOwnProperty('style');
251+
letrotationVal=null
252+
if(isNotContainer){
253+
rotationVal=defaultChildren.style.children.rotation.valueAndMsg.value;
254+
}
249255
return(
250256
<div
251257
ref={props.innerRef}
252258
className={childrenProps.classNameasstring}
253259
data-testid={childrenProps.dataTestIdasstring}
254260
style={{
255-
width:"100%",
256-
height:"100%",
257-
margin:"0px",
258-
padding:"0px",
259-
}}>
261+
width:'100%',
262+
height:'100%',
263+
margin:'0px',
264+
padding:
265+
rotationVal===null
266+
?'0px'
267+
:rotationVal===''||rotationVal==='0deg'
268+
?'0px'
269+
:'50% 0px',
270+
}}
271+
>
260272
<HidableViewhidden={childrenProps.hiddenasboolean}>
261-
{props.viewFn(
262-
childrenProps,
263-
comp.dispatch
264-
)}
273+
{props.viewFn(childrenProps,comp.dispatch)}
265274
</HidableView>
266275
</div>
267276
);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp