From 305215fcbe0b6326762cf4f917e5e740af9a9f0b Mon Sep 17 00:00:00 2001 From: hanyuxinting Date: Thu, 26 Sep 2024 11:36:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/popup/popup.rn.tsx | 42 +++++++++++++++++---------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/src/packages/popup/popup.rn.tsx b/src/packages/popup/popup.rn.tsx index 2e32a649c9..f9409551e0 100644 --- a/src/packages/popup/popup.rn.tsx +++ b/src/packages/popup/popup.rn.tsx @@ -258,34 +258,36 @@ export const Popup: FunctionComponent< ) } } - const renderPop = () => { - return ( - <> - {innerVisible ? ( - - {renderTitle()} - {showChildren ? children : ''} - - ) : null} - - ) - } + // const renderPop = () => { + // return ( + // <> + // {innerVisible ? ( + // + // {renderTitle()} + // {showChildren ? children : ''} + // + // ) : null} + // + // ) + // } - const renderPopByRN = () => { + const renderPop = () => { return ( {renderTitle()} {showChildren ? children : ''} @@ -321,7 +323,7 @@ export const Popup: FunctionComponent< /> ) : null} - {renderPopByRN()} + {renderPop()} ) }