From 565dbbf0b4bd528ae6f668e053172878f48bd0fe Mon Sep 17 00:00:00 2001 From: yehuozhili Date: Thu, 24 Sep 2020 16:58:45 +0800 Subject: [PATCH] fix image --- .../BasicShop/BasicComponents/Image/index.tsx | 50 +++++++++++++++---- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/src/components/BasicShop/BasicComponents/Image/index.tsx b/src/components/BasicShop/BasicComponents/Image/index.tsx index d0c98ce..5a7e684 100644 --- a/src/components/BasicShop/BasicComponents/Image/index.tsx +++ b/src/components/BasicShop/BasicComponents/Image/index.tsx @@ -3,17 +3,45 @@ import { IImageConfig } from './schema'; const Image = memo((props: IImageConfig) => { const { imgUrl, round = 0 } = props; return ( -
- -
+ <> + {props.isTpl && ( +
+ +
+ )} + {!props.isTpl && ( +
+
+ +
+
+ )} + ); });