ecinc-cloud-moadesktop 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 +57 -0
- package/lib/ecmoadesktop.common.js +23661 -0
- package/lib/ecmoadesktop.umd.js +23671 -0
- package/lib/ecmoadesktop.umd.min.js +9 -0
- package/package.json +10 -0
package/index.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// 导入单个组件
|
|
2
|
+
|
|
3
|
+
import MappWorkTzgg from './src/components/workTzgg'
|
|
4
|
+
import MappWorkTodo from './src/components/workTodo'
|
|
5
|
+
import MappWorkSetting from './src/components/workSetting'
|
|
6
|
+
import MappWorkQuick from './src/components/workQuick'
|
|
7
|
+
import MappWorkNotice from './src/components/workNotice'
|
|
8
|
+
import MappWorkNews from './src/components/workNews'
|
|
9
|
+
import MappWorkMetting from './src/components/workMetting'
|
|
10
|
+
import MappWorkFile from './src/components/workFile'
|
|
11
|
+
import MappWorkCalendar from './src/components/workCalendar'
|
|
12
|
+
import MappWorkBanner from './src/components/workBanner'
|
|
13
|
+
import MappWorkEchartL from './src/components/echartL'
|
|
14
|
+
import MappWorkEchartZ from './src/components/echartZ'
|
|
15
|
+
import MappWorkEchartR from './src/components/echartR'
|
|
16
|
+
import MappWorkCommonApps from './src/components/commonApps'
|
|
17
|
+
import MappWorkHead from './src/components/workHead'
|
|
18
|
+
import MappWorkHeadEight from './src/components/workHeadEight'
|
|
19
|
+
// 以对象的结构保存组件,便于遍历
|
|
20
|
+
const components = {
|
|
21
|
+
MappWorkTzgg,
|
|
22
|
+
MappWorkTodo,
|
|
23
|
+
MappWorkSetting,
|
|
24
|
+
MappWorkQuick,
|
|
25
|
+
MappWorkNotice,
|
|
26
|
+
MappWorkNews,
|
|
27
|
+
MappWorkMetting,
|
|
28
|
+
MappWorkFile,
|
|
29
|
+
MappWorkCalendar,
|
|
30
|
+
MappWorkBanner,
|
|
31
|
+
MappWorkEchartL,
|
|
32
|
+
MappWorkEchartZ,
|
|
33
|
+
MappWorkEchartR,
|
|
34
|
+
MappWorkCommonApps,
|
|
35
|
+
MappWorkHead,
|
|
36
|
+
MappWorkHeadEight
|
|
37
|
+
}
|
|
38
|
+
// 定义 install 方法
|
|
39
|
+
const install = function (Vue) {
|
|
40
|
+
if (install.installed) return
|
|
41
|
+
install.installed = true
|
|
42
|
+
// 遍历并注册全局组件
|
|
43
|
+
Object.keys(components).forEach(key => {
|
|
44
|
+
Vue.component(key, components[key])
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
49
|
+
install(window.Vue)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default{
|
|
53
|
+
// 导出的对象必须具备一个 install 方法
|
|
54
|
+
install,
|
|
55
|
+
// 组件列表
|
|
56
|
+
...components
|
|
57
|
+
}
|