<template>
  <div class="img-box" @click.stop="$emit('click')">
    <div class="img-touch"/>
    <img :src="src" alt="" class="img">
  </div>
</template>

<script>
export default {
  props: {
    src: {
      type: String,
      default: '',
    },
  },
  data() {
    return {}
  },
}
</script>

<style lang="scss" scoped>
.img-box{
  position: relative;
  .img-touch {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* background: red; */
  }
  .img {
    z-index: 1;
    width: 100%;
    height: 100%;
  }
}
</style>
