This commit is contained in:
2025-03-28 16:04:56 +08:00
parent 156209f020
commit 0575246c02
2 changed files with 30 additions and 4 deletions

24
src/components/XImage.vue Normal file
View File

@@ -0,0 +1,24 @@
<script setup>
const {src} = defineProps({
src: {
type: String,
default: "",
}
});
const preview = () => {
uni.previewImage({
current: 0,
urls: [src],
indicator: true,
}).then();
}
</script>
<template>
<image @click="preview" v-bind="$attrs" :src="src"></image>
</template>
<style scoped lang="scss">
</style>