feat(components): 在图片组件中添加长按显示菜单功能
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
<view>
|
||||
<view class="evaluator-face">
|
||||
<image v-if="item.member_headimg" :src="$util.img(item.member_headimg)"
|
||||
@error="imageError(index)" mode="aspectFill" />
|
||||
<image v-else :src="$util.getDefaultImage().head" mode="aspectFill" />
|
||||
@error="imageError(index)" mode="aspectFill" show-menu-by-longpress/>
|
||||
<image v-else :src="$util.getDefaultImage().head" mode="aspectFill" show-menu-by-longpress/>
|
||||
</view>
|
||||
|
||||
<view class="evaluator-info">
|
||||
@@ -38,7 +38,7 @@
|
||||
<view class="evaluate-img" v-if="item.images">
|
||||
<view class="img-box" v-for="(img, img_index) in item.images" :key="img_index"
|
||||
@click="previewEvaluate(index, img_index, 'images')">
|
||||
<image :src="$util.img(img)" mode="aspectFill" />
|
||||
<image :src="$util.img(img)" mode="aspectFill" show-menu-by-longpress/>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -55,7 +55,7 @@
|
||||
<view class="evaluate-img" v-if="item.again_images.length > 0">
|
||||
<view class="img-box" v-for="(again_img, again_index) in item.again_images"
|
||||
:key="again_index" @click="previewEvaluate(index, again_index, 'again_images')">
|
||||
<image :src="$util.img(again_img)" mode="aspectFill"></image>
|
||||
<image :src="$util.img(again_img)" mode="aspectFill" show-menu-by-longpress></image>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
Reference in New Issue
Block a user