unify-external-plugin-platform 0.0.2-6 → 0.0.2-8
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 +168 -263
- package/dist/external-plugin.common.js.map +1 -1
- package/dist/external-plugin.css +1 -1
- package/dist/external-plugin.umd.js +168 -263
- package/dist/external-plugin.umd.js.map +1 -1
- package/dist/external-plugin.umd.min.js +2 -2
- package/dist/external-plugin.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/vue.config.js +1 -1
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/unify-external-plugin-platform.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/docs/.vuepress/config.js +0 -46
- package/docs/README.md +0 -15
- package/docs/guide/changelog.md +0 -1
- package/docs/guide/installation.md +0 -10
- package/docs/guide/quickstart.md +0 -26
- package/docs/plugin/README.md +0 -1
- package/docs/plugin/empty.md +0 -1
- package/packages/id-card-reader-demo/index.ts +0 -9
- package/packages/index.js +0 -29
- package/packages/scanner-high-camera-jieyu/images/img_blank_empty.png +0 -0
- package/packages/scanner-high-camera-jieyu/index.ts +0 -14
- package/packages/zs-empty/index.ts +0 -9
@@ -230,22 +230,6 @@ module.exports = function (key, value) {
|
|
230
230
|
};
|
231
231
|
|
232
232
|
|
233
|
-
/***/ }),
|
234
|
-
|
235
|
-
/***/ 5117:
|
236
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
237
|
-
|
238
|
-
"use strict";
|
239
|
-
|
240
|
-
var tryToString = __webpack_require__(6330);
|
241
|
-
|
242
|
-
var $TypeError = TypeError;
|
243
|
-
|
244
|
-
module.exports = function (O, P) {
|
245
|
-
if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
246
|
-
};
|
247
|
-
|
248
|
-
|
249
233
|
/***/ }),
|
250
234
|
|
251
235
|
/***/ 9781:
|
@@ -1517,57 +1501,6 @@ $({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILEN
|
|
1517
1501
|
});
|
1518
1502
|
|
1519
1503
|
|
1520
|
-
/***/ }),
|
1521
|
-
|
1522
|
-
/***/ 541:
|
1523
|
-
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
1524
|
-
|
1525
|
-
"use strict";
|
1526
|
-
|
1527
|
-
var $ = __webpack_require__(2109);
|
1528
|
-
var toObject = __webpack_require__(7908);
|
1529
|
-
var lengthOfArrayLike = __webpack_require__(6244);
|
1530
|
-
var setArrayLength = __webpack_require__(3658);
|
1531
|
-
var deletePropertyOrThrow = __webpack_require__(5117);
|
1532
|
-
var doesNotExceedSafeInteger = __webpack_require__(7207);
|
1533
|
-
|
1534
|
-
// IE8-
|
1535
|
-
var INCORRECT_RESULT = [].unshift(0) !== 1;
|
1536
|
-
|
1537
|
-
// V8 ~ Chrome < 71 and Safari <= 15.4, FF < 23 throws InternalError
|
1538
|
-
var SILENT_ON_NON_WRITABLE_LENGTH = !function () {
|
1539
|
-
try {
|
1540
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
1541
|
-
Object.defineProperty([], 'length', { writable: false }).unshift();
|
1542
|
-
} catch (error) {
|
1543
|
-
return error instanceof TypeError;
|
1544
|
-
}
|
1545
|
-
}();
|
1546
|
-
|
1547
|
-
// `Array.prototype.unshift` method
|
1548
|
-
// https://tc39.es/ecma262/#sec-array.prototype.unshift
|
1549
|
-
$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_RESULT || SILENT_ON_NON_WRITABLE_LENGTH }, {
|
1550
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1551
|
-
unshift: function unshift(item) {
|
1552
|
-
var O = toObject(this);
|
1553
|
-
var len = lengthOfArrayLike(O);
|
1554
|
-
var argCount = arguments.length;
|
1555
|
-
if (argCount) {
|
1556
|
-
doesNotExceedSafeInteger(len + argCount);
|
1557
|
-
var k = len;
|
1558
|
-
while (k--) {
|
1559
|
-
var to = k + argCount;
|
1560
|
-
if (k in O) O[to] = O[k];
|
1561
|
-
else deletePropertyOrThrow(O, to);
|
1562
|
-
}
|
1563
|
-
for (var j = 0; j < argCount; j++) {
|
1564
|
-
O[j] = arguments[j];
|
1565
|
-
}
|
1566
|
-
} return setArrayLength(O, len + argCount);
|
1567
|
-
}
|
1568
|
-
});
|
1569
|
-
|
1570
|
-
|
1571
1504
|
/***/ }),
|
1572
1505
|
|
1573
1506
|
/***/ 5053:
|
@@ -1692,7 +1625,7 @@ if (typeof window !== 'undefined') {
|
|
1692
1625
|
// Indicate to webpack that this file can be concatenated
|
1693
1626
|
/* harmony default export */ var setPublicPath = (null);
|
1694
1627
|
|
1695
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=template&id=
|
1628
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=template&id=52cf5f01&scoped=true&
|
1696
1629
|
var render = function render() {
|
1697
1630
|
var _vm = this,
|
1698
1631
|
_c = _vm._self._c,
|
@@ -1709,7 +1642,7 @@ var render = function render() {
|
|
1709
1642
|
};
|
1710
1643
|
var staticRenderFns = [];
|
1711
1644
|
|
1712
|
-
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=template&id=
|
1645
|
+
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=template&id=52cf5f01&scoped=true&
|
1713
1646
|
|
1714
1647
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
1715
1648
|
function _typeof(obj) {
|
@@ -1759,16 +1692,14 @@ function _defineProperty(obj, key, value) {
|
|
1759
1692
|
;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
1760
1693
|
var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
1761
1694
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
|
1762
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
1763
|
-
var es_array_push = __webpack_require__(7658);
|
1764
1695
|
;// CONCATENATED MODULE: ./node_modules/vue-class-component/dist/vue-class-component.esm.js
|
1765
|
-
|
1766
1696
|
/**
|
1767
1697
|
* vue-class-component v7.2.6
|
1768
1698
|
* (c) 2015-present Evan You
|
1769
1699
|
* @license MIT
|
1770
1700
|
*/
|
1771
1701
|
|
1702
|
+
|
1772
1703
|
function vue_class_component_esm_typeof(obj) {
|
1773
1704
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
1774
1705
|
vue_class_component_esm_typeof = function (obj) {
|
@@ -1779,8 +1710,10 @@ function vue_class_component_esm_typeof(obj) {
|
|
1779
1710
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
1780
1711
|
};
|
1781
1712
|
}
|
1713
|
+
|
1782
1714
|
return vue_class_component_esm_typeof(obj);
|
1783
1715
|
}
|
1716
|
+
|
1784
1717
|
function vue_class_component_esm_defineProperty(obj, key, value) {
|
1785
1718
|
if (key in obj) {
|
1786
1719
|
Object.defineProperty(obj, key, {
|
@@ -1792,20 +1725,26 @@ function vue_class_component_esm_defineProperty(obj, key, value) {
|
|
1792
1725
|
} else {
|
1793
1726
|
obj[key] = value;
|
1794
1727
|
}
|
1728
|
+
|
1795
1729
|
return obj;
|
1796
1730
|
}
|
1731
|
+
|
1797
1732
|
function _toConsumableArray(arr) {
|
1798
1733
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
1799
1734
|
}
|
1735
|
+
|
1800
1736
|
function _arrayWithoutHoles(arr) {
|
1801
1737
|
if (Array.isArray(arr)) {
|
1802
1738
|
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
1739
|
+
|
1803
1740
|
return arr2;
|
1804
1741
|
}
|
1805
1742
|
}
|
1743
|
+
|
1806
1744
|
function _iterableToArray(iter) {
|
1807
1745
|
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
1808
1746
|
}
|
1747
|
+
|
1809
1748
|
function _nonIterableSpread() {
|
1810
1749
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
1811
1750
|
}
|
@@ -1825,10 +1764,12 @@ function copyReflectionMetadata(to, from) {
|
|
1825
1764
|
forwardMetadata(to, from, key);
|
1826
1765
|
});
|
1827
1766
|
}
|
1767
|
+
|
1828
1768
|
function forwardMetadata(to, from, propertyKey) {
|
1829
1769
|
var metaKeys = propertyKey ? Reflect.getOwnMetadataKeys(from, propertyKey) : Reflect.getOwnMetadataKeys(from);
|
1830
1770
|
metaKeys.forEach(function (metaKey) {
|
1831
1771
|
var metadata = propertyKey ? Reflect.getOwnMetadata(metaKey, from, propertyKey) : Reflect.getOwnMetadata(metaKey, from);
|
1772
|
+
|
1832
1773
|
if (propertyKey) {
|
1833
1774
|
Reflect.defineMetadata(metaKey, metadata, to, propertyKey);
|
1834
1775
|
} else {
|
@@ -1836,6 +1777,7 @@ function forwardMetadata(to, from, propertyKey) {
|
|
1836
1777
|
}
|
1837
1778
|
});
|
1838
1779
|
}
|
1780
|
+
|
1839
1781
|
var fakeArray = {
|
1840
1782
|
__proto__: []
|
1841
1783
|
};
|
@@ -1843,12 +1785,15 @@ var hasProto = fakeArray instanceof Array;
|
|
1843
1785
|
function vue_class_component_esm_createDecorator(factory) {
|
1844
1786
|
return function (target, key, index) {
|
1845
1787
|
var Ctor = typeof target === 'function' ? target : target.constructor;
|
1788
|
+
|
1846
1789
|
if (!Ctor.__decorators__) {
|
1847
1790
|
Ctor.__decorators__ = [];
|
1848
1791
|
}
|
1792
|
+
|
1849
1793
|
if (typeof index !== 'number') {
|
1850
1794
|
index = undefined;
|
1851
1795
|
}
|
1796
|
+
|
1852
1797
|
Ctor.__decorators__.push(function (options) {
|
1853
1798
|
return factory(options, key, index);
|
1854
1799
|
});
|
@@ -1858,12 +1803,14 @@ function mixins() {
|
|
1858
1803
|
for (var _len = arguments.length, Ctors = new Array(_len), _key = 0; _key < _len; _key++) {
|
1859
1804
|
Ctors[_key] = arguments[_key];
|
1860
1805
|
}
|
1806
|
+
|
1861
1807
|
return Vue.extend({
|
1862
1808
|
mixins: Ctors
|
1863
1809
|
});
|
1864
1810
|
}
|
1865
1811
|
function isPrimitive(value) {
|
1866
1812
|
var type = vue_class_component_esm_typeof(value);
|
1813
|
+
|
1867
1814
|
return value == null || type !== 'object' && type !== 'function';
|
1868
1815
|
}
|
1869
1816
|
function warn(message) {
|
@@ -1871,9 +1818,11 @@ function warn(message) {
|
|
1871
1818
|
console.warn('[vue-class-component] ' + message);
|
1872
1819
|
}
|
1873
1820
|
}
|
1821
|
+
|
1874
1822
|
function collectDataFromConstructor(vm, Component) {
|
1875
1823
|
// override _init to prevent to init as Vue instance
|
1876
1824
|
var originalInit = Component.prototype._init;
|
1825
|
+
|
1877
1826
|
Component.prototype._init = function () {
|
1878
1827
|
var _this = this;
|
1879
1828
|
|
@@ -1887,6 +1836,7 @@ function collectDataFromConstructor(vm, Component) {
|
|
1887
1836
|
}
|
1888
1837
|
}
|
1889
1838
|
}
|
1839
|
+
|
1890
1840
|
keys.forEach(function (key) {
|
1891
1841
|
Object.defineProperty(_this, key, {
|
1892
1842
|
get: function get() {
|
@@ -1900,6 +1850,7 @@ function collectDataFromConstructor(vm, Component) {
|
|
1900
1850
|
});
|
1901
1851
|
}; // should be acquired class property values
|
1902
1852
|
|
1853
|
+
|
1903
1854
|
var data = new Component(); // restore original _init to avoid memory leak (#209)
|
1904
1855
|
|
1905
1856
|
Component.prototype._init = originalInit; // create plain data object
|
@@ -1910,12 +1861,14 @@ function collectDataFromConstructor(vm, Component) {
|
|
1910
1861
|
plainData[key] = data[key];
|
1911
1862
|
}
|
1912
1863
|
});
|
1864
|
+
|
1913
1865
|
if (false) {}
|
1866
|
+
|
1914
1867
|
return plainData;
|
1915
1868
|
}
|
1869
|
+
|
1916
1870
|
var $internalHooks = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeDestroy', 'destroyed', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch' // 2.6
|
1917
1871
|
];
|
1918
|
-
|
1919
1872
|
function componentFactory(Component) {
|
1920
1873
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
1921
1874
|
options.name = options.name || Component._componentTag || Component.name; // prototype props.
|
@@ -1926,11 +1879,14 @@ function componentFactory(Component) {
|
|
1926
1879
|
return;
|
1927
1880
|
} // hooks
|
1928
1881
|
|
1882
|
+
|
1929
1883
|
if ($internalHooks.indexOf(key) > -1) {
|
1930
1884
|
options[key] = proto[key];
|
1931
1885
|
return;
|
1932
1886
|
}
|
1887
|
+
|
1933
1888
|
var descriptor = Object.getOwnPropertyDescriptor(proto, key);
|
1889
|
+
|
1934
1890
|
if (descriptor.value !== void 0) {
|
1935
1891
|
// methods
|
1936
1892
|
if (typeof descriptor.value === 'function') {
|
@@ -1958,6 +1914,7 @@ function componentFactory(Component) {
|
|
1958
1914
|
}); // decorate options
|
1959
1915
|
|
1960
1916
|
var decorators = Component.__decorators__;
|
1917
|
+
|
1961
1918
|
if (decorators) {
|
1962
1919
|
decorators.forEach(function (fn) {
|
1963
1920
|
return fn(options);
|
@@ -1965,23 +1922,22 @@ function componentFactory(Component) {
|
|
1965
1922
|
delete Component.__decorators__;
|
1966
1923
|
} // find super
|
1967
1924
|
|
1925
|
+
|
1968
1926
|
var superProto = Object.getPrototypeOf(Component.prototype);
|
1969
1927
|
var Super = superProto instanceof (external_commonjs_vue_commonjs2_vue_root_Vue_default()) ? superProto.constructor : (external_commonjs_vue_commonjs2_vue_root_Vue_default());
|
1970
1928
|
var Extended = Super.extend(options);
|
1971
1929
|
forwardStaticMembers(Extended, Component, Super);
|
1930
|
+
|
1972
1931
|
if (reflectionIsSupported()) {
|
1973
1932
|
copyReflectionMetadata(Extended, Component);
|
1974
1933
|
}
|
1934
|
+
|
1975
1935
|
return Extended;
|
1976
1936
|
}
|
1977
|
-
var reservedPropertyNames = (/* unused pure expression or super */ null && ([
|
1978
|
-
//
|
1979
|
-
'
|
1980
|
-
//
|
1981
|
-
'super',
|
1982
|
-
// Component options that will be used by the component
|
1983
|
-
'options', 'superOptions', 'extendOptions', 'sealedOptions',
|
1984
|
-
// Private assets
|
1937
|
+
var reservedPropertyNames = (/* unused pure expression or super */ null && ([// Unique id
|
1938
|
+
'cid', // Super Vue constructor
|
1939
|
+
'super', // Component options that will be used by the component
|
1940
|
+
'options', 'superOptions', 'extendOptions', 'sealedOptions', // Private assets
|
1985
1941
|
'component', 'directive', 'filter']));
|
1986
1942
|
var shouldIgnore = {
|
1987
1943
|
prototype: true,
|
@@ -1989,6 +1945,7 @@ var shouldIgnore = {
|
|
1989
1945
|
callee: true,
|
1990
1946
|
caller: true
|
1991
1947
|
};
|
1948
|
+
|
1992
1949
|
function forwardStaticMembers(Extended, Original, Super) {
|
1993
1950
|
// We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
|
1994
1951
|
Object.getOwnPropertyNames(Original).forEach(function (key) {
|
@@ -1997,10 +1954,13 @@ function forwardStaticMembers(Extended, Original, Super) {
|
|
1997
1954
|
return;
|
1998
1955
|
} // Some browsers does not allow reconfigure built-in properties
|
1999
1956
|
|
1957
|
+
|
2000
1958
|
var extendedDescriptor = Object.getOwnPropertyDescriptor(Extended, key);
|
1959
|
+
|
2001
1960
|
if (extendedDescriptor && !extendedDescriptor.configurable) {
|
2002
1961
|
return;
|
2003
1962
|
}
|
1963
|
+
|
2004
1964
|
var descriptor = Object.getOwnPropertyDescriptor(Original, key); // If the user agent does not support `__proto__` or its family (IE <= 10),
|
2005
1965
|
// the sub class properties may be inherited properties from the super class in TypeScript.
|
2006
1966
|
// We need to exclude such properties to prevent to overwrite
|
@@ -2016,99 +1976,114 @@ function forwardStaticMembers(Extended, Original, Super) {
|
|
2016
1976
|
if (key === 'cid') {
|
2017
1977
|
return;
|
2018
1978
|
}
|
1979
|
+
|
2019
1980
|
var superDescriptor = Object.getOwnPropertyDescriptor(Super, key);
|
1981
|
+
|
2020
1982
|
if (!isPrimitive(descriptor.value) && superDescriptor && superDescriptor.value === descriptor.value) {
|
2021
1983
|
return;
|
2022
1984
|
}
|
2023
1985
|
} // Warn if the users manually declare reserved properties
|
2024
1986
|
|
1987
|
+
|
2025
1988
|
if (false) {}
|
1989
|
+
|
2026
1990
|
Object.defineProperty(Extended, key, descriptor);
|
2027
1991
|
});
|
2028
1992
|
}
|
1993
|
+
|
2029
1994
|
function Component(options) {
|
2030
1995
|
if (typeof options === 'function') {
|
2031
1996
|
return componentFactory(options);
|
2032
1997
|
}
|
1998
|
+
|
2033
1999
|
return function (Component) {
|
2034
2000
|
return componentFactory(Component, options);
|
2035
2001
|
};
|
2036
2002
|
}
|
2003
|
+
|
2037
2004
|
Component.registerHooks = function registerHooks(keys) {
|
2038
2005
|
$internalHooks.push.apply($internalHooks, _toConsumableArray(keys));
|
2039
2006
|
};
|
2007
|
+
|
2040
2008
|
/* harmony default export */ var vue_class_component_esm = (Component);
|
2041
2009
|
|
2042
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.unshift.js
|
2043
|
-
var es_array_unshift = __webpack_require__(541);
|
2044
|
-
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/Emit.js
|
2045
2010
|
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2011
|
+
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/Emit.js
|
2012
|
+
var __spreadArrays = (undefined && undefined.__spreadArrays) || function () {
|
2013
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
2014
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
2015
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
2016
|
+
r[k] = a[j];
|
2017
|
+
return r;
|
2050
2018
|
};
|
2051
2019
|
// Code copied from Vue/src/shared/util.js
|
2052
2020
|
var hyphenateRE = /\B([A-Z])/g;
|
2053
|
-
var hyphenate = function (str) {
|
2054
|
-
return str.replace(hyphenateRE, '-$1').toLowerCase();
|
2055
|
-
};
|
2021
|
+
var hyphenate = function (str) { return str.replace(hyphenateRE, '-$1').toLowerCase(); };
|
2056
2022
|
/**
|
2057
2023
|
* decorator of an event-emitter function
|
2058
2024
|
* @param event The name of the event
|
2059
2025
|
* @return MethodDecorator
|
2060
2026
|
*/
|
2061
2027
|
function Emit(event) {
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
|
2081
|
-
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
2092
|
-
|
2028
|
+
return function (_target, propertyKey, descriptor) {
|
2029
|
+
var key = hyphenate(propertyKey);
|
2030
|
+
var original = descriptor.value;
|
2031
|
+
descriptor.value = function emitter() {
|
2032
|
+
var _this = this;
|
2033
|
+
var args = [];
|
2034
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
2035
|
+
args[_i] = arguments[_i];
|
2036
|
+
}
|
2037
|
+
var emit = function (returnValue) {
|
2038
|
+
var emitName = event || key;
|
2039
|
+
if (returnValue === undefined) {
|
2040
|
+
if (args.length === 0) {
|
2041
|
+
_this.$emit(emitName);
|
2042
|
+
}
|
2043
|
+
else if (args.length === 1) {
|
2044
|
+
_this.$emit(emitName, args[0]);
|
2045
|
+
}
|
2046
|
+
else {
|
2047
|
+
_this.$emit.apply(_this, __spreadArrays([emitName], args));
|
2048
|
+
}
|
2049
|
+
}
|
2050
|
+
else {
|
2051
|
+
args.unshift(returnValue);
|
2052
|
+
_this.$emit.apply(_this, __spreadArrays([emitName], args));
|
2053
|
+
}
|
2054
|
+
};
|
2055
|
+
var returnValue = original.apply(this, args);
|
2056
|
+
if (isPromise(returnValue)) {
|
2057
|
+
returnValue.then(emit);
|
2058
|
+
}
|
2059
|
+
else {
|
2060
|
+
emit(returnValue);
|
2061
|
+
}
|
2062
|
+
return returnValue;
|
2063
|
+
};
|
2093
2064
|
};
|
2094
|
-
};
|
2095
2065
|
}
|
2096
2066
|
function isPromise(obj) {
|
2097
|
-
|
2067
|
+
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
2098
2068
|
}
|
2069
|
+
|
2099
2070
|
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/helpers/metadata.js
|
2100
2071
|
/** @see {@link https://github.com/vuejs/vue-class-component/blob/master/src/reflect.ts} */
|
2101
2072
|
var reflectMetadataIsSupported = typeof Reflect !== 'undefined' && typeof Reflect.getMetadata !== 'undefined';
|
2102
2073
|
function metadata_applyMetadata(options, target, key) {
|
2103
|
-
|
2104
|
-
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
2074
|
+
if (reflectMetadataIsSupported) {
|
2075
|
+
if (!Array.isArray(options) &&
|
2076
|
+
typeof options !== 'function' &&
|
2077
|
+
!options.hasOwnProperty('type') &&
|
2078
|
+
typeof options.type === 'undefined') {
|
2079
|
+
var type = Reflect.getMetadata('design:type', target, key);
|
2080
|
+
if (type !== Object) {
|
2081
|
+
options.type = type;
|
2082
|
+
}
|
2083
|
+
}
|
2109
2084
|
}
|
2110
|
-
}
|
2111
2085
|
}
|
2086
|
+
|
2112
2087
|
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/Model.js
|
2113
2088
|
|
2114
2089
|
|
@@ -2119,21 +2094,17 @@ function metadata_applyMetadata(options, target, key) {
|
|
2119
2094
|
* @return PropertyDecorator
|
2120
2095
|
*/
|
2121
2096
|
function Model(event, options) {
|
2122
|
-
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
2131
|
-
prop: k,
|
2132
|
-
event: event || k
|
2133
|
-
};
|
2134
|
-
})(target, key);
|
2135
|
-
};
|
2097
|
+
if (options === void 0) { options = {}; }
|
2098
|
+
return function (target, key) {
|
2099
|
+
applyMetadata(options, target, key);
|
2100
|
+
createDecorator(function (componentOptions, k) {
|
2101
|
+
;
|
2102
|
+
(componentOptions.props || (componentOptions.props = {}))[k] = options;
|
2103
|
+
componentOptions.model = { prop: k, event: event || k };
|
2104
|
+
})(target, key);
|
2105
|
+
};
|
2136
2106
|
}
|
2107
|
+
|
2137
2108
|
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/ModelSync.js
|
2138
2109
|
|
2139
2110
|
|
@@ -2145,30 +2116,26 @@ function Model(event, options) {
|
|
2145
2116
|
* @return PropertyDecorator
|
2146
2117
|
*/
|
2147
2118
|
function ModelSync(propName, event, options) {
|
2148
|
-
|
2149
|
-
|
2150
|
-
|
2151
|
-
|
2152
|
-
|
2153
|
-
|
2154
|
-
|
2155
|
-
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
this.$emit(event, value);
|
2167
|
-
}
|
2168
|
-
};
|
2169
|
-
})(target, key);
|
2170
|
-
};
|
2119
|
+
if (options === void 0) { options = {}; }
|
2120
|
+
return function (target, key) {
|
2121
|
+
applyMetadata(options, target, key);
|
2122
|
+
createDecorator(function (componentOptions, k) {
|
2123
|
+
;
|
2124
|
+
(componentOptions.props || (componentOptions.props = {}))[propName] = options;
|
2125
|
+
componentOptions.model = { prop: propName, event: event || k };
|
2126
|
+
(componentOptions.computed || (componentOptions.computed = {}))[k] = {
|
2127
|
+
get: function () {
|
2128
|
+
return this[propName];
|
2129
|
+
},
|
2130
|
+
set: function (value) {
|
2131
|
+
// @ts-ignore
|
2132
|
+
this.$emit(event, value);
|
2133
|
+
},
|
2134
|
+
};
|
2135
|
+
})(target, key);
|
2136
|
+
};
|
2171
2137
|
}
|
2138
|
+
|
2172
2139
|
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/Prop.js
|
2173
2140
|
|
2174
2141
|
|
@@ -2178,17 +2145,16 @@ function ModelSync(propName, event, options) {
|
|
2178
2145
|
* @return PropertyDecorator | void
|
2179
2146
|
*/
|
2180
2147
|
function Prop(options) {
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
2187
|
-
|
2188
|
-
|
2189
|
-
})(target, key);
|
2190
|
-
};
|
2148
|
+
if (options === void 0) { options = {}; }
|
2149
|
+
return function (target, key) {
|
2150
|
+
metadata_applyMetadata(options, target, key);
|
2151
|
+
vue_class_component_esm_createDecorator(function (componentOptions, k) {
|
2152
|
+
;
|
2153
|
+
(componentOptions.props || (componentOptions.props = {}))[k] = options;
|
2154
|
+
})(target, key);
|
2155
|
+
};
|
2191
2156
|
}
|
2157
|
+
|
2192
2158
|
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/PropSync.js
|
2193
2159
|
|
2194
2160
|
|
@@ -2199,59 +2165,24 @@ function Prop(options) {
|
|
2199
2165
|
* @return PropertyDecorator | void
|
2200
2166
|
*/
|
2201
2167
|
function PropSync(propName, options) {
|
2202
|
-
|
2203
|
-
|
2204
|
-
|
2205
|
-
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2211
|
-
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
2215
|
-
|
2216
|
-
}
|
2217
|
-
|
2218
|
-
})(target, key);
|
2219
|
-
};
|
2168
|
+
if (options === void 0) { options = {}; }
|
2169
|
+
return function (target, key) {
|
2170
|
+
applyMetadata(options, target, key);
|
2171
|
+
createDecorator(function (componentOptions, k) {
|
2172
|
+
;
|
2173
|
+
(componentOptions.props || (componentOptions.props = {}))[propName] = options;
|
2174
|
+
(componentOptions.computed || (componentOptions.computed = {}))[k] = {
|
2175
|
+
get: function () {
|
2176
|
+
return this[propName];
|
2177
|
+
},
|
2178
|
+
set: function (value) {
|
2179
|
+
this.$emit("update:" + propName, value);
|
2180
|
+
},
|
2181
|
+
};
|
2182
|
+
})(target, key);
|
2183
|
+
};
|
2220
2184
|
}
|
2221
|
-
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/decorators/Watch.js
|
2222
2185
|
|
2223
|
-
|
2224
|
-
/**
|
2225
|
-
* decorator of a watch function
|
2226
|
-
* @param path the path or the expression to observe
|
2227
|
-
* @param WatchOption
|
2228
|
-
* @return MethodDecorator
|
2229
|
-
*/
|
2230
|
-
function Watch(path, options) {
|
2231
|
-
if (options === void 0) {
|
2232
|
-
options = {};
|
2233
|
-
}
|
2234
|
-
var _a = options.deep,
|
2235
|
-
deep = _a === void 0 ? false : _a,
|
2236
|
-
_b = options.immediate,
|
2237
|
-
immediate = _b === void 0 ? false : _b;
|
2238
|
-
return createDecorator(function (componentOptions, handler) {
|
2239
|
-
if (typeof componentOptions.watch !== 'object') {
|
2240
|
-
componentOptions.watch = Object.create(null);
|
2241
|
-
}
|
2242
|
-
var watch = componentOptions.watch;
|
2243
|
-
if (typeof watch[path] === 'object' && !Array.isArray(watch[path])) {
|
2244
|
-
watch[path] = [watch[path]];
|
2245
|
-
} else if (typeof watch[path] === 'undefined') {
|
2246
|
-
watch[path] = [];
|
2247
|
-
}
|
2248
|
-
watch[path].push({
|
2249
|
-
handler: handler,
|
2250
|
-
deep: deep,
|
2251
|
-
immediate: immediate
|
2252
|
-
});
|
2253
|
-
});
|
2254
|
-
}
|
2255
2186
|
;// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/index.js
|
2256
2187
|
/** vue-property-decorator verson 9.1.2 MIT LICENSE copyright 2020 kaorun343 */
|
2257
2188
|
/// <reference types='reflect-metadata'/>
|
@@ -2270,6 +2201,7 @@ function Watch(path, options) {
|
|
2270
2201
|
|
2271
2202
|
|
2272
2203
|
|
2204
|
+
|
2273
2205
|
;// 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/vue-loader-v15/lib/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=script&lang=ts&
|
2274
2206
|
|
2275
2207
|
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
@@ -2290,15 +2222,15 @@ __decorate([Prop({
|
|
2290
2222
|
default: '暂无数据'
|
2291
2223
|
})], ZSEmpty.prototype, "emptyTip", void 0);
|
2292
2224
|
ZSEmpty = __decorate([vue_class_component_esm({
|
2293
|
-
name: "
|
2225
|
+
name: "zs-empty"
|
2294
2226
|
})], ZSEmpty);
|
2295
2227
|
/* harmony default export */ var zs_emptyvue_type_script_lang_ts_ = (ZSEmpty);
|
2296
2228
|
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=script&lang=ts&
|
2297
2229
|
/* harmony default export */ var src_zs_emptyvue_type_script_lang_ts_ = (zs_emptyvue_type_script_lang_ts_);
|
2298
|
-
;// 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/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/vue-loader-v15/lib/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=style&index=0&id=
|
2230
|
+
;// 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/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/vue-loader-v15/lib/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=style&index=0&id=52cf5f01&prod&scoped=true&lang=scss&
|
2299
2231
|
// extracted by mini-css-extract-plugin
|
2300
2232
|
|
2301
|
-
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=style&index=0&id=
|
2233
|
+
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=style&index=0&id=52cf5f01&prod&scoped=true&lang=scss&
|
2302
2234
|
|
2303
2235
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
2304
2236
|
/* globals __VUE_SSR_CONTEXT__ */
|
@@ -2413,20 +2345,12 @@ var component = normalizeComponent(
|
|
2413
2345
|
staticRenderFns,
|
2414
2346
|
false,
|
2415
2347
|
null,
|
2416
|
-
"
|
2348
|
+
"52cf5f01",
|
2417
2349
|
null
|
2418
2350
|
|
2419
2351
|
)
|
2420
2352
|
|
2421
2353
|
/* harmony default export */ var zs_empty = (component.exports);
|
2422
|
-
;// CONCATENATED MODULE: ./packages/zs-empty/index.ts
|
2423
|
-
|
2424
|
-
// 组件的install方法用于按需引入
|
2425
|
-
// @ts-ignore
|
2426
|
-
zs_empty.install = Vue => {
|
2427
|
-
Vue.component(zs_empty.name, zs_empty);
|
2428
|
-
};
|
2429
|
-
/* harmony default export */ var packages_zs_empty = (zs_empty);
|
2430
2354
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/id-card-reader-demo/src/id-card-reader-demo.vue?vue&type=template&id=0c496452&scoped=true&
|
2431
2355
|
var id_card_reader_demovue_type_template_id_0c496452_scoped_true_render = function render() {
|
2432
2356
|
var _vm = this,
|
@@ -2472,6 +2396,8 @@ var id_card_reader_demovue_type_template_id_0c496452_scoped_true_render = functi
|
|
2472
2396
|
};
|
2473
2397
|
var id_card_reader_demovue_type_template_id_0c496452_scoped_true_staticRenderFns = [];
|
2474
2398
|
|
2399
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
2400
|
+
var es_array_push = __webpack_require__(7658);
|
2475
2401
|
;// 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/vue-loader-v15/lib/index.js??vue-loader-options!./packages/id-card-reader-demo/src/id-card-reader-demo.vue?vue&type=script&lang=ts&
|
2476
2402
|
|
2477
2403
|
|
@@ -2580,14 +2506,6 @@ var id_card_reader_demo_component = normalizeComponent(
|
|
2580
2506
|
)
|
2581
2507
|
|
2582
2508
|
/* harmony default export */ var id_card_reader_demo = (id_card_reader_demo_component.exports);
|
2583
|
-
;// CONCATENATED MODULE: ./packages/id-card-reader-demo/index.ts
|
2584
|
-
|
2585
|
-
// 组件的install方法用于按需引入
|
2586
|
-
// @ts-ignore
|
2587
|
-
id_card_reader_demo.install = Vue => {
|
2588
|
-
Vue.component(id_card_reader_demo.name, id_card_reader_demo);
|
2589
|
-
};
|
2590
|
-
/* harmony default export */ var packages_id_card_reader_demo = (id_card_reader_demo);
|
2591
2509
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./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&
|
2592
2510
|
var scanner_high_camera_jieyuvue_type_template_id_fa276214_render = function render() {
|
2593
2511
|
var _vm = this,
|
@@ -3077,26 +2995,13 @@ var scanner_high_camera_jieyu_component = normalizeComponent(
|
|
3077
2995
|
)
|
3078
2996
|
|
3079
2997
|
/* harmony default export */ var scanner_high_camera_jieyu = (scanner_high_camera_jieyu_component.exports);
|
3080
|
-
;// CONCATENATED MODULE: ./packages/scanner-high-camera-jieyu/index.ts
|
3081
|
-
/**
|
3082
|
-
* @author: lvcy
|
3083
|
-
* @date: 2023-01-09
|
3084
|
-
* @description:index
|
3085
|
-
*/
|
3086
|
-
|
3087
|
-
// 组件的install方法用于按需引入
|
3088
|
-
// @ts-ignore
|
3089
|
-
scanner_high_camera_jieyu.install = Vue => {
|
3090
|
-
Vue.component(scanner_high_camera_jieyu.name, scanner_high_camera_jieyu);
|
3091
|
-
};
|
3092
|
-
/* harmony default export */ var packages_scanner_high_camera_jieyu = (scanner_high_camera_jieyu);
|
3093
2998
|
;// CONCATENATED MODULE: ./packages/index.js
|
3094
2999
|
|
3095
3000
|
|
3096
3001
|
|
3097
3002
|
|
3098
3003
|
// 组件列表
|
3099
|
-
const components = [
|
3004
|
+
const components = [zs_empty, id_card_reader_demo, scanner_high_camera_jieyu];
|
3100
3005
|
|
3101
3006
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
|
3102
3007
|
const install = Vue => {
|