File tree 3 files changed +19
-10
lines changed
client/packages/lowcoder-comps
3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lowcoder-comps" ,
3
- "version" : " 2.4.14 " ,
3
+ "version" : " 2.4.15 " ,
4
4
"type" : " module" ,
5
5
"license" : " MIT" ,
6
6
"dependencies" : {
Original file line number Diff line number Diff line change @@ -105,6 +105,13 @@ if (DragEventHandlerControl) {
105
105
onDropEvent : DragEventHandlerControl ,
106
106
}
107
107
}
108
+ if ( EventModalStyle ) {
109
+ childrenMap = {
110
+ ...childrenMap ,
111
+ modalStyle : styleControl ( EventModalStyle ) ,
112
+ }
113
+ }
114
+
108
115
let CalendarBasicComp = ( function ( ) {
109
116
return new UICompBuilder ( childrenMap , ( props : {
110
117
events : any ;
@@ -795,9 +802,11 @@ let CalendarBasicComp = (function () {
795
802
{ children . style . getPropertyView ( ) }
796
803
</ Section >
797
804
< Section name = { sectionNames . animationStyle } hasTooltip = { true } > { children . animationStyle . getPropertyView ( ) } </ Section >
798
- < Section name = { sectionNames . modalStyle } >
799
- { children . modalStyle . getPropertyView ( ) }
800
- </ Section >
805
+ { Boolean ( children . modalStyle ) && (
806
+ < Section name = { sectionNames . modalStyle } >
807
+ { children . modalStyle . getPropertyView ( ) }
808
+ </ Section >
809
+ ) }
801
810
</ >
802
811
) ;
803
812
} )
Original file line number Diff line number Diff line change @@ -768,7 +768,7 @@ export const Event = styled.div<{
768
768
769
769
770
770
export const FormWrapper = styled ( Form ) < {
771
- $modalStyle : EventModalStyleType
771
+ $modalStyle ? : EventModalStyleType
772
772
} > `
773
773
.ant-form-item-label {
774
774
width: 125px;
@@ -789,11 +789,11 @@ export const FormWrapper = styled(Form)<{
789
789
790
790
// Setting style for input fields
791
791
.ant-input {
792
- background-color: ${ ( props ) => props . $modalStyle . labelBackground } ;
793
- border-color: ${ ( props ) => props . $modalStyle . border } ;
794
- border-width: ${ ( props ) => props . $modalStyle . borderWidth } ;
795
- border-style: ${ ( props ) => props . $modalStyle . borderStyle } ;
796
- color: ${ ( props ) => props . $modalStyle . text } ;
792
+ background-color: ${ ( props ) => props . $modalStyle ? .labelBackground } ;
793
+ border-color: ${ ( props ) => props . $modalStyle ? .border } ;
794
+ border-width: ${ ( props ) => props . $modalStyle ? .borderWidth } ;
795
+ border-style: ${ ( props ) => props . $modalStyle ? .borderStyle } ;
796
+ color: ${ ( props ) => props . $modalStyle ? .text } ;
797
797
}
798
798
799
799
` ;
You can’t perform that action at this time.
0 commit comments