<template>
  <div>
    <svg id="barcode" style="display: flex;"></svg>
  </div>
</template>

<script>

import JsBarcode from "jsbarcode";
import { ref, onMounted, nextTick } from 'vue'
export default {
  name: "JsBarcode",
  props: {
    presno: {
      required: true,
      type: String
    },
  },
  mounted() {
    //
    JsBarcode('#barcode',this.presno,{
      format:"CODE128",lineColor:"#000",displayValue:true,
      fontSize:12,width:1.3,height:40
    })
  },
}
</script>

<style scoped>

</style>
