File tree Expand file tree Collapse file tree 4 files changed +22
-11
lines changed Expand file tree Collapse file tree 4 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ export default () => {
40
40
41
41
< Trigger
42
42
arrow
43
- // forceRender
44
- // action="click"
45
43
popupVisible = { open }
46
44
onPopupVisibleChange = { ( next ) => {
47
45
console . log ( 'Visible Change:' , next ) ;
48
46
setOpen ( next ) ;
49
47
} }
50
- popupTransitionName = "rc-trigger-popup-zoom"
48
+ popupMotion = { {
49
+ motionName : 'rc-trigger-popup-zoom' ,
50
+ } }
51
51
popup = {
52
52
< div
53
53
style = { {
@@ -104,7 +104,9 @@ export default () => {
104
104
console . log ( 'Visible Change:' , next ) ;
105
105
setOpen1 ( next ) ;
106
106
} }
107
- popupTransitionName = "rc-trigger-popup-zoom"
107
+ popupMotion = { {
108
+ motionName : 'rc-trigger-popup-zoom' ,
109
+ } }
108
110
popup = {
109
111
< div
110
112
style = { {
@@ -158,7 +160,9 @@ export default () => {
158
160
console . log ( 'Visible Change:' , next ) ;
159
161
setOpen2 ( next ) ;
160
162
} }
161
- popupTransitionName = "rc-trigger-popup-zoom"
163
+ popupMotion = { {
164
+ motionName : 'rc-trigger-popup-zoom' ,
165
+ } }
162
166
popup = {
163
167
< div
164
168
style = { {
@@ -205,7 +209,9 @@ export default () => {
205
209
console . log ( 'Visible Change:' , next ) ;
206
210
setOpen3 ( next ) ;
207
211
} }
208
- popupTransitionName = "rc-trigger-popup-zoom"
212
+ popupMotion = { {
213
+ motionName : 'rc-trigger-popup-zoom' ,
214
+ } }
209
215
popup = {
210
216
< div
211
217
style = { {
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ const Demo = () => {
202
202
} ,
203
203
} }
204
204
popupPlacement = { placement }
205
- destroyPopupOnHide = { destroyPopupOnHide }
205
+ autoDestroy = { destroyPopupOnHide }
206
206
mask = { mask }
207
207
maskMotion = { motion ? MaskMotion : null }
208
208
maskClosable = { maskClosable }
Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ export default () => {
160
160
Popup
161
161
</ div >
162
162
}
163
- popupTransitionName = "rc-trigger-popup-zoom"
163
+ popupMotion = { {
164
+ motionName : 'rc-trigger-popup-zoom' ,
165
+ } }
164
166
popupStyle = { { boxShadow : '0 0 5px red' } }
165
167
popupVisible = { visible }
166
168
onPopupVisibleChange = { ( nextVisible ) => {
Original file line number Diff line number Diff line change @@ -353,13 +353,14 @@ class Test extends React.Component<any, TestState> {
353
353
getPopupContainer = { getPopupContainer }
354
354
popupAlign = { this . getPopupAlign ( ) }
355
355
popupPlacement = { state . placement }
356
- destroyPopupOnHide = { this . state . destroyPopupOnHide }
357
356
autoDestroy = { this . state . autoDestroy }
358
357
// zIndex={40}
359
358
mask = { this . state . mask }
360
359
maskClosable = { this . state . maskClosable }
361
360
stretch = { this . state . stretch }
362
- maskAnimation = "fade"
361
+ maskMotion = { {
362
+ motionName : 'rc-trigger-mask-fade' ,
363
+ } }
363
364
// mouseEnterDelay={0.1}
364
365
// mouseLeaveDelay={0.1}
365
366
action = { actions }
@@ -372,7 +373,9 @@ class Test extends React.Component<any, TestState> {
372
373
boxSizing : 'border-box' ,
373
374
} }
374
375
popup = { < div > i am a popup</ div > }
375
- popupTransitionName = { state . transitionName }
376
+ popupMotion = { {
377
+ motionName : state . transitionName ,
378
+ } }
376
379
>
377
380
< RefTarget />
378
381
</ Trigger >
You can’t perform that action at this time.
0 commit comments