This commit is contained in:
2025-05-07 10:49:08 +08:00
parent f085b3c79b
commit 055c9a49b7
10 changed files with 1984 additions and 87 deletions

View File

@@ -1,7 +1,7 @@
<script setup>
import {ref} from 'vue';
const {src, list} = defineProps({
const {src, list, imageClass} = defineProps({
src: {
type: String,
default: "",
@@ -13,6 +13,10 @@ const {src, list} = defineProps({
cur: {
type: Number,
default: 0,
},
imageClass: {
type: String,
default: ''
}
});
@@ -28,7 +32,7 @@ const preview = () => {
<image @click="preview" v-bind="$attrs" :src="src" mode="aspectFill"></image>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<image @click="preview" :src="src" mode="aspectFill"></image>
<image @click="preview" :class="imageClass" :src="src" mode="aspectFill"></image>
<!-- #endif -->
<view