unify-external-plugin-platform 0.0.2-30 → 0.0.2-31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81939,14 +81939,6 @@ module.exports = function ( delay, noTrailing, callback, debounceMode ) {
81939
81939
  };
81940
81940
 
81941
81941
 
81942
- /***/ }),
81943
-
81944
- /***/ 5053:
81945
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
81946
-
81947
- "use strict";
81948
- module.exports = __webpack_require__.p + "img/img_blank_empty.92ddadbb.png";
81949
-
81950
81942
  /***/ }),
81951
81943
 
81952
81944
  /***/ 7203:
@@ -82086,188 +82078,11 @@ if (typeof window !== 'undefined') {
82086
82078
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
82087
82079
  var element_ui_common = __webpack_require__(4720);
82088
82080
  var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_common);
82089
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=template&id=5837eff8&scoped=true&
82081
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=template&id=fa276214&
82090
82082
  var render = function render() {
82091
82083
  var _vm = this,
82092
- _c = _vm._self._c;
82093
- return _c('div', {
82094
- staticClass: "zs-empty"
82095
- }, [_c('img', {
82096
- attrs: {
82097
- "src": __webpack_require__(5053)
82098
- }
82099
- }), _c('p', {
82100
- staticClass: "empty-text"
82101
- }, [_vm._v(_vm._s(_vm.emptyTip))]), _c('el-button', {
82102
- attrs: {
82103
- "type": "primary",
82104
- "size": "small"
82105
- },
82106
- on: {
82107
- "click": function ($event) {
82108
- return _vm.handleAction();
82109
- }
82110
- }
82111
- }, [_vm._v("测试")])], 1);
82112
- };
82113
- var staticRenderFns = [];
82114
-
82115
- ;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=template&id=5837eff8&scoped=true&
82116
-
82117
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=script&lang=js&
82118
- /* harmony default export */ var zs_emptyvue_type_script_lang_js_ = ({
82119
- name: 'zs-empty',
82120
- props: {
82121
- emptyTip: {
82122
- default: '暂无数据',
82123
- type: String
82124
- }
82125
- },
82126
- methods: {
82127
- handleAction() {
82128
- console.log('测试');
82129
- }
82130
- }
82131
- });
82132
- ;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=script&lang=js&
82133
- /* harmony default export */ var src_zs_emptyvue_type_script_lang_js_ = (zs_emptyvue_type_script_lang_js_);
82134
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=style&index=0&id=5837eff8&prod&scoped=true&lang=scss&
82135
- // extracted by mini-css-extract-plugin
82136
-
82137
- ;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=style&index=0&id=5837eff8&prod&scoped=true&lang=scss&
82138
-
82139
- ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
82140
- /* globals __VUE_SSR_CONTEXT__ */
82141
-
82142
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
82143
- // This module is a runtime utility for cleaner component module output and will
82144
- // be included in the final webpack user bundle.
82145
-
82146
- function normalizeComponent(
82147
- scriptExports,
82148
- render,
82149
- staticRenderFns,
82150
- functionalTemplate,
82151
- injectStyles,
82152
- scopeId,
82153
- moduleIdentifier /* server only */,
82154
- shadowMode /* vue-cli only */
82155
- ) {
82156
- // Vue.extend constructor export interop
82157
- var options =
82158
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
82159
-
82160
- // render functions
82161
- if (render) {
82162
- options.render = render
82163
- options.staticRenderFns = staticRenderFns
82164
- options._compiled = true
82165
- }
82166
-
82167
- // functional template
82168
- if (functionalTemplate) {
82169
- options.functional = true
82170
- }
82171
-
82172
- // scopedId
82173
- if (scopeId) {
82174
- options._scopeId = 'data-v-' + scopeId
82175
- }
82176
-
82177
- var hook
82178
- if (moduleIdentifier) {
82179
- // server build
82180
- hook = function (context) {
82181
- // 2.3 injection
82182
- context =
82183
- context || // cached call
82184
- (this.$vnode && this.$vnode.ssrContext) || // stateful
82185
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
82186
- // 2.2 with runInNewContext: true
82187
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
82188
- context = __VUE_SSR_CONTEXT__
82189
- }
82190
- // inject component styles
82191
- if (injectStyles) {
82192
- injectStyles.call(this, context)
82193
- }
82194
- // register component module identifier for async chunk inferrence
82195
- if (context && context._registeredComponents) {
82196
- context._registeredComponents.add(moduleIdentifier)
82197
- }
82198
- }
82199
- // used by ssr in case component is cached and beforeCreate
82200
- // never gets called
82201
- options._ssrRegister = hook
82202
- } else if (injectStyles) {
82203
- hook = shadowMode
82204
- ? function () {
82205
- injectStyles.call(
82206
- this,
82207
- (options.functional ? this.parent : this).$root.$options.shadowRoot
82208
- )
82209
- }
82210
- : injectStyles
82211
- }
82212
-
82213
- if (hook) {
82214
- if (options.functional) {
82215
- // for template-only hot-reload because in that case the render fn doesn't
82216
- // go through the normalizer
82217
- options._injectStyles = hook
82218
- // register for functional component in vue file
82219
- var originalRender = options.render
82220
- options.render = function renderWithStyleInjection(h, context) {
82221
- hook.call(context)
82222
- return originalRender(h, context)
82223
- }
82224
- } else {
82225
- // inject component registration as beforeCreate hook
82226
- var existing = options.beforeCreate
82227
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
82228
- }
82229
- }
82230
-
82231
- return {
82232
- exports: scriptExports,
82233
- options: options
82234
- }
82235
- }
82236
-
82237
- ;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue
82238
-
82239
-
82240
-
82241
- ;
82242
-
82243
-
82244
- /* normalize component */
82245
-
82246
- var component = normalizeComponent(
82247
- src_zs_emptyvue_type_script_lang_js_,
82248
- render,
82249
- staticRenderFns,
82250
- false,
82251
- null,
82252
- "5837eff8",
82253
- null
82254
-
82255
- )
82256
-
82257
- /* harmony default export */ var zs_empty = (component.exports);
82258
- ;// CONCATENATED MODULE: ./packages/zs-empty/index.js
82259
-
82260
-
82261
- // 组件的install方法用于按需引入
82262
- // @ts-ignore
82263
- zs_empty.install = Vue => {
82264
- Vue.component(zs_empty.name, zs_empty);
82265
- };
82266
- /* harmony default export */ var packages_zs_empty = (zs_empty);
82267
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=template&id=4b9f6478&scoped=true&
82268
- var scanner_high_camera_jieyuvue_type_template_id_4b9f6478_scoped_true_render = function render() {
82269
- var _vm = this,
82270
- _c = _vm._self._c;
82084
+ _c = _vm._self._c,
82085
+ _setup = _vm._self._setupProxy;
82271
82086
  return _c('div', {
82272
82087
  staticClass: "scanner-high-camera-container"
82273
82088
  }, [_vm.openMode === 'dialog' ? _c('div', {
@@ -82353,263 +82168,930 @@ var scanner_high_camera_jieyuvue_type_template_id_4b9f6478_scoped_true_render =
82353
82168
  }
82354
82169
  })], 1);
82355
82170
  };
82356
- var scanner_high_camera_jieyuvue_type_template_id_4b9f6478_scoped_true_staticRenderFns = [];
82171
+ var staticRenderFns = [];
82172
+
82173
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
82174
+ function _typeof(obj) {
82175
+ "@babel/helpers - typeof";
82176
+
82177
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
82178
+ return typeof obj;
82179
+ } : function (obj) {
82180
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
82181
+ }, _typeof(obj);
82182
+ }
82183
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
82184
+
82185
+ function _toPrimitive(input, hint) {
82186
+ if (_typeof(input) !== "object" || input === null) return input;
82187
+ var prim = input[Symbol.toPrimitive];
82188
+ if (prim !== undefined) {
82189
+ var res = prim.call(input, hint || "default");
82190
+ if (_typeof(res) !== "object") return res;
82191
+ throw new TypeError("@@toPrimitive must return a primitive value.");
82192
+ }
82193
+ return (hint === "string" ? String : Number)(input);
82194
+ }
82195
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
82357
82196
 
