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 () => {
4040
4141 < Trigger
4242 arrow
43- // forceRender
44- // action="click"
4543 popupVisible = { open }
4644 onPopupVisibleChange = { ( next ) => {
4745 console . log ( 'Visible Change:' , next ) ;
4846 setOpen ( next ) ;
4947 } }
50- popupTransitionName = "rc-trigger-popup-zoom"
48+ popupMotion = { {
49+ motionName : 'rc-trigger-popup-zoom' ,
50+ } }
5151 popup = {
5252 < div
5353 style = { {
@@ -104,7 +104,9 @@ export default () => {
104104 console . log ( 'Visible Change:' , next ) ;
105105 setOpen1 ( next ) ;
106106 } }
107- popupTransitionName = "rc-trigger-popup-zoom"
107+ popupMotion = { {
108+ motionName : 'rc-trigger-popup-zoom' ,
109+ } }
108110 popup = {
109111 < div
110112 style = { {
@@ -158,7 +160,9 @@ export default () => {
158160 console . log ( 'Visible Change:' , next ) ;
159161 setOpen2 ( next ) ;
160162 } }
161- popupTransitionName = "rc-trigger-popup-zoom"
163+ popupMotion = { {
164+ motionName : 'rc-trigger-popup-zoom' ,
165+ } }
162166 popup = {
163167 < div
164168 style = { {
@@ -205,7 +209,9 @@ export default () => {
205209 console . log ( 'Visible Change:' , next ) ;
206210 setOpen3 ( next ) ;
207211 } }
208- popupTransitionName = "rc-trigger-popup-zoom"
212+ popupMotion = { {
213+ motionName : 'rc-trigger-popup-zoom' ,
214+ } }
209215 popup = {
210216 < div
211217 style = { {
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ const Demo = () => {
202202 } ,
203203 } }
204204 popupPlacement = { placement }
205- destroyPopupOnHide = { destroyPopupOnHide }
205+ autoDestroy = { destroyPopupOnHide }
206206 mask = { mask }
207207 maskMotion = { motion ? MaskMotion : null }
208208 maskClosable = { maskClosable }
Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ export default () => {
160160 Popup
161161 </ div >
162162 }
163- popupTransitionName = "rc-trigger-popup-zoom"
163+ popupMotion = { {
164+ motionName : 'rc-trigger-popup-zoom' ,
165+ } }
164166 popupStyle = { { boxShadow : '0 0 5px red' } }
165167 popupVisible = { visible }
166168 onPopupVisibleChange = { ( nextVisible ) => {
Original file line number Diff line number Diff line change @@ -353,13 +353,14 @@ class Test extends React.Component<any, TestState> {
353353 getPopupContainer = { getPopupContainer }
354354 popupAlign = { this . getPopupAlign ( ) }
355355 popupPlacement = { state . placement }
356- destroyPopupOnHide = { this . state . destroyPopupOnHide }
357356 autoDestroy = { this . state . autoDestroy }
358357 // zIndex={40}
359358 mask = { this . state . mask }
360359 maskClosable = { this . state . maskClosable }
361360 stretch = { this . state . stretch }
362- maskAnimation = "fade"
361+ maskMotion = { {
362+ motionName : 'rc-trigger-mask-fade' ,
363+ } }
363364 // mouseEnterDelay={0.1}
364365 // mouseLeaveDelay={0.1}
365366 action = { actions }
@@ -372,7 +373,9 @@ class Test extends React.Component<any, TestState> {
372373 boxSizing : 'border-box' ,
373374 } }
374375 popup = { < div > i am a popup</ div > }
375- popupTransitionName = { state . transitionName }
376+ popupMotion = { {
377+ motionName : state . transitionName ,
378+ } }
376379 >
377380 < RefTarget />
378381 </ Trigger >
You can’t perform that action at this time.
0 commit comments