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