feat(components): 在图片组件中添加长按显示菜单功能

This commit is contained in:
2026-05-07 15:12:59 +08:00
parent 2f24661cd9
commit d113d6125b
125 changed files with 622 additions and 368 deletions

View File

@@ -7,7 +7,7 @@
<view class="eval-good">
<view class="good-box">
<image class="good_pic" :src="$util.img(item.sku_image, { size: 'mid' })"
@error="imageError(index)" mode="widthFix" />
@error="imageError(index)" mode="widthFix" show-menu-by-longpress/>
<view class="good_info font-size-base">{{ item.sku_name }}</view>
</view>
</view>
@@ -51,7 +51,7 @@
<view class="other-info">
<view class="other-info-box" v-for="(i, t) in imgList[index]" :key="t">
<image :src="$util.img(i)" mode="aspectFill" @click="preview(i, index)"></image>
<image :src="$util.img(i)" mode="aspectFill" @click="preview(i, index)" show-menu-by-longpress></image>
<view class="imgDel" @click="deleteImg(i, index, t)"><text
class=" icon iconfont icon-delete"></text></view>
</view>