<template>
  <img :src="src+'?x-oss-process=image/resize,m_fixed,w_'+width" v-if="src" @click="$emit('click')"/>
</template>

<script>
  export default {
    name: "oss-img",
    props: {
      width: {
        type: Number,
        default: 640
      },
      src: {
        type: String,
      }
    }
  }
</script>

<style scoped>

</style>