82197
+
82198
+ function _toPropertyKey(arg) {
82199
+ var key = _toPrimitive(arg, "string");
82200
+ return _typeof(key) === "symbol" ? key : String(key);
82201
+ }
82202
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
82203
+
82204
+ function _defineProperty(obj, key, value) {
82205
+ key = _toPropertyKey(key);
82206
+ if (key in obj) {
82207
+ Object.defineProperty(obj, key, {
82208
+ value: value,
82209
+ enumerable: true,
82210
+ configurable: true,
82211
+ writable: true
82212
+ });
82213
+ } else {
82214
+ obj[key] = value;
82215
+ }
82216
+ return obj;
82217
+ }
82358
82218
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
82359
82219
  var es_array_push = __webpack_require__(7658);
82360
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=template&id=e2cd46b0&scoped=true&
82361
- var scanner_high_camera_componentvue_type_template_id_e2cd46b0_scoped_true_render = function render() {
82362
- var _vm = this,
82363
- _c = _vm._self._c;
82364
- return _c('div', {
82365
- staticClass: "scanner-high-camera-component"
82366
- }, [_c('div', {
82367
- staticClass: "scanner-result-content"
82368
- }, [_c('div', {
82369
- staticClass: "content-main flex-1"
82370
- }, [_vm.loadSuccess ? _c('div', {
82371
- staticClass: "load-success"
82372
- }, [_c('img', {
82373
- attrs: {
82374
- "id": "photo",
82375
- "src": _vm.scannerResultSrc
82376
- }
82377
- })]) : _c('div', {
82378
- staticClass: "load-error"
82379
- }, [_c('i', {
82380
- staticClass: "el-icon-s-cooperation"
82381
- }), _c('p', [_vm._v("请先安装插件")])])]), _c('div', {
82382
- staticClass: "handle-action"
82383
- }, [_c('el-select', {
82384
- staticClass: "select",
82385
- attrs: {
82386
- "size": "small"
82387
- },
82388
- on: {
82389
- "change": _vm.selectChange
82390
- },
82391
- model: {
82392
- value: _vm.camera,
82393
- callback: function ($$v) {
82394
- _vm.camera = $$v;
82395
- },
82396
- expression: "camera"
82397
- }
82398
- }, _vm._l(_vm.cameras, function (item) {
82399
- return _c('el-option', {
82400
- key: item.value,
82401
- attrs: {
82402
- "label": item.name,
82403
- "value": item.value
82404
- }
82405
- });
82406
- }), 1), _vm._l(_vm.buttonList, function (item) {
82407
- return [_c('el-button', {
82408
- key: item.name,
82409
- attrs: {
82410
- "type": "primary",
82411
- "size": "small"
82412
- },
82413
- on: {
82414
- "click": function ($event) {
82415
- return _vm.handleAction(item.name);
82416
- }
82417
- }
82418
- }, [_vm._v(_vm._s(item.label))])];
82419
- })], 2)])]);
82420
- };
82421
- var scanner_high_camera_componentvue_type_template_id_e2cd46b0_scoped_true_staticRenderFns = [];
82220
+ // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
82221
+ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
82222
+ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
82223
+ ;// CONCATENATED MODULE: ./node_modules/vue-class-component/dist/vue-class-component.esm.js
82224
+ /**
82225
+ * vue-class-component v7.2.6
82226
+ * (c) 2015-present Evan You
82227
+ * @license MIT
82228
+ */
82422
82229
 
