
import JsBarcode from 'jsbarcode'

window.setBarcode = function setBarcode(val, dom='barcode', width=2, height=40, isShowValue=false){
    if (!val)return;
    JsBarcode(dom, val, {
        format: 'CODE39',
        lineColor: '#000',
        background: '#ffffff',
        width: width,
        height: height,
        displayValue: isShowValue
    });
};

