From 00d9ad06bf132c381df0836591cded033b00b5cf Mon Sep 17 00:00:00 2001 From: chenjiajian <798095202@qq.com> Date: Tue, 16 Jun 2020 17:45:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(taro-h5):=20=E4=BF=AE=E5=A4=8D=20previewIma?= =?UTF-8?q?ge=20bug=EF=BC=8Cfix=20#6656?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复图片没有居中的问题 * 去掉 indicator --- packages/taro-components/src/components/swiper/swiper.tsx | 4 +++- packages/taro-h5/src/api/image/preview_image.js | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/taro-components/src/components/swiper/swiper.tsx b/packages/taro-components/src/components/swiper/swiper.tsx index e7a3e0a32d45..6e1470c71de8 100644 --- a/packages/taro-components/src/components/swiper/swiper.tsx +++ b/packages/taro-components/src/components/swiper/swiper.tsx @@ -191,13 +191,15 @@ export class Swiper implements ComponentInterface { } ) + const hostStyle: Record = {} const style: Record = {} if (this.full) { + hostStyle.height = '100%' style.height = '100%' } return ( - +