111
jihongshun
8 天以前 0c741cdda7ef9935a20d3090dfea97e1ce8ae754
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<template>
  <div style="width: 100%; height: 100%">
    <el-image style="width: 100%; height: 100%"
        :preview-src-list="option.attribute.preview ? [option.attribute.url]:[]"
        :src="option.attribute.url?fileUrl+option.attribute.url:require('@/assets/picture.png')" :fit="option.attribute.fit"/>
  </div>
</template>
 
<script>
import {fileUrl} from "/env";
 
export default {
  name: "cpt-image",
  props: {option: Object},
  data() {
    return {
      fileUrl:fileUrl,
    }
  }
}
</script>
 
<style scoped>
</style>