File tree Expand file tree Collapse file tree 2 files changed +22
-14
lines changed
client/packages/lowcoder/src/comps Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ const InputStyle = styled(Input)<{ $style: InputLikeStyleType }>`
63
63
${ getStyle ( props . $style ) }
64
64
input {
65
65
padding : ${ props . style ?. padding } ;
66
- rotate : ${ props ?. $style ?. rotation } ;
67
66
}
68
67
.ant-select-single {
69
68
width : 100% !important ;
Original file line number Diff line number Diff line change @@ -221,14 +221,14 @@ function UIView(props: {
221
221
const comp = props . comp ;
222
222
const childrenProps = childrenToProps ( comp . children ) ;
223
223
const parentDisabled = useContext ( DisabledContext ) ;
224
- const disabled = childrenProps [ " disabled" ] ;
225
- if ( disabled !== undefined && typeof disabled === " boolean" ) {
226
- childrenProps [ " disabled" ] = disabled || parentDisabled ;
224
+ const disabled = childrenProps [ ' disabled' ] ;
225
+ if ( disabled !== undefined && typeof disabled === ' boolean' ) {
226
+ childrenProps [ ' disabled' ] = disabled || parentDisabled ;
227
227
}
228
228
229
229
//ADDED BY FRED
230
230
if ( childrenProps . events ) {
231
- const events = childrenProps . events as { value ?: any [ ] } ;
231
+ const events = childrenProps . events as { value ?: any [ ] } ;
232
232
if ( ! events . value || events . value . length === 0 ) {
233
233
events . value = [ ] ;
234
234
}
@@ -246,22 +246,31 @@ function UIView(props: {
246
246
) ;
247
247
}
248
248
249
+ let defaultChildren = comp . children ;
250
+ const isNotContainer = defaultChildren . hasOwnProperty ( 'style' ) ;
251
+ let rotationVal = null
252
+ if ( isNotContainer ) {
253
+ rotationVal = defaultChildren . style . children . rotation . valueAndMsg . value ;
254
+ }
249
255
return (
250
256
< div
251
257
ref = { props . innerRef }
252
258
className = { childrenProps . className as string }
253
259
data-testid = { childrenProps . dataTestId as string }
254
260
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
+ >
260
272
< HidableView hidden = { childrenProps . hidden as boolean } >
261
- { props . viewFn (
262
- childrenProps ,
263
- comp . dispatch
264
- ) }
273
+ { props . viewFn ( childrenProps , comp . dispatch ) }
265
274
</ HidableView >
266
275
</ div >
267
276
) ;
You can’t perform that action at this time.
0 commit comments