ecinc-cloud-moawjzx 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,54 @@
1
+ // 导入单个组件
2
+ // components
3
+ import WjzxComponentFolder from './src/components/folder'
4
+ import WjzxComponentMoveFolder from './src/components/moveFolder'
5
+ import WjzxComponentPublicOpenFolder from './src/components/publicOpenFolder'
6
+ import WjzxComponentWenjianOpenFolder from './src/components/wenjianOpenFolder'
7
+ // fenxiang
8
+ import WjzxFenxiangShareRecord from './src/fenxiang/components/ShareRecord'
9
+ import WjzxFenxiang from './src/fenxiang'
10
+ // hsz
11
+ import WjzxHsz from './src/hsz'
12
+ // shoucang
13
+ import WjzxShoucang from './src/shoucang'
14
+ // tj
15
+ import WjzxTj from './src/tj'
16
+ // wenjian
17
+ import WjzxWenjian from './src/wenjian'
18
+
19
+ import WjzxIndex from './src'
20
+
21
+ // 以对象的结构保存组件,便于遍历
22
+ const components = {
23
+ WjzxComponentFolder,
24
+ WjzxComponentMoveFolder,
25
+ WjzxComponentPublicOpenFolder,
26
+ WjzxComponentWenjianOpenFolder,
27
+ WjzxFenxiangShareRecord,
28
+ WjzxFenxiang,
29
+ WjzxHsz,
30
+ WjzxShoucang,
31
+ WjzxTj,
32
+ WjzxWenjian,
33
+ WjzxIndex
34
+ }
35
+ // 定义 install 方法
36
+ const install = function(Vue) {
37
+ if (install.installed) return
38
+ install.installed = true
39
+ // 遍历并注册全局组件
40
+ Object.keys(components).forEach(key => {
41
+ Vue.component(key, components[key])
42
+ })
43
+ }
44
+
45
+ if (typeof window !== 'undefined' && window.Vue) {
46
+ install(window.Vue)
47
+ }
48
+
49
+ export default {
50
+ // 导出的对象必须具备一个 install 方法
51
+ install,
52
+ // 组件列表
53
+ ...components
54
+ }