"use strict";var _barcode=_interopRequireDefault(require("./barcode"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var defalutOptions={number:!0,prefix:!0,color:"black",debug:!1,onValid:function(){},onInvalid:function(){},onSuccess:function(){},onError:function(){}};Component({properties:{width:{type:Number,value:200},height:{type:Number,value:100},number:{type:String,value:"",observer:function(e){this.draw({number:e})}},options:{type:Object,value:defalutOptions},canvasId:{type:String,value:"wux-barcode"}},methods:{draw:function(e){var t=0<arguments.length&&void 0!==e?e:{},n=Object.assign({},this.data,t),i=n.canvasId,r=n.number,o=n.width,u=n.height,a=n.options;new _barcode.default(i,r,Object.assign({width:o,height:u},a),this)}}});