he wei
13 小时以前 7102b09561443f8c66bdcbecafac1706afc113fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<script setup>
import { ref,  } from "vue";
const props = defineProps({
  img: {
    type: String,
    default: "",
  },
  offset: {
    type: Array,
    default() {
      return [0, 0];
    },
  },
  width: {
    type: Number,
    default: 40,
  },
  height: {
    type: Number,
    default: 160,
  },
})
 
</script>
 
<template>
  <g :transform="'translate(' + offset.join(',') + ')'">
    <image
      :width="width"
      :height="height"
      :xlink:href="img"
    />
  </g>
</template>
 
<style scoped lang="less">
 
</style>