@@ -47,6 +47,7 @@ import {
47
47
Tooltip ,
48
48
EditorContext ,
49
49
CompNameContext ,
50
+ AnimationStyle
50
51
} from 'lowcoder-sdk' ;
51
52
52
53
import {
@@ -92,6 +93,7 @@ let childrenMap: any = {
92
93
licenseKey : withDefault ( StringControl , "" ) ,
93
94
currentFreeView : dropdownControl ( DefaultWithFreeViewOptions , "timeGridWeek" ) ,
94
95
currentPremiumView : dropdownControl ( DefaultWithPremiumViewOptions , "resourceTimelineDay" ) ,
96
+ animationStyle : styleControl ( AnimationStyle , 'animationStyle' ) ,
95
97
} ;
96
98
// this should ensure backwards compatibility with older versions of the SDK
97
99
if ( DragEventHandlerControl ) {
@@ -121,9 +123,10 @@ let CalendarBasicComp = (function () {
121
123
licensed ?: boolean ;
122
124
currentFreeView ?: string ;
123
125
currentPremiumView ?: string ;
126
+ animationStyle :any ;
124
127
} , dispatch : any ) => {
125
128
126
- const comp = useContext ( EditorContext ) . getUICompByName (
129
+ const comp = useContext ( EditorContext ) ? .getUICompByName (
127
130
useContext ( CompNameContext )
128
131
) ;
129
132
const onEventVal = comp ?. toJsonValue ( ) ?. comp ?. onEvent ;
@@ -350,6 +353,12 @@ let CalendarBasicComp = (function () {
350
353
const eventId = editEvent . current ?. id ;
351
354
CustomModal . confirm ( {
352
355
title : modalTitle ,
356
+ style : {
357
+ animation : props . animationStyle ?. animation || "none" ,
358
+ animationDelay : props . animationStyle ?. animationDelay || "0s" ,
359
+ animationDuration : props . animationStyle ?. animationDuration || "0s" ,
360
+ animationIterationCount : props . animationStyle ?. animationIterationCount || "1" ,
361
+ } ,
353
362
content : (
354
363
< FormWrapper form = { form } >
355
364
< Form . Item
@@ -577,6 +586,7 @@ let CalendarBasicComp = (function () {
577
586
currentFreeView : { propertyView : ( arg0 : { label : string ; tooltip : string ; } ) => any ; } ;
578
587
currentPremiumView : { propertyView : ( arg0 : { label : string ; tooltip : string ; } ) => any ; } ;
579
588
style : { getPropertyView : ( ) => any ; } ;
589
+ animationStyle : { getPropertyView : ( ) => any ; } ;
580
590
licenseKey : { getView : ( ) => any ; propertyView : ( arg0 : { label : string ; } ) => any ; } ;
581
591
} ) => {
582
592
@@ -622,6 +632,7 @@ let CalendarBasicComp = (function () {
622
632
< Section name = { sectionNames . style } >
623
633
{ children . style . getPropertyView ( ) }
624
634
</ Section >
635
+ < Section name = { sectionNames . animationStyle } hasTooltip = { true } > { children . animationStyle . getPropertyView ( ) } </ Section >
625
636
</ >
626
637
) ;
627
638
} )
0 commit comments