update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user