82423
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=script&lang=js&
82424
- const BEGIN_DATA = 'data:image/jpeg;base64,';
82425
- /* harmony default export */ var scanner_high_camera_componentvue_type_script_lang_js_ = ({
82426
- name: "scanner-high-camera-component",
82427
- data: () => {
82428
- return {
82429
- totalTimeLength: 0,
82430
- timeLength: '',
82431
- timer: 0,
82432
- str1: '',
82433
- str2: '',
82434
- webSocket: {},
82435
- scannerResultSrc: '',
82436
- loadSuccess: true,
82437
- camera: 0,
82438
- cameras: [{
82439
- name: '文档',
82440
- value: 0
82441
- }, {
82442
- name: '照片',
82443
- value: 1
82444
- }],
82445
- buttonList: [
82446
- // {label: '启动主', name: 'start-main'},
82447
- // {label: '旋转启动主', name: 'rotation'},
82448
- // {label: '启动副', name: 'start-vice'},
82449
- // {label: '停止', name: 'stop'},
82450
- // {label: '自动对焦', name: 'autofocus'},
82451
- // {label: '去黑边', name: 'Black edge'},
82452
- // {label: 'Base64', name: 'base64'},
82453
- // {label: '开始录屏', name: 'start-record'},
82454
- // {label: '停止录屏', name: 'stop-record'},
82455
- {
82456
- label: '拍照',
82457
- name: 'take-pictures'
82458
- }
82459
- // {label: '设置去灰底', name: ''},
82460
- // {label: 'FILTER设置', name: ''},
82461
- // {label: 'PIN设置', name: ''},
82462
- // {label: '自动寻边', name: ''},
82463
- // {label: '身份证自动寻边', name: ''},
82464
- // {label: 'vSetExposure', name: ''},
82465
- // {label: 'vSetBrightness', name: ''},
82466
- // {label: 'vSetContrast', name: ''},
82467
- // {label: '设置分辨率', name: ''},
82468
- ]
82469
- };
82470
- },
82471
82230
 
82472
- mounted() {
82473
- this.webSocket = new WebSocket('ws://127.0.0.1:1818');
82474
- window.onbeforeunload = () => {
82475
- this.webSocket.send("bStopPlay()");
82476
- this.webSocket.send("bStopPlay4()");
82477
- };
82478
- this.webSocket.onerror = event => {
82479
- this.onError(event);
82480
- };
82481
- this.webSocket.onopen = event => {
82482
- this.onOpen(event);
82483
- };
82484
- this.webSocket.onclose = event => {
82485
- this.onClose(event);
82486
- this.webSocket.send("bStopPlay()");
82231
+ function vue_class_component_esm_typeof(obj) {
82232
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
82233
+ vue_class_component_esm_typeof = function (obj) {
82234
+ return typeof obj;
82487
82235
  };
82488
- this.webSocket.onmessage = event => {
82489
- this.onMessage(event);
82236
+ } else {
82237
+ vue_class_component_esm_typeof = function (obj) {
82238
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
82490
82239
  };
82491
- setTimeout(() => {
82492
- this.handleAction('start-main');
82493
- }, 800);
82494
- },
82495
- destroyed() {
82240
+ }
82241
+
82242
+ return vue_class_component_esm_typeof(obj);
82243
+ }
82244
+
82245
+ function vue_class_component_esm_defineProperty(obj, key, value) {
82246
+ if (key in obj) {
82247
+ Object.defineProperty(obj, key, {
82248
+ value: value,
82249
+ enumerable: true,
82250
+ configurable: true,
82251
+ writable: true
82252
+ });
82253
+ } else {
82254
+ obj[key] = value;
82255
+ }
82256
+
82257
+ return obj;
82258
+ }
82259
+
82260
+ function _toConsumableArray(arr) {
82261
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
82262
+ }
82263
+
82264
+ function _arrayWithoutHoles(arr) {
82265
+ if (Array.isArray(arr)) {
82266
+ for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
82267
+
82268
+ return arr2;
82269
+ }
82270
+ }
82271
+
82272
+ function _iterableToArray(iter) {
82273
+ if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
82274
+ }
82275
+
82276
+ function _nonIterableSpread() {
82277
+ throw new TypeError("Invalid attempt to spread non-iterable instance");
82278
+ }
82279
+
82280
+ // The rational behind the verbose Reflect-feature check below is the fact that there are polyfills
82281
+ // which add an implementation for Reflect.defineMetadata but not for Reflect.getOwnMetadataKeys.
82282
+ // Without this check consumers will encounter hard to track down runtime errors.
82283
+ function reflectionIsSupported() {
82284
+ return typeof Reflect !== 'undefined' && Reflect.defineMetadata && Reflect.getOwnMetadataKeys;
82285
+ }
82286
+ function copyReflectionMetadata(to, from) {
82287
+ forwardMetadata(to, from);
82288
+ Object.getOwnPropertyNames(from.prototype).forEach(function (key) {
82289
+ forwardMetadata(to.prototype, from.prototype, key);
82290
+ });
82291
+ Object.getOwnPropertyNames(from).forEach(function (key) {
82292
+ forwardMetadata(to, from, key);
82293
+ });
82294
+ }
82295
+
82296
+ function forwardMetadata(to, from, propertyKey) {
82297
+ var metaKeys = propertyKey ? Reflect.getOwnMetadataKeys(from, propertyKey) : Reflect.getOwnMetadataKeys(from);
82298
+ metaKeys.forEach(function (metaKey) {
82299
+ var metadata = propertyKey ? Reflect.getOwnMetadata(metaKey, from, propertyKey) : Reflect.getOwnMetadata(metaKey, from);
82300
+
82301
+ if (propertyKey) {
82302
+ Reflect.defineMetadata(metaKey, metadata, to, propertyKey);
82303
+ } else {
82304
+ Reflect.defineMetadata(metaKey, metadata, to);
82305
+ }
82306
+ });
82307
+ }
82308
+
82309
+ var fakeArray = {
82310
+ __proto__: []
82311
+ };
82312
+ var hasProto = fakeArray instanceof Array;
82313
+ function vue_class_component_esm_createDecorator(factory) {
82314
+ return function (target, key, index) {
82315
+ var Ctor = typeof target === 'function' ? target : target.constructor;
82316
+
82317
+ if (!Ctor.__decorators__) {
82318
+ Ctor.__decorators__ = [];
82319
+ }
82320
+
82321
+ if (typeof index !== 'number') {
82322
+ index = undefined;
82323
+ }
82324
+
82325
+ Ctor.__decorators__.push(function (options) {
82326
+ return factory(options, key, index);
82327
+ });
82328
+ };
82329
+ }
82330
+ function mixins() {
82331
+ for (var _len = arguments.length, Ctors = new Array(_len), _key = 0; _key < _len; _key++) {
82332
+ Ctors[_key] = arguments[_key];
82333
+ }
82334
+
82335
+ return Vue.extend({
82336
+ mixins: Ctors
82337
+ });
82338
+ }
82339
+ function isPrimitive(value) {
82340
+ var type = vue_class_component_esm_typeof(value);
82341
+
82342
+ return value == null || type !== 'object' && type !== 'function';
82343
+ }
82344
+ function warn(message) {
82345
+ if (typeof console !== 'undefined') {
82346
+ console.warn('[vue-class-component] ' + message);
82347
+ }
82348
+ }
82349
+
82350
+ function collectDataFromConstructor(vm, Component) {
82351
+ // override _init to prevent to init as Vue instance
82352
+ var originalInit = Component.prototype._init;
82353
+
82354
+ Component.prototype._init = function () {
82355
+ var _this = this;
82356
+
82357
+ // proxy to actual vm
82358
+ var keys = Object.getOwnPropertyNames(vm); // 2.2.0 compat (props are no longer exposed as self properties)
82359
+
82360
+ if (vm.$options.props) {
82361
+ for (var key in vm.$options.props) {
82362
+ if (!vm.hasOwnProperty(key)) {
82363
+ keys.push(key);
82364
+ }
82365
+ }
82366
+ }
82367
+
82368
+ keys.forEach(function (key) {
82369
+ Object.defineProperty(_this, key, {
82370
+ get: function get() {
82371
+ return vm[key];
82372
+ },
82373
+ set: function set(value) {
82374
+ vm[key] = value;
82375
+ },
82376
+ configurable: true
82377
+ });
82378
+ });
82379
+ }; // should be acquired class property values
82380
+
82381
+
82382
+ var data = new Component(); // restore original _init to avoid memory leak (#209)
82383
+
82384
+ Component.prototype._init = originalInit; // create plain data object
82385
+
82386
+ var plainData = {};
82387
+ Object.keys(data).forEach(function (key) {
82388
+ if (data[key] !== undefined) {
82389
+ plainData[key] = data[key];
82390
+ }
82391
+ });
82392
+
82393
+ if (false) {}
82394
+
82395
+ return plainData;
82396
+ }
82397
+
82398
+ var $internalHooks = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeDestroy', 'destroyed', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch' // 2.6
82399
+ ];
82400
+ function componentFactory(Component) {
82401
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
82402
+ options.name = options.name || Component._componentTag || Component.name; // prototype props.
82403
+
82404
+ var proto = Component.prototype;
82405
+ Object.getOwnPropertyNames(proto).forEach(function (key) {
82406
+ if (key === 'constructor') {
82407
+ return;
82408
+ } // hooks
82409
+
82410
+
82411
+ if ($internalHooks.indexOf(key) > -1) {
82412
+ options[key] = proto[key];
82413
+ return;
82414
+ }
82415
+
82416
+ var descriptor = Object.getOwnPropertyDescriptor(proto, key);
82417
+
82418
+ if (descriptor.value !== void 0) {
82419
+ // methods
82420
+ if (typeof descriptor.value === 'function') {
82421
+ (options.methods || (options.methods = {}))[key] = descriptor.value;
82422
+ } else {
82423
+ // typescript decorated data
82424
+ (options.mixins || (options.mixins = [])).push({
82425
+ data: function data() {
82426
+ return vue_class_component_esm_defineProperty({}, key, descriptor.value);
82427
+ }
82428
+ });
82429
+ }
82430
+ } else if (descriptor.get || descriptor.set) {
82431
+ // computed properties
82432
+ (options.computed || (options.computed = {}))[key] = {
82433
+ get: descriptor.get,
82434
+ set: descriptor.set
82435
+ };
82436
+ }
82437
+ });
82438
+ (options.mixins || (options.mixins = [])).push({
82439
+ data: function data() {
82440
+ return collectDataFromConstructor(this, Component);
82441
+ }
82442
+ }); // decorate options
82443
+
82444
+ var decorators = Component.__decorators__;
82445
+
82446
+ if (decorators) {
82447
+ decorators.forEach(function (fn) {
82448
+ return fn(options);
82449
+ });
82450
+ delete Component.__decorators__;
82451
+ } // find super
82452
+
82453
+
82454
+ var superProto = Object.getPrototypeOf(Component.prototype);
82455
+ var Super = superProto instanceof (external_commonjs_vue_commonjs2_vue_root_Vue_default()) ? superProto.constructor : (external_commonjs_vue_commonjs2_vue_root_Vue_default());
82456
+ var Extended = Super.extend(options);
82457
+ forwardStaticMembers(Extended, Component, Super);
82458
+
82459
+ if (reflectionIsSupported()) {
82460
+ copyReflectionMetadata(Extended, Component);
82461
+ }
82462
+
82463
+ return Extended;
82464
+ }
82465
+ var reservedPropertyNames = (/* unused pure expression or super */ null && ([// Unique id
82466
+ 'cid', // Super Vue constructor
82467
+ 'super', // Component options that will be used by the component
82468
+ 'options', 'superOptions', 'extendOptions', 'sealedOptions', // Private assets
82469
+ 'component', 'directive', 'filter']));
82470
+ var shouldIgnore = {
82471
+ prototype: true,
82472
+ arguments: true,
82473
+ callee: true,
82474
+ caller: true
82475
+ };
82476
+
82477
+ function forwardStaticMembers(Extended, Original, Super) {
82478
+ // We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
82479
+ Object.getOwnPropertyNames(Original).forEach(function (key) {
82480
+ // Skip the properties that should not be overwritten
82481
+ if (shouldIgnore[key]) {
82482
+ return;
82483
+ } // Some browsers does not allow reconfigure built-in properties
82484
+
82485
+
82486
+ var extendedDescriptor = Object.getOwnPropertyDescriptor(Extended, key);
82487
+
82488
+ if (extendedDescriptor && !extendedDescriptor.configurable) {
82489
+ return;
82490
+ }
82491
+
82492
+ var descriptor = Object.getOwnPropertyDescriptor(Original, key); // If the user agent does not support `__proto__` or its family (IE <= 10),
82493
+ // the sub class properties may be inherited properties from the super class in TypeScript.
82494
+ // We need to exclude such properties to prevent to overwrite
82495
+ // the component options object which stored on the extended constructor (See #192).
82496
+ // If the value is a referenced value (object or function),
82497
+ // we can check equality of them and exclude it if they have the same reference.
82498
+ // If it is a primitive value, it will be forwarded for safety.
82499
+
82500
+ if (!hasProto) {
82501
+ // Only `cid` is explicitly exluded from property forwarding
82502
+ // because we cannot detect whether it is a inherited property or not
82503
+ // on the no `__proto__` environment even though the property is reserved.
82504
+ if (key === 'cid') {
82505
+ return;
82506
+ }
82507
+
82508
+ var superDescriptor = Object.getOwnPropertyDescriptor(Super, key);
82509
+
82510
+ if (!isPrimitive(descriptor.value) && superDescriptor && superDescriptor.value === descriptor.value) {
82511
+ return;
82512
+ }
82513
+ } // Warn if the users manually declare reserved properties
82514
+
82515
+
82516
+ if (false) {}
82517
+
82518
+ Object.defineProperty(Extended, key, descriptor);
82519
+ });
82520
+ }
82521
+
82522
+ function Component(options) {
82523
+ if (typeof options === 'function') {
82524
+ return componentFactory(options);
82525
+ }
82526
+
82527
+ return function (Component) {
82528
+ return componentFactory(Component, options);
82529
+ };
82530
+ }
82531
+
82532
+ Component.registerHooks = function registerHooks(keys) {
82533
+ $internalHooks.push.apply($internalHooks, _toConsumableArray(keys));
82534
+ };
82535
+
82536
+ /* harmony default export */ var vue_class_component_esm = (Component);
82537
+
82538
+
82539
+ ;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/Emit.js
82540
+ var __spreadArrays = (undefined && undefined.__spreadArrays) || function () {
82541
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
82542
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
82543
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
82544
+ r[k] = a[j];
82545
+ return r;
82546
+ };
82547
+ // Code copied from Vue/src/shared/util.js
82548
+ var hyphenateRE = /\B([A-Z])/g;
82549
+ var hyphenate = function (str) { return str.replace(hyphenateRE, '-$1').toLowerCase(); };
82550
+ /**
82551
+ * decorator of an event-emitter function
82552
+ * @param event The name of the event
82553
+ * @return MethodDecorator
82554
+ */
82555
+ function Emit(event) {
82556
+ return function (_target, propertyKey, descriptor) {
82557
+ var key = hyphenate(propertyKey);
82558
+ var original = descriptor.value;
82559
+ descriptor.value = function emitter() {
82560
+ var _this = this;
82561
+ var args = [];
82562
+ for (var _i = 0; _i < arguments.length; _i++) {
82563
+ args[_i] = arguments[_i];
82564
+ }
82565
+ var emit = function (returnValue) {
82566
+ var emitName = event || key;
82567
+ if (returnValue === undefined) {
82568
+ if (args.length === 0) {
82569
+ _this.$emit(emitName);
82570
+ }
82571
+ else if (args.length === 1) {
82572
+ _this.$emit(emitName, args[0]);
82573
+ }
82574
+ else {
82575
+ _this.$emit.apply(_this, __spreadArrays([emitName], args));
82576
+ }
82577
+ }
82578
+ else {
82579
+ args.unshift(returnValue);
82580
+ _this.$emit.apply(_this, __spreadArrays([emitName], args));
82581
+ }
82582
+ };
82583
+ var returnValue = original.apply(this, args);
82584
+ if (isPromise(returnValue)) {
82585
+ returnValue.then(emit);
82586
+ }
82587
+ else {
82588
+ emit(returnValue);
82589
+ }
82590
+ return returnValue;
82591
+ };
82592
+ };
82593
+ }
82594
+ function isPromise(obj) {
82595
+ return obj instanceof Promise || (obj && typeof obj.then === 'function');
82596
+ }
82597
+
82598
+ ;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/helpers/metadata.js
82599
+ /** @see {@link https://github.com/vuejs/vue-class-component/blob/master/src/reflect.ts} */
82600
+ var reflectMetadataIsSupported = typeof Reflect !== 'undefined' && typeof Reflect.getMetadata !== 'undefined';
82601
+ function metadata_applyMetadata(options, target, key) {
82602
+ if (reflectMetadataIsSupported) {
82603
+ if (!Array.isArray(options) &&
82604
+ typeof options !== 'function' &&
82605
+ !options.hasOwnProperty('type') &&
82606
+ typeof options.type === 'undefined') {
82607
+ var type = Reflect.getMetadata('design:type', target, key);
82608
+ if (type !== Object) {
82609
+ options.type = type;
82610
+ }
82611
+ }
82612
+ }
82613
+ }
82614
+
82615
+ ;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/Model.js
82616
+
82617
+
82618
+ /**
82619
+ * decorator of model
82620
+ * @param event event name
82621
+ * @param options options
82622
+ * @return PropertyDecorator
82623
+ */
82624
+ function Model(event, options) {
82625
+ if (options === void 0) { options = {}; }
82626
+ return function (target, key) {
82627
+ applyMetadata(options, target, key);
82628
+ createDecorator(function (componentOptions, k) {
82629
+ ;
82630
+ (componentOptions.props || (componentOptions.props = {}))[k] = options;
82631
+ componentOptions.model = { prop: k, event: event || k };
82632
+ })(target, key);
82633
+ };
82634
+ }
82635
+
82636
+ ;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/ModelSync.js
82637
+
82638
+
82639
+ /**
82640
+ * decorator of synced model and prop
82641
+ * @param propName the name to interface with from outside, must be different from decorated property
82642
+ * @param event event name
82643
+ * @param options options
82644
+ * @return PropertyDecorator
82645
+ */
82646
+ function ModelSync(propName, event, options) {
82647
+ if (options === void 0) { options = {}; }
82648
+ return function (target, key) {
82649
+ applyMetadata(options, target, key);
82650
+ createDecorator(function (componentOptions, k) {
82651
+ ;
82652
+ (componentOptions.props || (componentOptions.props = {}))[propName] = options;
82653
+ componentOptions.model = { prop: propName, event: event || k };
82654
+ (componentOptions.computed || (componentOptions.computed = {}))[k] = {
82655
+ get: function () {
82656
+ return this[propName];
82657
+ },
82658
+ set: function (value) {
82659
+ // @ts-ignore
82660
+ this.$emit(event, value);
82661
+ },
82662
+ };
82663
+ })(target, key);
82664
+ };
82665
+ }
82666
+
82667
+ ;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/Prop.js
82668
+
82669
+
82670
+ /**
82671
+ * decorator of a prop
82672
+ * @param options the options for the prop
82673
+ * @return PropertyDecorator | void
82674
+ */
82675
+ function Prop(options) {
82676
+ if (options === void 0) { options = {}; }
82677
+ return function (target, key) {
82678
+ metadata_applyMetadata(options, target, key);
82679
+ vue_class_component_esm_createDecorator(function (componentOptions, k) {
82680
+ ;
82681
+ (componentOptions.props || (componentOptions.props = {}))[k] = options;
82682
+ })(target, key);
82683
+ };
82684
+ }
82685
+
82686
+ ;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/PropSync.js
82687
+
82688
+
82689
+ /**
82690
+ * decorator of a synced prop
82691
+ * @param propName the name to interface with from outside, must be different from decorated property
82692
+ * @param options the options for the synced prop
82693
+ * @return PropertyDecorator | void
82694
+ */
82695
+ function PropSync(propName, options) {
82696
+ if (options === void 0) { options = {}; }
82697
+ return function (target, key) {
82698
+ applyMetadata(options, target, key);
82699
+ createDecorator(function (componentOptions, k) {
82700
+ ;
82701
+ (componentOptions.props || (componentOptions.props = {}))[propName] = options;
82702
+ (componentOptions.computed || (componentOptions.computed = {}))[k] = {
82703
+ get: function () {
82704
+ return this[propName];
82705
+ },
82706
+ set: function (value) {
82707
+ this.$emit("update:" + propName, value);
82708
+ },
82709
+ };
82710
+ })(target, key);
82711
+ };
82712
+ }
82713
+
82714
+ ;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/index.js
82715
+ /** vue-property-decorator verson 9.1.2 MIT LICENSE copyright 2020 kaorun343 */
82716
+ /// <reference types='reflect-metadata'/>
82717
+
82718
+
82719
+
82720
+
82721
+
82722
+
82723
+
82724
+
82725
+
82726
+
82727
+
82728
+
82729
+
82730
+
82731
+
82732
+
82733
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=template&id=7f11c04f&scoped=true&
82734
+ var scanner_high_camera_componentvue_type_template_id_7f11c04f_scoped_true_render = function render() {
82735
+ var _vm = this,
82736
+ _c = _vm._self._c,
82737
+ _setup = _vm._self._setupProxy;
82738
+ return _c('div', {
82739
+ staticClass: "scanner-high-camera-component"
82740
+ }, [_c('div', {
82741
+ staticClass: "scanner-result-content"
82742
+ }, [_c('div', {
82743
+ staticClass: "content-main flex-1"
82744
+ }, [_vm.loadSuccess ? _c('div', {
82745
+ staticClass: "load-success"
82746
+ }, [_c('img', {
82747
+ attrs: {
82748
+ "id": "photo",
82749
+ "src": _vm.scannerResultSrc
82750
+ }
82751
+ })]) : _c('div', {
82752
+ staticClass: "load-error"
82753
+ }, [_c('i', {
82754
+ staticClass: "el-icon-s-cooperation"
82755
+ }), _c('p', [_vm._v("请先安装插件")])])]), _c('div', {
82756
+ staticClass: "handle-action"
82757
+ }, [_c('el-select', {
82758
+ staticClass: "select",
82759
+ attrs: {
82760
+ "size": "small"
82761
+ },
82762
+ on: {
82763
+ "change": _vm.selectChange
82764
+ },
82765
+ model: {
82766
+ value: _vm.camera,
82767
+ callback: function ($$v) {
82768
+ _vm.camera = $$v;
82769
+ },
82770
+ expression: "camera"
82771
+ }
82772
+ }, _vm._l(_vm.cameras, function (item) {
82773
+ return _c('el-option', {
82774
+ key: item.value,
82775
+ attrs: {
82776
+ "label": item.name,
82777
+ "value": item.value
82778
+ }
82779
+ });
82780
+ }), 1), _vm._l(_vm.buttonList, function (item) {
82781
+ return [_c('el-button', {
82782
+ key: item.name,
82783
+ attrs: {
82784
+ "type": "primary",
82785
+ "size": "small"
82786
+ },
82787
+ on: {
82788
+ "click": function ($event) {
82789
+ return _vm.handleAction(item.name);
82790
+ }
82791
+ }
82792
+ }, [_vm._v(_vm._s(item.label))])];
82793
+ })], 2)])]);
82794
+ };
82795
+ var scanner_high_camera_componentvue_type_template_id_7f11c04f_scoped_true_staticRenderFns = [];
82796
+
82797
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=script&lang=ts&
82798
+
82799
+ var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
82800
+ var c = arguments.length,
82801
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
82802
+ d;
82803
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
82804
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
82805
+ };
82806
+
82807
+ const BEGIN_DATA = 'data:image/jpeg;base64,';
82808
+ let ScannerHighCameraComponent = class ScannerHighCameraComponent extends (external_commonjs_vue_commonjs2_vue_root_Vue_default()) {
82809
+ constructor(...args) {
82810
+ super(...args);
82811
+ _defineProperty(this, "totalTimeLength", 0);
82812
+ _defineProperty(this, "timeLength", '');
82813
+ _defineProperty(this, "timer", 0);
82814
+ _defineProperty(this, "str1", '');
82815
+ _defineProperty(this, "str2", '');
82816
+ _defineProperty(this, "webSocket", void 0);
82817
+ _defineProperty(this, "scannerResultSrc", '');
82818
+ _defineProperty(this, "loadSuccess", true);
82819
+ _defineProperty(this, "camera", 0);
82820
+ _defineProperty(this, "cameras", [{
82821
+ name: '文档',
82822
+ value: 0
82823
+ }, {
82824
+ name: '照片',
82825
+ value: 1
82826
+ }]);
82827
+ _defineProperty(this, "buttonList", [
82828
+ // {label: '启动主', name: 'start-main'},
82829
+ // {label: '旋转启动主', name: 'rotation'},
82830
+ // {label: '启动副', name: 'start-vice'},
82831
+ // {label: '停止', name: 'stop'},
82832
+ // {label: '自动对焦', name: 'autofocus'},
82833
+ // {label: '去黑边', name: 'Black edge'},
82834
+ // {label: 'Base64', name: 'base64'},
82835
+ // {label: '开始录屏', name: 'start-record'},
82836
+ // {label: '停止录屏', name: 'stop-record'},
82837
+ {
82838
+ label: '拍照',
82839
+ name: 'take-pictures'
82840
+ }
82841
+ // {label: '设置去灰底', name: ''},
82842
+ // {label: 'FILTER设置', name: ''},
82843
+ // {label: 'PIN设置', name: ''},
82844
+ // {label: '自动寻边', name: ''},
82845
+ // {label: '身份证自动寻边', name: ''},
82846
+ // {label: 'vSetExposure', name: ''},
82847
+ // {label: 'vSetBrightness', name: ''},
82848
+ // {label: 'vSetContrast', name: ''},
82849
+ // {label: '设置分辨率', name: ''},
82850
+ ]);
82851
+ }
82852
+
82853
+ mounted() {
82854
+ this.webSocket = new WebSocket('ws://127.0.0.1:1818');
82855
+ window.onbeforeunload = () => {
82856
+ this.webSocket.send("bStopPlay()");
82857
+ this.webSocket.send("bStopPlay4()");
82858
+ };
82859
+ this.webSocket.onerror = event => {
82860
+ this.onError(event);
82861
+ };
82862
+ this.webSocket.onopen = event => {
82863
+ this.onOpen(event);
82864
+ };
82865
+ this.webSocket.onclose = event => {
82866
+ this.onClose(event);
82867
+ this.webSocket.send("bStopPlay()");
82868
+ };
82869
+ this.webSocket.onmessage = event => {
82870
+ this.onMessage(event);
82871
+ };
82872
+ setTimeout(() => {
82873
+ this.handleAction('start-main');
82874
+ }, 800);
82875
+ }
82876
+ destroyed() {
82496
82877
  this.handleAction('stop');
82497
82878
  this.webSocket.close();
82498
- },
82499
- methods: {
82500
- selectChange(val) {
82501
- let handleName = val === 1 ? 'start-vice' : 'start-main';
82502
- this.handleAction(handleName);
82503
- },
82504
- handleAction(name) {
82505
- switch (name) {
82506
- case 'start-main':
82507
- this.StartPlay_onclick();
82508
- break;
82509
- case 'rotation':
82510
- this.start('bStartPlayRotate(90)');
82511
- break;
82512
- case 'start-vice':
82513
- this.start('bStartPlay2');
82514
- break;
82515
- case 'stop':
82516
- this.start('bStopPlay');
82517
- break;
82518
- case 'autofocus':
82519
- this.start('AutoFocus');
82520
- break;
82521
- case 'Black edge':
82522
- this.start('vSetDelHBFlag(true)');
82523
- break;
82524
- case 'base64':
82525
- this.start('sGetBase64');
82526
- break;
82527
- case 'start-record':
82528
- this.start('bStartRec(d:\\test.avi)');
82529
- break;
82530
- case 'stop-record':
82531
- this.start('bStopRec');
82532
- break;
82533
- case 'take-pictures':
82534
- this.start('bSaveJPG(D:\\,Photo)');
82535
- this.$emit('send-scanner-result', this.scannerResultSrc);
82536
- break;
82537
- }
82538
- },
82539
- timeGo() {
82540
- this.totalTimeLength++;
82541
- let Hour = 0,
82542
- Minue = 0,
82543
- Second = 0;
82544
- Hour = Math.floor(this.totalTimeLength / 3600);
82545
- Minue = Math.floor(this.totalTimeLength / 60 % 60);
82546
- Second = Math.floor(this.totalTimeLength % 60);
82547
- this.timeLength = Hour + "时" + Minue + "分" + Second + "秒";
82548
- },
82549
- onMessage(event) {
82550
- if (event.data.indexOf('BarCodeTransferBegin') >= 0) {
82551
- console.log(event.data.replace('BarCodeTransferBegin', '').replace('BarCodeTransferEnd', ''));
82552
- } else if (event.data.indexOf('BeginbSaveJPG') >= 0) {
82553
- this.str1 = event.data.replace('BeginbSaveJPG', '').replace('EndbSaveJPG', '');
82554
- console.log(this.str1);
82555
- } else if (event.data.indexOf('BeginbStopPlay') >= 0) {
82556
- console.log(event.data);
82557
- console.log(event.data.replace('BeginbStopPlay', '').replace('EndbStopPlay', ''));
82558
- } else if (event.data.indexOf('BeginvSetResolution') >= 0) {
82559
- console.log(event.data.replace('BeginvSetResolution', '').replace('EndvSetResolution', ''));
82560
- } else if (event.data.indexOf('BeginvSetRemoveGBFlag') >= 0) {
82561
- console.log(event.data.replace('BeginvSetRemoveGBFlag', '').replace('EndvSetRemoveGBFlag', ''));
82562
- } else if (event.data.indexOf('BeginbFileExist') >= 0) {
82563
- console.log(event.data.replace('BeginbFileExist', '').replace('EndbFileExist', ''));
82564
- } else if (event.data.indexOf('BeginbStartPlay2') >= 0) {
82565
- console.log(event.data.replace('BeginbStartPlay2', '').replace('EndbStartPlay2', ''));
82566
- } else if (event.data.indexOf('BeginbStartPlay') >= 0) {
82567
- console.log(event.data.replace('BeginbStartPlay', '').replace('EndbStartPlay', ''));
82568
- } else if (event.data.indexOf('BeginbSetMode') >= 0) {
82569
- console.log(event.data.replace('BeginbSetMode', '').replace('EndbSetMode', ''));
82570
- } else {
82571
- this.scannerResultSrc = `${BEGIN_DATA}${event.data}`;
82879
+ }
82880
+ selectChange(val) {
82881
+ let handleName = val === 1 ? 'start-vice' : 'start-main';
82882
+ this.handleAction(handleName);
82883
+ }
82884
+ handleAction(name) {
82885
+ switch (name) {
82886
+ case 'start-main':
82887
+ this.StartPlay_onclick();
82888
+ break;
82889
+ case 'rotation':
82890
+ this.start('bStartPlayRotate(90)');
82891
+ break;
82892
+ case 'start-vice':
82893
+ this.start('bStartPlay2');
82894
+ break;
82895
+ case 'stop':
82896
+ this.start('bStopPlay');
82897
+ break;
82898
+ case 'autofocus':
82899
+ this.start('AutoFocus');
82900
+ break;
82901
+ case 'Black edge':
82902
+ this.start('vSetDelHBFlag(true)');
82903
+ break;
82904
+ case 'base64':
82905
+ this.start('sGetBase64');
82906
+ break;
82907
+ case 'start-record':
82908
+ this.start('bStartRec(d:\\test.avi)');
82909
+ break;
82910
+ case 'stop-record':
82911
+ this.start('bStopRec');
82912
+ break;
82913
+ case 'take-pictures':
82914
+ this.start('bSaveJPG(D:\\,Photo)');
82572
82915
  this.$emit('send-scanner-result', this.scannerResultSrc);
82916
+ break;
82917
+ }
82918
+ }
82919
+ timeGo() {
82920
+ this.totalTimeLength++;
82921
+ let Hour = 0,
82922
+ Minue = 0,
82923
+ Second = 0;
82924
+ Hour = Math.floor(this.totalTimeLength / 3600);
82925
+ Minue = Math.floor(this.totalTimeLength / 60 % 60);
82926
+ Second = Math.floor(this.totalTimeLength % 60);
82927
+ this.timeLength = Hour + "时" + Minue + "分" + Second + "秒";
82928
+ }
82929
+ onMessage(event) {
82930
+ if (event.data.indexOf('BarCodeTransferBegin') >= 0) {
82931
+ console.log(event.data.replace('BarCodeTransferBegin', '').replace('BarCodeTransferEnd', ''));
82932
+ } else if (event.data.indexOf('BeginbSaveJPG') >= 0) {
82933
+ this.str1 = event.data.replace('BeginbSaveJPG', '').replace('EndbSaveJPG', '');
82934
+ console.log(this.str1);
82935
+ } else if (event.data.indexOf('BeginbStopPlay') >= 0) {
82936
+ console.log(event.data);
82937
+ console.log(event.data.replace('BeginbStopPlay', '').replace('EndbStopPlay', ''));
82938
+ } else if (event.data.indexOf('BeginvSetResolution') >= 0) {
82939
+ console.log(event.data.replace('BeginvSetResolution', '').replace('EndvSetResolution', ''));
82940
+ } else if (event.data.indexOf('BeginvSetRemoveGBFlag') >= 0) {
82941
+ console.log(event.data.replace('BeginvSetRemoveGBFlag', '').replace('EndvSetRemoveGBFlag', ''));
82942
+ } else if (event.data.indexOf('BeginbFileExist') >= 0) {
82943
+ console.log(event.data.replace('BeginbFileExist', '').replace('EndbFileExist', ''));
82944
+ } else if (event.data.indexOf('BeginbStartPlay2') >= 0) {
82945
+ console.log(event.data.replace('BeginbStartPlay2', '').replace('EndbStartPlay2', ''));
82946
+ } else if (event.data.indexOf('BeginbStartPlay') >= 0) {
82947
+ console.log(event.data.replace('BeginbStartPlay', '').replace('EndbStartPlay', ''));
82948
+ } else if (event.data.indexOf('BeginbSetMode') >= 0) {
82949
+ console.log(event.data.replace('BeginbSetMode', '').replace('EndbSetMode', ''));
82950
+ } else {
82951
+ this.scannerResultSrc = `${BEGIN_DATA}${event.data}`;
82952
+ this.$emit('send-scanner-result', this.scannerResultSrc);
82953
+ }
82954
+ }
82955
+ onError(event) {
82956
+ console.log('error', event.data);
82957
+ this.loadSuccess = false;
82958
+ }
82959
+ onClose(event) {
82960
+ this.webSocket.send("bStopPlay()");
82961
+ this.webSocket.send("bStopPlay4()");
82962
+ }
82963
+ onOpen(event) {}
82964
+ start(el) {
82965
+ if (el == 'bStartRec(d:\\test.avi)') {
82966
+ this.timer = window.setInterval(this.timeGo, 1000);
82967
+ }
82968
+ if (el == 'bStopRec') {
82969
+ window.clearInterval(this.timer);
82970
+ this.totalTimeLength = 0;
82971
+ console.log("录屏结束");
82972
+ }
82973
+ this.webSocket.send(el);
82974
+ return false;
82975
+ }
82976
+ vout_OnClick() {}
82977
+ Stop_onclick() {
82978
+ this.webSocket.send("bStopPlay()");
82979
+ }
82980
+ StartPlay_onclick() {
82981
+ this.webSocket.send("vSetResolution(8)");
82982
+ this.webSocket.send("bStartPlay()");
82983
+ // this.loadSuccess = true
82984
+ }
82985
+ };
82986
+
82987
+ ScannerHighCameraComponent = __decorate([vue_class_component_esm({
82988
+ name: "scanner-high-camera-component"
82989
+ })], ScannerHighCameraComponent);
82990
+ /* harmony default export */ var scanner_high_camera_componentvue_type_script_lang_ts_ = (ScannerHighCameraComponent);
82991
+ ;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=script&lang=ts&
82992
+ /* harmony default export */ var component_scanner_high_camera_componentvue_type_script_lang_ts_ = (scanner_high_camera_componentvue_type_script_lang_ts_);
82993
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=style&index=0&id=7f11c04f&prod&scoped=true&lang=scss&
82994
+ // extracted by mini-css-extract-plugin
82995
+
82996
+ ;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=style&index=0&id=7f11c04f&prod&scoped=true&lang=scss&
82997
+
82998
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
82999
+ /* globals __VUE_SSR_CONTEXT__ */
83000
+
83001
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
83002
+ // This module is a runtime utility for cleaner component module output and will
83003
+ // be included in the final webpack user bundle.
83004
+
83005
+ function normalizeComponent(
83006
+ scriptExports,
83007
+ render,
83008
+ staticRenderFns,
83009
+ functionalTemplate,
83010
+ injectStyles,
83011
+ scopeId,
83012
+ moduleIdentifier /* server only */,
83013
+ shadowMode /* vue-cli only */
83014
+ ) {
83015
+ // Vue.extend constructor export interop
83016
+ var options =
83017
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
83018
+
83019
+ // render functions
83020
+ if (render) {
83021
+ options.render = render
83022
+ options.staticRenderFns = staticRenderFns
83023
+ options._compiled = true
83024
+ }
83025
+
83026
+ // functional template
83027
+ if (functionalTemplate) {
83028
+ options.functional = true
83029
+ }
83030
+
83031
+ // scopedId
83032
+ if (scopeId) {
83033
+ options._scopeId = 'data-v-' + scopeId
83034
+ }
83035
+
83036
+ var hook
83037
+ if (moduleIdentifier) {
83038
+ // server build
83039
+ hook = function (context) {
83040
+ // 2.3 injection
83041
+ context =
83042
+ context || // cached call
83043
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
83044
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
83045
+ // 2.2 with runInNewContext: true
83046
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
83047
+ context = __VUE_SSR_CONTEXT__
82573
83048
  }
82574
- },
82575
- onError(event) {
82576
- console.log('error', event.data);
82577
- this.loadSuccess = false;
82578
- },
82579
- onClose(event) {
82580
- this.webSocket.send("bStopPlay()");
82581
- this.webSocket.send("bStopPlay4()");
82582
- },
82583
- onOpen(event) {},
82584
- start(el) {
82585
- if (el == 'bStartRec(d:\\test.avi)') {
82586
- this.timer = window.setInterval(this.timeGo, 1000);
83049
+ // inject component styles
83050
+ if (injectStyles) {
83051
+ injectStyles.call(this, context)
82587
83052
  }
82588
- if (el == 'bStopRec') {
82589
- window.clearInterval(this.timer);
82590
- this.totalTimeLength = 0;
82591
- console.log("录屏结束");
83053
+ // register component module identifier for async chunk inferrence
83054
+ if (context && context._registeredComponents) {
83055
+ context._registeredComponents.add(moduleIdentifier)
82592
83056
  }
82593
- this.webSocket.send(el);
82594
- return false;
82595
- },
82596
- vout_OnClick() {},
82597
- Stop_onclick() {
82598
- this.webSocket.send("bStopPlay()");
82599
- },
82600
- StartPlay_onclick() {
82601
- this.webSocket.send("vSetResolution(8)");
82602
- this.webSocket.send("bStartPlay()");
82603
- // this.loadSuccess = true
83057
+ }
83058
+ // used by ssr in case component is cached and beforeCreate
83059
+ // never gets called
83060
+ options._ssrRegister = hook
83061
+ } else if (injectStyles) {
83062
+ hook = shadowMode
83063
+ ? function () {
83064
+ injectStyles.call(
83065
+ this,
83066
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
83067
+ )
83068
+ }
83069
+ : injectStyles
83070
+ }
83071
+
83072
+ if (hook) {
83073
+ if (options.functional) {
83074
+ // for template-only hot-reload because in that case the render fn doesn't
83075
+ // go through the normalizer
83076
+ options._injectStyles = hook
83077
+ // register for functional component in vue file
83078
+ var originalRender = options.render
83079
+ options.render = function renderWithStyleInjection(h, context) {
83080
+ hook.call(context)
83081
+ return originalRender(h, context)
83082
+ }
83083
+ } else {
83084
+ // inject component registration as beforeCreate hook
83085
+ var existing = options.beforeCreate
83086
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
82604
83087
  }
82605
83088
  }
82606
- });
82607
- ;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=script&lang=js&
82608
- /* harmony default export */ var component_scanner_high_camera_componentvue_type_script_lang_js_ = (scanner_high_camera_componentvue_type_script_lang_js_);
82609
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=style&index=0&id=e2cd46b0&prod&scoped=true&lang=scss&
82610
- // extracted by mini-css-extract-plugin
82611
83089
 
82612
- ;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=style&index=0&id=e2cd46b0&prod&scoped=true&lang=scss&
83090
+ return {
83091
+ exports: scriptExports,
83092
+ options: options
83093
+ }
83094
+ }
82613
83095
 
82614
83096
  ;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue
82615
83097
 
@@ -82620,129 +83102,124 @@ const BEGIN_DATA = 'data:image/jpeg;base64,';
82620
83102
 
82621
83103
  /* normalize component */
82622
83104
 
82623
- var scanner_high_camera_component_component = normalizeComponent(
82624
- component_scanner_high_camera_componentvue_type_script_lang_js_,
82625
- scanner_high_camera_componentvue_type_template_id_e2cd46b0_scoped_true_render,
82626
- scanner_high_camera_componentvue_type_template_id_e2cd46b0_scoped_true_staticRenderFns,
83105
+ var component = normalizeComponent(
83106
+ component_scanner_high_camera_componentvue_type_script_lang_ts_,
83107
+ scanner_high_camera_componentvue_type_template_id_7f11c04f_scoped_true_render,
83108
+ scanner_high_camera_componentvue_type_template_id_7f11c04f_scoped_true_staticRenderFns,
82627
83109
  false,
82628
83110
  null,
82629
- "e2cd46b0",
83111
+ "7f11c04f",
82630
83112
  null
82631
83113
 
82632
83114
  )
82633
83115
 
82634
- /* harmony default export */ var scanner_high_camera_component = (scanner_high_camera_component_component.exports);
82635
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=script&lang=js&
83116
+ /* harmony default export */ var scanner_high_camera_component = (component.exports);
83117
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=script&lang=ts&
82636
83118
 
82637
83119
 
82638
- /* harmony default export */ var scanner_high_camera_jieyuvue_type_script_lang_js_ = ({
82639
- name: "scanner-high-camera-jieyu",
82640
- components: {
82641
- ScannerHighCameraComponent: scanner_high_camera_component
82642
- },
82643
- props: {
82644
- openMode: {
82645
- default: '',
82646
- type: String
82647
- },
82648
- label: {
82649
- default: '',
82650
- type: String
82651
- },
82652
- tip: {
82653
- default: '',
82654
- type: String
82655
- },
82656
- className: {
82657
- default: '',
82658
- type: String
82659
- },
82660
- size: {
82661
- default: '',
82662
- type: String
82663
- },
82664
- type: {
82665
- default: '',
82666
- type: String
82667
- },
82668
- plain: {
82669
- default: false,
82670
- type: Boolean
82671
- },
82672
- round: {
82673
- default: false,
82674
- type: Boolean
82675
- },
82676
- loading: {
82677
- default: false,
82678
- type: Boolean
82679
- },
82680
- icon: {
82681
- default: '',
82682
- type: String
82683
- },
82684
- disabled: {
82685
- default: false,
82686
- type: Boolean
82687
- }
82688
- },
82689
- data: () => {
82690
- return {
82691
- dialogVisible: false,
82692
- scannerResult: ''
82693
- };
82694
- },
82695
- computed: {
82696
- _className() {
82697
- const classBase = ['z-button'];
82698
- if (this.type === 'text') {
82699
- classBase.push('i-font-size');
82700
- }
82701
- if (!this.className) {
82702
- return classBase;
82703
- } else if (typeof this.className === 'string') {
82704
- classBase.push(this.className);
82705
- } else {
82706
- classBase.push(...this.className);
82707
- }
83120
+ var scanner_high_camera_jieyuvue_type_script_lang_ts_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
83121
+ var c = arguments.length,
83122
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
83123
+ d;
83124
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
83125
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
83126
+ };
83127
+
83128
+
83129
+ let ScannerHighCameraJieyu = class ScannerHighCameraJieyu extends (external_commonjs_vue_commonjs2_vue_root_Vue_default()) {
83130
+ constructor(...args) {
83131
+ super(...args);
83132
+ _defineProperty(this, "openMode", void 0);
83133
+ _defineProperty(this, "label", void 0);
83134
+ _defineProperty(this, "tip", void 0);
83135
+ _defineProperty(this, "className", void 0);
83136
+ _defineProperty(this, "size", void 0);
83137
+ _defineProperty(this, "type", void 0);
83138
+ _defineProperty(this, "plain", void 0);
83139
+ _defineProperty(this, "round", void 0);
83140
+ _defineProperty(this, "loading", void 0);
83141
+ _defineProperty(this, "icon", void 0);
83142
+ _defineProperty(this, "disabled", void 0);
83143
+ _defineProperty(this, "dialogVisible", false);
83144
+ _defineProperty(this, "scannerResult", '');
83145
+ }
83146
+ get _className() {
83147
+ const classBase = ['z-button'];
83148
+ if (this.type === 'text') {
83149
+ classBase.push('i-font-size');
83150
+ }
83151
+ if (!this.className) {
82708
83152
  return classBase;
83153
+ } else if (typeof this.className === 'string') {
83154
+ classBase.push(this.className);
83155
+ } else {
83156
+ classBase.push(...this.className);
82709
83157
  }
82710
- },
82711
- methods: {
82712
- openScanDialog() {
82713
- this.dialogVisible = true;
82714
- },
82715
- setScannerResult(src) {
82716
- this.scannerResult = src;
82717
- if (this.openMode !== 'dialog') {
82718
- this.$emit('send-scanner-result', this.scannerResult);
82719
- }
82720
- },
82721
- sendScannerResult() {
82722
- if (this.scannerResult) {
82723
- this.$emit('send-scanner-result', this.scannerResult);
82724
- this.dialogVisible = false;
82725
- }
83158
+ return classBase;
83159
+ }
83160
+ openScanDialog() {
83161
+ this.dialogVisible = true;
83162
+ }
83163
+ setScannerResult(src) {
83164
+ this.scannerResult = src;
83165
+ if (this.openMode !== 'dialog') {
83166
+ this.$emit('send-scanner-result', this.scannerResult);
82726
83167
  }
82727
83168
  }
82728
- });
82729
- ;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=script&lang=js&
82730
- /* harmony default export */ var src_scanner_high_camera_jieyuvue_type_script_lang_js_ = (scanner_high_camera_jieyuvue_type_script_lang_js_);
83169
+ sendScannerResult() {
83170
+ if (this.scannerResult) {
83171
+ this.$emit('send-scanner-result', this.scannerResult);
83172
+ this.dialogVisible = false;
83173
+ }
83174
+ }
83175
+ };
83176
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop({
83177
+ default: ''
83178
+ })], ScannerHighCameraJieyu.prototype, "openMode", void 0);
83179
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop()], ScannerHighCameraJieyu.prototype, "label", void 0);
83180
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop()], ScannerHighCameraJieyu.prototype, "tip", void 0);
83181
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop()], ScannerHighCameraJieyu.prototype, "className", void 0);
83182
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop()], ScannerHighCameraJieyu.prototype, "size", void 0);
83183
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop()], ScannerHighCameraJieyu.prototype, "type", void 0);
83184
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop()], ScannerHighCameraJieyu.prototype, "plain", void 0);
83185
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop()], ScannerHighCameraJieyu.prototype, "round", void 0);
83186
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop()], ScannerHighCameraJieyu.prototype, "loading", void 0);
83187
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop({
83188
+ default: 'el-icon-postcard'
83189
+ })], ScannerHighCameraJieyu.prototype, "icon", void 0);
83190
+ scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([Prop({
83191
+ default: false
83192
+ })], ScannerHighCameraJieyu.prototype, "disabled", void 0);
83193
+ ScannerHighCameraJieyu = scanner_high_camera_jieyuvue_type_script_lang_ts_decorate([vue_class_component_esm({
83194
+ name: 'scanner-high-camera-jieyu',
83195
+ components: {
83196
+ ScannerHighCameraComponent: scanner_high_camera_component
83197
+ }
83198
+ })], ScannerHighCameraJieyu);
83199
+ /* harmony default export */ var scanner_high_camera_jieyuvue_type_script_lang_ts_ = (ScannerHighCameraJieyu);
83200
+ ;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=script&lang=ts&
83201
+ /* harmony default export */ var src_scanner_high_camera_jieyuvue_type_script_lang_ts_ = (scanner_high_camera_jieyuvue_type_script_lang_ts_);
83202
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=style&index=0&id=fa276214&prod&lang=scss&
83203
+ // extracted by mini-css-extract-plugin
83204
+
83205
+ ;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=style&index=0&id=fa276214&prod&lang=scss&
83206
+
82731
83207
  ;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue
