Skip to content

Commit 305215f

Browse files
committed
fix: 删除无用代码
1 parent 5e3b519 commit 305215f

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

src/packages/popup/popup.rn.tsx

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -258,34 +258,36 @@ export const Popup: FunctionComponent<
258258
)
259259
}
260260
}
261-
const renderPop = () => {
262-
return (
263-
<>
264-
{innerVisible ? (
265-
<View
266-
ref={refObject}
267-
style={popStyles}
268-
className={popClassName}
269-
onClick={onHandleClick}
270-
catchMove={lockScroll}
271-
>
272-
{renderTitle()}
273-
{showChildren ? children : ''}
274-
</View>
275-
) : null}
276-
</>
277-
)
278-
}
261+
// const renderPop = () => {
262+
// return (
263+
// <>
264+
// {innerVisible ? (
265+
// <View
266+
// ref={refObject}
267+
// style={popStyles}
268+
// className={popClassName}
269+
// onClick={onHandleClick}
270+
// catchMove={lockScroll}
271+
// >
272+
// {renderTitle()}
273+
// {showChildren ? children : ''}
274+
// </View>
275+
// ) : null}
276+
// </>
277+
// )
278+
// }
279279

280-
const renderPopByRN = () => {
280+
const renderPop = () => {
281281
return (
282282
<View
283+
ref={refObject}
283284
style={{
284285
position: 'absolute',
285286
overflow: 'hidden',
286287
...popStyles,
287288
}}
288289
className={popClassName}
290+
onClick={onHandleClick}
289291
>
290292
{renderTitle()}
291293
{showChildren ? children : ''}
@@ -321,7 +323,7 @@ export const Popup: FunctionComponent<
321323
/>
322324
</TouchableOpacity>
323325
) : null}
324-
{renderPopByRN()}
326+
{renderPop()}
325327
</Modal>
326328
)
327329
}

0 commit comments

Comments
 (0)