121
This commit is contained in:
13
Web/src/components/Base/Aimage.vue
Normal file
13
Web/src/components/Base/Aimage.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<img :src="BaseConfig.BaseMediaUrl + url" :class="_class" :alt="_alt">
|
||||
</template>
|
||||
<script setup>
|
||||
import { BaseConfig } from "@/config/BaseConfig";
|
||||
// 1. 定义接收父组件传来的参数 props
|
||||
const props = defineProps({
|
||||
// 字段名、类型、默认值
|
||||
url: String,
|
||||
_class: String,
|
||||
_alt:String
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user