初始提交
This commit is contained in:
19
components/Jnpf/Barcode/tki-barcode/barcodes/Barcode.js
Normal file
19
components/Jnpf/Barcode/tki-barcode/barcodes/Barcode.js
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
function _classCallCheck(instance, Constructor) {
|
||||
if (!(instance instanceof Constructor)) {
|
||||
throw new TypeError("Cannot call a class as a function");
|
||||
}
|
||||
}
|
||||
|
||||
var Barcode = function Barcode(data, options) {
|
||||
_classCallCheck(this, Barcode);
|
||||
|
||||
this.data = data;
|
||||
this.text = options.text || data;
|
||||
this.options = options;
|
||||
};
|
||||
|
||||
export default Barcode
|
||||
Reference in New Issue
Block a user