File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import React , {
2
2
FunctionComponent ,
3
- useState ,
4
- useEffect ,
5
3
ReactElement ,
6
- ReactPortal ,
7
4
ReactNode ,
5
+ ReactPortal ,
6
+ useEffect ,
7
+ useState ,
8
8
} from 'react'
9
9
import { createPortal } from 'react-dom'
10
10
import { CSSTransition } from 'react-transition-group'
11
11
import classNames from 'classnames'
12
12
import { Close } from '@nutui/icons-react-taro'
13
13
import { EnterHandler , ExitHandler } from 'react-transition-group/Transition'
14
- import { View , ITouchEvent } from '@tarojs/components'
14
+ import { ITouchEvent , View } from '@tarojs/components'
15
15
import {
16
- OverlayProps ,
17
16
defaultOverlayProps ,
17
+ OverlayProps ,
18
18
} from '@/packages/overlay/overlay.taro'
19
19
import Overlay from '@/packages/overlay/index.taro'
20
20
import { ComponentDefaults } from '@/utils/typings'
@@ -271,7 +271,7 @@ export const Popup: FunctionComponent<
271
271
272
272
const renderNode = ( ) => {
273
273
return (
274
- < >
274
+ < View catchMove >
275
275
{ overlay ? (
276
276
< Overlay
277
277
style = { overlayStyles }
@@ -283,8 +283,8 @@ export const Popup: FunctionComponent<
283
283
onClick = { onHandleClickOverlay }
284
284
/>
285
285
) : null }
286
- < > { renderPop ( ) } </ >
287
- </ >
286
+ { renderPop ( ) }
287
+ </ View >
288
288
)
289
289
}
290
290
You can’t perform that action at this time.
0 commit comments