unify-external-plugin-platform 0.0.2-15 → 0.0.2-17
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/.browserslistrc +3 -3
- package/README.md +49 -49
- package/babel.config.js +5 -5
- package/dist/external-plugin.common.js +226 -208
- package/dist/external-plugin.common.js.map +1 -1
- package/dist/external-plugin.css +1 -1
- package/dist/external-plugin.umd.js +226 -208
- 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/tsconfig.json +42 -42
- package/vue.config.js +14 -2
package/.browserslistrc
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
> 1%
|
2
|
-
last 2 versions
|
3
|
-
not dead
|
1
|
+
> 1%
|
2
|
+
last 2 versions
|
3
|
+
not dead
|
package/README.md
CHANGED
@@ -1,49 +1,49 @@
|
|
1
|
-
# unify-external-plugin-platform
|
2
|
-
|
3
|
-
# 目录说明
|
4
|
-
```
|
5
|
-
* unify-external-plugin-platform
|
6
|
-
* node_modules 依赖包
|
7
|
-
* packages 插件组件目录(插件组件大驼峰命名)
|
8
|
-
* ZSEmpty 空组件(demo)
|
9
|
-
* src 插件内容
|
10
|
-
* index.ts 单个插件导出文件,以便单个引入
|
11
|
-
* ......
|
12
|
-
* index.js 整体导出
|
13
|
-
* public
|
14
|
-
* src 业务代码
|
15
|
-
|
16
|
-
```
|
17
|
-
|
18
|
-
# 运行
|
19
|
-
### 文档
|
20
|
-
```shell
|
21
|
-
npm run docs:dev
|
22
|
-
```
|
23
|
-
|
24
|
-
### Demo
|
25
|
-
```shell
|
26
|
-
npm run serve
|
27
|
-
```
|
28
|
-
|
29
|
-
|
30
|
-
# 使用
|
31
|
-
1. 安装
|
32
|
-
```
|
33
|
-
npm i unify-external-plugin-platform
|
34
|
-
```
|
35
|
-
|
36
|
-
3. 引入:
|
37
|
-
```javascript
|
38
|
-
// 在main.js中
|
39
|
-
import unifyExternalPluginPlatform from 'unify-external-plugin-platform';
|
40
|
-
Vue.use(unifyExternalPluginPlatform);
|
41
|
-
```
|
42
|
-
|
43
|
-
3. 使用:
|
44
|
-
```vue
|
45
|
-
<z-s-empty empty-tip="暂无数据组件"></z-s-empty>
|
46
|
-
```
|
47
|
-
|
48
|
-
|
49
|
-
|
1
|
+
# unify-external-plugin-platform
|
2
|
+
|
3
|
+
# 目录说明
|
4
|
+
```
|
5
|
+
* unify-external-plugin-platform
|
6
|
+
* node_modules 依赖包
|
7
|
+
* packages 插件组件目录(插件组件大驼峰命名)
|
8
|
+
* ZSEmpty 空组件(demo)
|
9
|
+
* src 插件内容
|
10
|
+
* index.ts 单个插件导出文件,以便单个引入
|
11
|
+
* ......
|
12
|
+
* index.js 整体导出
|
13
|
+
* public
|
14
|
+
* src 业务代码
|
15
|
+
|
16
|
+
```
|
17
|
+
|
18
|
+
# 运行
|
19
|
+
### 文档
|
20
|
+
```shell
|
21
|
+
npm run docs:dev
|
22
|
+
```
|
23
|
+
|
24
|
+
### Demo
|
25
|
+
```shell
|
26
|
+
npm run serve
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
# 使用
|
31
|
+
1. 安装
|
32
|
+
```
|
33
|
+
npm i unify-external-plugin-platform
|
34
|
+
```
|
35
|
+
|
36
|
+
3. 引入:
|
37
|
+
```javascript
|
38
|
+
// 在main.js中
|
39
|
+
import unifyExternalPluginPlatform from 'unify-external-plugin-platform';
|
40
|
+
Vue.use(unifyExternalPluginPlatform);
|
41
|
+
```
|
42
|
+
|
43
|
+
3. 使用:
|
44
|
+
```vue
|
45
|
+
<z-s-empty empty-tip="暂无数据组件"></z-s-empty>
|
46
|
+
```
|
47
|
+
|
48
|
+
|
49
|
+
|
package/babel.config.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module.exports = {
|
2
|
-
presets: [
|
3
|
-
'@vue/cli-plugin-babel/preset'
|
4
|
-
]
|
5
|
-
}
|
1
|
+
module.exports = {
|
2
|
+
presets: [
|
3
|
+
'@vue/cli-plugin-babel/preset'
|
4
|
+
]
|
5
|
+
}
|
@@ -1625,10 +1625,11 @@ if (typeof window !== 'undefined') {
|
|
1625
1625
|
// Indicate to webpack that this file can be concatenated
|
1626
1626
|
/* harmony default export */ var setPublicPath = (null);
|
1627
1627
|
|
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=
|
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&
|
1629
1629
|
var render = function render() {
|
1630
1630
|
var _vm = this,
|
1631
|
-
_c = _vm._self._c
|
1631
|
+
_c = _vm._self._c,
|
1632
|
+
_setup = _vm._self._setupProxy;
|
1632
1633
|
return _c('div', {
|
1633
1634
|
staticClass: "zs-empty"
|
1634
1635
|
}, [_c('img', {
|
@@ -1641,196 +1642,7 @@ var render = function render() {
|
|
1641
1642
|
};
|
1642
1643
|
var staticRenderFns = [];
|
1643
1644
|
|
1644
|
-
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=template&id=
|
1645
|
-
|
1646
|
-
;// 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/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=script&lang=js&
|
1647
|
-
/* harmony default export */ var zs_emptyvue_type_script_lang_js_ = ({
|
1648
|
-
name: 'zs-empty',
|
1649
|
-
props: {
|
1650
|
-
emptyTip: {
|
1651
|
-
default: '暂无数据',
|
1652
|
-
type: String
|
1653
|
-
}
|
1654
|
-
}
|
1655
|
-
});
|
1656
|
-
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=script&lang=js&
|
1657
|
-
/* harmony default export */ var src_zs_emptyvue_type_script_lang_js_ = (zs_emptyvue_type_script_lang_js_);
|
1658
|
-
;// 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=8c381c28&prod&scoped=true&lang=scss&
|
1659
|
-
// extracted by mini-css-extract-plugin
|
1660
|
-
|
1661
|
-
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=style&index=0&id=8c381c28&prod&scoped=true&lang=scss&
|
1662
|
-
|
1663
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
1664
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
1665
|
-
|
1666
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
1667
|
-
// This module is a runtime utility for cleaner component module output and will
|
1668
|
-
// be included in the final webpack user bundle.
|
1669
|
-
|
1670
|
-
function normalizeComponent(
|
1671
|
-
scriptExports,
|
1672
|
-
render,
|
1673
|
-
staticRenderFns,
|
1674
|
-
functionalTemplate,
|
1675
|
-
injectStyles,
|
1676
|
-
scopeId,
|
1677
|
-
moduleIdentifier /* server only */,
|
1678
|
-
shadowMode /* vue-cli only */
|
1679
|
-
) {
|
1680
|
-
// Vue.extend constructor export interop
|
1681
|
-
var options =
|
1682
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
1683
|
-
|
1684
|
-
// render functions
|
1685
|
-
if (render) {
|
1686
|
-
options.render = render
|
1687
|
-
options.staticRenderFns = staticRenderFns
|
1688
|
-
options._compiled = true
|
1689
|
-
}
|
1690
|
-
|
1691
|
-
// functional template
|
1692
|
-
if (functionalTemplate) {
|
1693
|
-
options.functional = true
|
1694
|
-
}
|
1695
|
-
|
1696
|
-
// scopedId
|
1697
|
-
if (scopeId) {
|
1698
|
-
options._scopeId = 'data-v-' + scopeId
|
1699
|
-
}
|
1700
|
-
|
1701
|
-
var hook
|
1702
|
-
if (moduleIdentifier) {
|
1703
|
-
// server build
|
1704
|
-
hook = function (context) {
|
1705
|
-
// 2.3 injection
|
1706
|
-
context =
|
1707
|
-
context || // cached call
|
1708
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
1709
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
1710
|
-
// 2.2 with runInNewContext: true
|
1711
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
1712
|
-
context = __VUE_SSR_CONTEXT__
|
1713
|
-
}
|
1714
|
-
// inject component styles
|
1715
|
-
if (injectStyles) {
|
1716
|
-
injectStyles.call(this, context)
|
1717
|
-
}
|
1718
|
-
// register component module identifier for async chunk inferrence
|
1719
|
-
if (context && context._registeredComponents) {
|
1720
|
-
context._registeredComponents.add(moduleIdentifier)
|
1721
|
-
}
|
1722
|
-
}
|
1723
|
-
// used by ssr in case component is cached and beforeCreate
|
1724
|
-
// never gets called
|
1725
|
-
options._ssrRegister = hook
|
1726
|
-
} else if (injectStyles) {
|
1727
|
-
hook = shadowMode
|
1728
|
-
? function () {
|
1729
|
-
injectStyles.call(
|
1730
|
-
this,
|
1731
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
1732
|
-
)
|
1733
|
-
}
|
1734
|
-
: injectStyles
|
1735
|
-
}
|
1736
|
-
|
1737
|
-
if (hook) {
|
1738
|
-
if (options.functional) {
|
1739
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
1740
|
-
// go through the normalizer
|
1741
|
-
options._injectStyles = hook
|
1742
|
-
// register for functional component in vue file
|
1743
|
-
var originalRender = options.render
|
1744
|
-
options.render = function renderWithStyleInjection(h, context) {
|
1745
|
-
hook.call(context)
|
1746
|
-
return originalRender(h, context)
|
1747
|
-
}
|
1748
|
-
} else {
|
1749
|
-
// inject component registration as beforeCreate hook
|
1750
|
-
var existing = options.beforeCreate
|
1751
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
1752
|
-
}
|
1753
|
-
}
|
1754
|
-
|
1755
|
-
return {
|
1756
|
-
exports: scriptExports,
|
1757
|
-
options: options
|
1758
|
-
}
|
1759
|
-
}
|
1760
|
-
|
1761
|
-
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
;
|
1766
|
-
|
1767
|
-
|
1768
|
-
/* normalize component */
|
1769
|
-
|
1770
|
-
var component = normalizeComponent(
|
1771
|
-
src_zs_emptyvue_type_script_lang_js_,
|
1772
|
-
render,
|
1773
|
-
staticRenderFns,
|
1774
|
-
false,
|
1775
|
-
null,
|
1776
|
-
"8c381c28",
|
1777
|
-
null
|
1778
|
-
|
1779
|
-
)
|
1780
|
-
|
1781
|
-
/* harmony default export */ var zs_empty = (component.exports);
|
1782
|
-
;// CONCATENATED MODULE: ./packages/zs-empty/index.ts
|
1783
|
-
|
1784
|
-
// 组件的install方法用于按需引入
|
1785
|
-
// @ts-ignore
|
1786
|
-
zs_empty.install = Vue => {
|
1787
|
-
Vue.component(zs_empty.name, zs_empty);
|
1788
|
-
};
|
1789
|
-
/* harmony default export */ var packages_zs_empty = (zs_empty);
|
1790
|
-
;// 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&
|
1791
|
-
var id_card_reader_demovue_type_template_id_0c496452_scoped_true_render = function render() {
|
1792
|
-
var _vm = this,
|
1793
|
-
_c = _vm._self._c,
|
1794
|
-
_setup = _vm._self._setupProxy;
|
1795
|
-
return _vm.tip ? _c('el-tooltip', {
|
1796
|
-
staticClass: "id-card-reader-demo",
|
1797
|
-
attrs: {
|
1798
|
-
"content": _vm.tip,
|
1799
|
-
"placement": "top"
|
1800
|
-
}
|
1801
|
-
}, [_c('el-button', _vm._b({
|
1802
|
-
on: {
|
1803
|
-
"click": _vm.handleClick
|
1804
|
-
}
|
1805
|
-
}, 'el-button', {
|
1806
|
-
disabled: _vm.disabled,
|
1807
|
-
icon: _vm.icon,
|
1808
|
-
loading: _vm.loading,
|
1809
|
-
plain: _vm.plain,
|
1810
|
-
round: _vm.round,
|
1811
|
-
size: _vm.size,
|
1812
|
-
type: _vm.type,
|
1813
|
-
class: _vm._className
|
1814
|
-
}, false), [_vm._t("default", function () {
|
1815
|
-
return [_vm._v(_vm._s(_vm.label))];
|
1816
|
-
})], 2)], 1) : _c('el-button', _vm._b({
|
1817
|
-
on: {
|
1818
|
-
"click": _vm.handleClick
|
1819
|
-
}
|
1820
|
-
}, 'el-button', {
|
1821
|
-
disabled: _vm.disabled,
|
1822
|
-
icon: _vm.icon,
|
1823
|
-
loading: _vm.loading,
|
1824
|
-
plain: _vm.plain,
|
1825
|
-
round: _vm.round,
|
1826
|
-
size: _vm.size,
|
1827
|
-
type: _vm.type,
|
1828
|
-
class: _vm._className
|
1829
|
-
}, false), [_vm._t("default", function () {
|
1830
|
-
return [_vm._v(_vm._s(_vm.label))];
|
1831
|
-
})], 2);
|
1832
|
-
};
|
1833
|
-
var id_card_reader_demovue_type_template_id_0c496452_scoped_true_staticRenderFns = [];
|
1645
|
+
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=template&id=52cf5f01&scoped=true&
|
1834
1646
|
|
1835
1647
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
1836
1648
|
function _typeof(obj) {
|
@@ -1877,8 +1689,6 @@ function _defineProperty(obj, key, value) {
|
|
1877
1689
|
}
|
1878
1690
|
return obj;
|
1879
1691
|
}
|
1880
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
1881
|
-
var es_array_push = __webpack_require__(7658);
|
1882
1692
|
;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
1883
1693
|
var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
1884
1694
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
|
@@ -2392,10 +2202,214 @@ function PropSync(propName, options) {
|
|
2392
2202
|
|
2393
2203
|
|
2394
2204
|
|
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&
|
2206
|
+
|
2207
|
+
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
2208
|
+
var c = arguments.length,
|
2209
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
2210
|
+
d;
|
2211
|
+
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;
|
2212
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
2213
|
+
};
|
2214
|
+
|
2215
|
+
let ZSEmpty = class ZSEmpty extends (external_commonjs_vue_commonjs2_vue_root_Vue_default()) {
|
2216
|
+
constructor(...args) {
|
2217
|
+
super(...args);
|
2218
|
+
_defineProperty(this, "emptyTip", void 0);
|
2219
|
+
}
|
2220
|
+
};
|
2221
|
+
__decorate([Prop({
|
2222
|
+
default: '暂无数据'
|
2223
|
+
})], ZSEmpty.prototype, "emptyTip", void 0);
|
2224
|
+
ZSEmpty = __decorate([vue_class_component_esm({
|
2225
|
+
name: "zs-empty"
|
2226
|
+
})], ZSEmpty);
|
2227
|
+
/* harmony default export */ var zs_emptyvue_type_script_lang_ts_ = (ZSEmpty);
|
2228
|
+
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=script&lang=ts&
|
2229
|
+
/* harmony default export */ var src_zs_emptyvue_type_script_lang_ts_ = (zs_emptyvue_type_script_lang_ts_);
|
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&
|
2231
|
+
// extracted by mini-css-extract-plugin
|
2232
|
+
|
2233
|
+
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue?vue&type=style&index=0&id=52cf5f01&prod&scoped=true&lang=scss&
|
2234
|
+
|
2235
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
2236
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
2237
|
+
|
2238
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
2239
|
+
// This module is a runtime utility for cleaner component module output and will
|
2240
|
+
// be included in the final webpack user bundle.
|
2241
|
+
|
2242
|
+
function normalizeComponent(
|
2243
|
+
scriptExports,
|
2244
|
+
render,
|
2245
|
+
staticRenderFns,
|
2246
|
+
functionalTemplate,
|
2247
|
+
injectStyles,
|
2248
|
+
scopeId,
|
2249
|
+
moduleIdentifier /* server only */,
|
2250
|
+
shadowMode /* vue-cli only */
|
2251
|
+
) {
|
2252
|
+
// Vue.extend constructor export interop
|
2253
|
+
var options =
|
2254
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
2255
|
+
|
2256
|
+
// render functions
|
2257
|
+
if (render) {
|
2258
|
+
options.render = render
|
2259
|
+
options.staticRenderFns = staticRenderFns
|
2260
|
+
options._compiled = true
|
2261
|
+
}
|
2262
|
+
|
2263
|
+
// functional template
|
2264
|
+
if (functionalTemplate) {
|
2265
|
+
options.functional = true
|
2266
|
+
}
|
2267
|
+
|
2268
|
+
// scopedId
|
2269
|
+
if (scopeId) {
|
2270
|
+
options._scopeId = 'data-v-' + scopeId
|
2271
|
+
}
|
2272
|
+
|
2273
|
+
var hook
|
2274
|
+
if (moduleIdentifier) {
|
2275
|
+
// server build
|
2276
|
+
hook = function (context) {
|
2277
|
+
// 2.3 injection
|
2278
|
+
context =
|
2279
|
+
context || // cached call
|
2280
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
2281
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
2282
|
+
// 2.2 with runInNewContext: true
|
2283
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
2284
|
+
context = __VUE_SSR_CONTEXT__
|
2285
|
+
}
|
2286
|
+
// inject component styles
|
2287
|
+
if (injectStyles) {
|
2288
|
+
injectStyles.call(this, context)
|
2289
|
+
}
|
2290
|
+
// register component module identifier for async chunk inferrence
|
2291
|
+
if (context && context._registeredComponents) {
|
2292
|
+
context._registeredComponents.add(moduleIdentifier)
|
2293
|
+
}
|
2294
|
+
}
|
2295
|
+
// used by ssr in case component is cached and beforeCreate
|
2296
|
+
// never gets called
|
2297
|
+
options._ssrRegister = hook
|
2298
|
+
} else if (injectStyles) {
|
2299
|
+
hook = shadowMode
|
2300
|
+
? function () {
|
2301
|
+
injectStyles.call(
|
2302
|
+
this,
|
2303
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
2304
|
+
)
|
2305
|
+
}
|
2306
|
+
: injectStyles
|
2307
|
+
}
|
2308
|
+
|
2309
|
+
if (hook) {
|
2310
|
+
if (options.functional) {
|
2311
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
2312
|
+
// go through the normalizer
|
2313
|
+
options._injectStyles = hook
|
2314
|
+
// register for functional component in vue file
|
2315
|
+
var originalRender = options.render
|
2316
|
+
options.render = function renderWithStyleInjection(h, context) {
|
2317
|
+
hook.call(context)
|
2318
|
+
return originalRender(h, context)
|
2319
|
+
}
|
2320
|
+
} else {
|
2321
|
+
// inject component registration as beforeCreate hook
|
2322
|
+
var existing = options.beforeCreate
|
2323
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
2324
|
+
}
|
2325
|
+
}
|
2326
|
+
|
2327
|
+
return {
|
2328
|
+
exports: scriptExports,
|
2329
|
+
options: options
|
2330
|
+
}
|
2331
|
+
}
|
2332
|
+
|
2333
|
+
;// CONCATENATED MODULE: ./packages/zs-empty/src/zs-empty.vue
|
2334
|
+
|
2335
|
+
|
2336
|
+
|
2337
|
+
;
|
2338
|
+
|
2339
|
+
|
2340
|
+
/* normalize component */
|
2341
|
+
|
2342
|
+
var component = normalizeComponent(
|
2343
|
+
src_zs_emptyvue_type_script_lang_ts_,
|
2344
|
+
render,
|
2345
|
+
staticRenderFns,
|
2346
|
+
false,
|
2347
|
+
null,
|
2348
|
+
"52cf5f01",
|
2349
|
+
null
|
2350
|
+
|
2351
|
+
)
|
2352
|
+
|
2353
|
+
/* harmony default export */ var zs_empty = (component.exports);
|
2354
|
+
;// CONCATENATED MODULE: ./packages/zs-empty/index.ts
|
2355
|
+
|
2356
|
+
// 组件的install方法用于按需引入
|
2357
|
+
// @ts-ignore
|
2358
|
+
zs_empty.install = Vue => {
|
2359
|
+
Vue.component(zs_empty.name, zs_empty);
|
2360
|
+
};
|
2361
|
+
/* harmony default export */ var packages_zs_empty = (zs_empty);
|
2362
|
+
;// 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&
|
2363
|
+
var id_card_reader_demovue_type_template_id_0c496452_scoped_true_render = function render() {
|
2364
|
+
var _vm = this,
|
2365
|
+
_c = _vm._self._c,
|
2366
|
+
_setup = _vm._self._setupProxy;
|
2367
|
+
return _vm.tip ? _c('el-tooltip', {
|
2368
|
+
staticClass: "id-card-reader-demo",
|
2369
|
+
attrs: {
|
2370
|
+
"content": _vm.tip,
|
2371
|
+
"placement": "top"
|
2372
|
+
}
|
2373
|
+
}, [_c('el-button', _vm._b({
|
2374
|
+
on: {
|
2375
|
+
"click": _vm.handleClick
|
2376
|
+
}
|
2377
|
+
}, 'el-button', {
|
2378
|
+
disabled: _vm.disabled,
|
2379
|
+
icon: _vm.icon,
|
2380
|
+
loading: _vm.loading,
|
2381
|
+
plain: _vm.plain,
|
2382
|
+
round: _vm.round,
|
2383
|
+
size: _vm.size,
|
2384
|
+
type: _vm.type,
|
2385
|
+
class: _vm._className
|
2386
|
+
}, false), [_vm._t("default", function () {
|
2387
|
+
return [_vm._v(_vm._s(_vm.label))];
|
2388
|
+
})], 2)], 1) : _c('el-button', _vm._b({
|
2389
|
+
on: {
|
2390
|
+
"click": _vm.handleClick
|
2391
|
+
}
|
2392
|
+
}, 'el-button', {
|
2393
|
+
disabled: _vm.disabled,
|
2394
|
+
icon: _vm.icon,
|
2395
|
+
loading: _vm.loading,
|
2396
|
+
plain: _vm.plain,
|
2397
|
+
round: _vm.round,
|
2398
|
+
size: _vm.size,
|
2399
|
+
type: _vm.type,
|
2400
|
+
class: _vm._className
|
2401
|
+
}, false), [_vm._t("default", function () {
|
2402
|
+
return [_vm._v(_vm._s(_vm.label))];
|
2403
|
+
})], 2);
|
2404
|
+
};
|
2405
|
+
var id_card_reader_demovue_type_template_id_0c496452_scoped_true_staticRenderFns = [];
|
2406
|
+
|
2407
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
2408
|
+
var es_array_push = __webpack_require__(7658);
|
2395
2409
|
;// 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&
|
2396
2410
|
|
2397
2411
|
|
2398
|
-
var
|
2412
|
+
var id_card_reader_demovue_type_script_lang_ts_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
2399
2413
|
var c = arguments.length,
|
2400
2414
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
2401
2415
|
d;
|
@@ -2460,21 +2474,21 @@ let IdCardReaderDemo = class IdCardReaderDemo extends (external_commonjs_vue_com
|
|
2460
2474
|
this.$emit('click', readData);
|
2461
2475
|
}
|
2462
2476
|
};
|
2463
|
-
|
2464
|
-
|
2465
|
-
|
2466
|
-
|
2467
|
-
|
2468
|
-
|
2469
|
-
|
2470
|
-
|
2471
|
-
|
2477
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop()], IdCardReaderDemo.prototype, "label", void 0);
|
2478
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop()], IdCardReaderDemo.prototype, "tip", void 0);
|
2479
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop()], IdCardReaderDemo.prototype, "className", void 0);
|
2480
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop()], IdCardReaderDemo.prototype, "size", void 0);
|
2481
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop()], IdCardReaderDemo.prototype, "type", void 0);
|
2482
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop()], IdCardReaderDemo.prototype, "plain", void 0);
|
2483
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop()], IdCardReaderDemo.prototype, "round", void 0);
|
2484
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop()], IdCardReaderDemo.prototype, "loading", void 0);
|
2485
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop({
|
2472
2486
|
default: 'el-icon-postcard'
|
2473
2487
|
})], IdCardReaderDemo.prototype, "icon", void 0);
|
2474
|
-
|
2488
|
+
id_card_reader_demovue_type_script_lang_ts_decorate([Prop({
|
2475
2489
|
default: false
|
2476
2490
|
})], IdCardReaderDemo.prototype, "disabled", void 0);
|
2477
|
-
IdCardReaderDemo =
|
2491
|
+
IdCardReaderDemo = id_card_reader_demovue_type_script_lang_ts_decorate([vue_class_component_esm({
|
2478
2492
|
name: 'id-card-reader-demo'
|
2479
2493
|
})], IdCardReaderDemo);
|
2480
2494
|
/* harmony default export */ var id_card_reader_demovue_type_script_lang_ts_ = (IdCardReaderDemo);
|
@@ -3021,8 +3035,12 @@ const install = Vue => {
|
|
3021
3035
|
// 判断是否安装
|
3022
3036
|
// if (install.installed) return
|
3023
3037
|
// 遍历注册全局组件
|
3024
|
-
|
3025
|
-
|
3038
|
+
components.forEach(item => {
|
3039
|
+
// console.log(Object.keys(component));
|
3040
|
+
// Object.keys(component).forEach(key => console.log(key, component[key]))
|
3041
|
+
const component = item['options'];
|
3042
|
+
Vue.component(component.name, component);
|
3043
|
+
});
|
3026
3044
|
};
|
3027
3045
|
// 判断是否是直接引入文件
|
3028
3046
|
if (typeof window !== 'undefined' && window.Vue) {
|