<template>
  <div
    class="img"
    :style="{backgroundImage:`url(${qrCode})`}">
    <!-- <img
      :src="qrCode"
      ondragstart="return false"> -->
  </div>
</template>

<script>
import printOption from '../index.js'
export default {
  props: {
    defaultTemplate: {
      type: String,
      default: ''
    },
    element: {
      type: Object,
      default: () => {}
    }
  },
  computed: {
    elStyle () {
      return this.element.style
    }
  },
  data () {
    return {
      qrCode: printOption.qrCode
    }
  }
}
</script>

<style lang="scss" scoped>
.img{
  height: 100%; background: no-repeat center center /contain;
}
</style>
