From a60af0d79ac1db9a4648682a3ecea84e5ffa8923 Mon Sep 17 00:00:00 2001 From: hanyuxinting Date: Tue, 10 Dec 2024 20:28:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(overlay):=20=E9=B8=BF=E8=92=99demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/overlay/demo.taro.tsx | 50 ++++++++++-------------------- 1 file changed, 16 insertions(+), 34 deletions(-) diff --git a/src/packages/overlay/demo.taro.tsx b/src/packages/overlay/demo.taro.tsx index 10a255bf65..800383b8b4 100644 --- a/src/packages/overlay/demo.taro.tsx +++ b/src/packages/overlay/demo.taro.tsx @@ -10,7 +10,6 @@ import Demo1 from './demos/taro/demo1' import Demo4 from './demos/taro/demo4' import Demo5 from './demos/taro/demo5' import Demo6 from './demos/taro/demo6' -import { harmonyAndRn } from '@/utils/platform-taro' const OverlayDemo = () => { const [translated] = useTranslate({ @@ -43,39 +42,22 @@ const OverlayDemo = () => { return ( <>
- {!harmonyAndRn() ? ( - - {translated['84aa6bce']} - - {translated.abbf9359} - - {translated.duration} - - {translated.lockscroll} - - {translated.ec0d7acf} - - {translated.closeClickLay} - - - ) : ( - <> - {translated['84aa6bce']} - - {translated.abbf9359} - - {translated.duration} - - {translated.lockscroll} - - {translated.ec0d7acf} - - {translated.closeClickLay} - - - )} + + {translated['84aa6bce']} + + {translated.abbf9359} + + {translated.duration} + + {translated.lockscroll} + + {translated.ec0d7acf} + + {translated.closeClickLay} + + ) }