first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<template>
<image :src="url" :mode="mode" @error="imgError" class="h-100 w-100"></image>
</template>
<script>
export default {
props: {
src: {
type: String,
default: ''
},
alt: {
type: String,
default: ''
},
mode: {
type: String,
default: ''
},
width: {
type: Number,
default: 70
},
height: {
type: Number,
default: 90
}
},
data() {
return {
url: this.src
};
},
methods: {
imgError(){
this.url = this.alt;
},
}
}
</script>
<style>
</style>