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