unify-external-plugin-platform 0.0.2-26 → 0.0.2-28
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.
@@ -83476,15 +83476,32 @@ scanner_high_camera_jieyu.install = Vue => {
|
|
83476
83476
|
};
|
83477
83477
|
/* harmony default export */ var packages_scanner_high_camera_jieyu = (scanner_high_camera_jieyu);
|
83478
83478
|
;// CONCATENATED MODULE: ./packages/index.ts
|
83479
|
+
// import {
|
83480
|
+
// Button,
|
83481
|
+
// Tooltip,
|
83482
|
+
// Select,
|
83483
|
+
// Option,
|
83484
|
+
// Dialog
|
83485
|
+
// } from "element-ui";
|
83479
83486
|
|
83480
83487
|
|
83481
83488
|
|
83482
83489
|
|
83483
83490
|
|
83491
|
+
// const elementComponents = {
|
83492
|
+
// Button,
|
83493
|
+
// Tooltip,
|
83494
|
+
// Select,
|
83495
|
+
// Option,
|
83496
|
+
// Dialog
|
83497
|
+
// }
|
83484
83498
|
// 组件列表
|
83485
83499
|
const components = [packages_zs_empty, packages_id_card_reader_demo, packages_scanner_high_camera_jieyu];
|
83486
83500
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
|
83487
83501
|
const install = Vue => {
|
83502
|
+
// Object.entries(elementComponents).forEach(([name, component]) => {
|
83503
|
+
// Vue.component(component.name, component)
|
83504
|
+
// })
|
83488
83505
|
Vue.use((element_ui_common_default()));
|
83489
83506
|
// 判断是否安装
|
83490
83507
|
// if (install.installed) return
|
@@ -83492,7 +83509,7 @@ const install = Vue => {
|
|
83492
83509
|
components.forEach(item => {
|
83493
83510
|
// console.log(Object.keys(item));
|
83494
83511
|
// Object.keys(item).forEach(key => console.log(key, item[key]))
|
83495
|
-
const component = item['options'];
|
83512
|
+
const component = item['options']; // 由于用了ts这里写法略有不同,坑!!
|
83496
83513
|
Vue.component(component.name, component);
|
83497
83514
|
});
|
83498
83515
|
};
|