<template>
  <div>
    <img
      :style="{ backgroundImage: 'url(' + src + ')',paddingTop: '100%' }"
      class="jason-image"
    />
  </div>
</template>

<script>
export default {
  name: 'Image',
  props: {
    src: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="less" scoped>
.jason-image {
  width: 100%;
  height: 0;
  background-position: center;
  background-size: cover;
}
</style>
