vue-barcode 这个包的参数是怎么设置的,设置了没有效果

vue-barcode 这个包的参数是怎么设置的,设置了没有效果

https://github.com/lindell/vue-barcode

import VueBarcode from 'vue-barcode'
    <barcode id='printHtml'
             :options="barcode_option">
      Show this if the rendering fails.
    </barcode>
  data() {
    return {
      barcode_option: {
        width: '1px', // 单个条形码的宽度
        height: '25px'
      },
    }
阅读 2.8k
1 个回答
新手上路,请多包涵
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题