define(async t=>{await t("./QRCode-github","./qrcode.css"),$.register({tag:"qrcode",temp:'\n        <div xv-content style="display:none;"></div>\n        <div xv-tar="qEle"></div>\n        ',data:{w:128,h:128,colorDark:"#000000",colorLight:"#ffffff"},props:["w","h","colorDark","colorLight"],attrs:["url"],watch:{w(t,e){this.style.width=e+"px"},h(t,e){this.style.height=e+"px"},url(t,e){this._qrcodeObj.clear(),this._qrcodeObj.makeCode(e)}},inited(){this._qrcodeObj=new QRCode(this.$qEle.ele,{text:"",width:this.w,height:this.h,colorDark:this.colorDark,colorLight:this.colorLight,correctLevel:QRCode.CorrectLevel.H})}})});