ecinc-cloud-yoagwgl 9.5.0 → 9.5.1

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,66 @@
1
+ // 导入单个组件
2
+ // components
3
+ import GwglFilingSystem from './src/components/FilingSystem'
4
+ import GwglFlowList from './src/components/flowList'
5
+ import GwglTbColumns from './src/components/TbColumns'
6
+ // fileLevel 为操作列,在src下
7
+ import GwglFileLevel from './src/fileLevel/index'
8
+
9
+ // gdgl
10
+ import GwglGdgl from './src/gdgl/index'
11
+ // gwjh
12
+ import GwglGwjh from './src/gwjh/index'
13
+ import GwglGwjhReceiptFile from './src/gwjh/components/ReceiptFile'
14
+ // portlet
15
+ import GwglPortletBwsctj from './src/portlet/Bwsctj'
16
+ import GwglPortletBwsltj from './src/portlet/Bwsltj'
17
+ import GwglPortletGwcx from './src/portlet/gwcx'
18
+ import GwglPortletGwmb from './src/portlet/gwmb'
19
+ import GwglPortletOfficial from './src/portlet/Official'
20
+
21
+ // setting
22
+ import GwglSettingFlgl from './src/setting/flgl'
23
+ import GwglSettingGdgz from './src/setting/gdgz'
24
+
25
+ // tjbg
26
+ import GwglTjbg from './src/tjbg/index'
27
+
28
+ // 以数组的结构保存组件,便于遍历
29
+ const components = {
30
+ GwglFilingSystem,
31
+ GwglFlowList,
32
+ GwglTbColumns,
33
+ GwglFileLevel,
34
+ GwglGdgl,
35
+ GwglGwjh,
36
+ GwglGwjhReceiptFile,
37
+ GwglPortletBwsctj,
38
+ GwglPortletBwsltj,
39
+ GwglPortletGwcx,
40
+ GwglPortletGwmb,
41
+ GwglPortletOfficial,
42
+ GwglSettingGdgz,
43
+ GwglSettingFlgl,
44
+ GwglTjbg
45
+
46
+ }
47
+ // 定义 install 方法
48
+ const install = function(Vue) {
49
+ if (install.installed) return
50
+ install.installed = true
51
+ // 遍历并注册全局组件
52
+ Object.keys(components).forEach(key => {
53
+ Vue.component(key, components[key])
54
+ })
55
+ }
56
+
57
+ if (typeof window !== 'undefined' && window.Vue) {
58
+ install(window.Vue)
59
+ }
60
+
61
+ export default {
62
+ // 导出的对象必须具备一个 install 方法
63
+ install,
64
+ // 组件列表
65
+ ...components
66
+ }