82732
83208
 
82733
83209
 
82734
83210
 
83211
+ ;
82735
83212
 
82736
83213
 
82737
83214
  /* normalize component */
82738
- ;
83215
+
82739
83216
  var scanner_high_camera_jieyu_component = normalizeComponent(
82740
- src_scanner_high_camera_jieyuvue_type_script_lang_js_,
82741
- scanner_high_camera_jieyuvue_type_template_id_4b9f6478_scoped_true_render,
82742
- scanner_high_camera_jieyuvue_type_template_id_4b9f6478_scoped_true_staticRenderFns,
83217
+ src_scanner_high_camera_jieyuvue_type_script_lang_ts_,
83218
+ render,
83219
+ staticRenderFns,
82743
83220
  false,
82744
83221
  null,
82745
- "4b9f6478",
83222
+ null,
82746
83223
  null
82747
83224
 
82748
83225
  )
@@ -82765,7 +83242,7 @@ scanner_high_camera_jieyu.install = Vue => {
82765
83242
  ;// CONCATENATED MODULE: ./packages/index.js
82766
83243
 
82767
83244
 
82768
-
83245
+ // import ZSEmpty from "./zs-empty";
82769
83246
  // import IdCardReaderDemo from "./id-card-reader-demo";
82770
83247
 
82771
83248
  // import {
@@ -82783,7 +83260,8 @@ scanner_high_camera_jieyu.install = Vue => {
82783
83260
  // Dialog
82784
83261
  // }
82785
83262
  // 组件列表
82786
- const components = [packages_zs_empty,
83263
+ const components = [
83264
+ // ZSEmpty,
82787
83265
  // IdCardReaderDemo,
82788
83266
  packages_scanner_high_camera_jieyu];
82789
83267
 
@@ -82797,12 +83275,12 @@ const install = Vue => {
82797
83275
  // if (install.installed) return
82798
83276
  // 遍历注册全局组件
82799
83277
  components.forEach(item => {
82800
- // console.log(Object.keys(item));
83278
+ console.log(item);
82801
83279
  // Object.keys(item).forEach(key => console.log(key, item[key]))
82802
- // const component = item['options']; // 由于用了ts这里写法略有不同,坑!!
82803
- // Vue.component(component.name, component)
82804
- console.log(item.name);
82805
- Vue.component(item.name, item);
83280
+ const component = item['options']; // 由于用了ts这里写法略有不同,坑!!
83281
+ Vue.component(component.name, component);
83282
+ // console.log(item.name);
83283
+ // Vue.component(item.name, item)
82806
83284
  });
82807
83285
  };
82808
83286
  // 判断是否是直接引入文件