This commit is contained in:
2025-06-10 20:43:15 +08:00
parent 703ccc6e28
commit 2915645a92
2 changed files with 16 additions and 7 deletions

View File

@@ -32,12 +32,17 @@ defineExpose({
<template>
<!-- #ifndef MP-WEIXIN -->
<image @click="open" v-bind="$attrs" :src="src" mode="aspectFill"></image>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<image @click="open" :class="imageClass" :src="src" mode="aspectFill"></image>
<!-- #endif -->
<template v-if="!$slots.default">
<!-- #ifndef MP-WEIXIN -->
<image @click="open" v-bind="$attrs" :src="src" mode="aspectFill"></image>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<image @click="open" :class="imageClass" :src="src" mode="aspectFill"></image>
<!-- #endif -->
</template>
<view v-else @click="open">
<slot></slot>
</view>
<view
v-if="show"