From 48145f787eda81815f653ad21161a60e89b6a303 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 13 十一月 2024 16:41:32 +0800
Subject: [PATCH] 2024.11.13
---
component/gallery/gallery.wxml | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/component/gallery/gallery.wxml b/component/gallery/gallery.wxml
index 9a31a4c..c49f5b4 100644
--- a/component/gallery/gallery.wxml
+++ b/component/gallery/gallery.wxml
@@ -1,9 +1,22 @@
<view class="weui-gallery {{show ? 'weui-gallery_show' : ''}} {{extClass}}">
<view class="weui-gallery__info">{{current+1}}/{{currentImgs.length}}</view>
- <swiper class="weui-gallery__img__wrp" bindtap="hideGallery" indicator-dots="{{false}}" bindchange="change" current="{{current}}" autoplay="{{false}}" duration="{{500}}">
+ <swiper
+ class="weui-gallery__img__wrp"
+ bindtap="hideGallery"
+ indicator-dots="{{false}}"
+ bindchange="change"
+ current="{{current}}"
+ autoplay="{{false}}"
+ duration="{{500}}"
+ >
<block wx:for="{{currentImgs}}" wx:key="index">
<swiper-item>
- <image mode="aspectFit" class="weui-gallery__img" src="{{item}}"></image>
+ <image
+ mode="aspectFit"
+ class="weui-gallery__img"
+ src="{{item}}"
+ show-menu-by-longpress="{{true}}"
+ ></image>
</swiper-item>
</block>
</swiper>
--
Gitblit v1.9.3