ecinc-cloud-moahtgl 9.5.0

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/index.js ADDED
@@ -0,0 +1,65 @@
1
+ // 导入单个组件
2
+
3
+ //index
4
+ import HtglIndex from './src/index'
5
+
6
+ // components
7
+ import HtglIndexList from './src/components/IndexList'
8
+ import HtglTableCell from './src/components/TableCell'
9
+
10
+ // htcx
11
+ import HtglHtcx from './src/htcx/htcxList'
12
+
13
+ // htda
14
+ import HtglHtdaHtdaPopup from './src/htda/htdaPopup'
15
+
16
+ // htglHome
17
+ import HtglHtglHome from './src/htglHome/index'
18
+ import HtglEchartHTQY from './src/htglHome/components/EchartHTQY'
19
+
20
+ // jygl
21
+ import HtglJyglGhsj from './src/jygl/ghsj'
22
+
23
+ // taskItem
24
+ import HtglTaskItem from './src/taskItem/index'
25
+
26
+ // wdjy
27
+ import HtglWdjy from './src/wdjy/index'
28
+
29
+
30
+
31
+
32
+
33
+ // 以对象的结构保存组件,便于遍历
34
+ const components = {
35
+ HtglIndex,
36
+ HtglIndexList,
37
+ HtglTableCell,
38
+ HtglHtcx,
39
+ HtglHtdaHtdaPopup,
40
+ HtglHtglHome,
41
+ HtglEchartHTQY,
42
+ HtglJyglGhsj,
43
+ HtglTaskItem,
44
+ HtglWdjy
45
+ }
46
+ // 定义 install 方法
47
+ const install = function(Vue) {
48
+ if (install.installed) return
49
+ install.installed = true
50
+ // 遍历并注册全局组件
51
+ Object.keys(components).forEach(key => {
52
+ Vue.component(key, components[key])
53
+ })
54
+ }
55
+
56
+ if (typeof window !== 'undefined' && window.Vue) {
57
+ install(window.Vue)
58
+ }
59
+
60
+ export default {
61
+ // 导出的对象必须具备一个 install 方法
62
+ install,
63
+ // 组件列表
64
+ ...components
65
+ }