ecinc-cloud-moazsgl 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 +65 -0
- package/lib/ecmoazsgl.common.js +26182 -0
- package/lib/ecmoazsgl.umd.js +26192 -0
- package/lib/ecmoazsgl.umd.min.js +8 -0
- package/package.json +10 -0
package/index.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
//index
|
|
3
|
+
import ZsglIndex from './src/index'
|
|
4
|
+
//zszx
|
|
5
|
+
import ZsglZszxIndex from './src/zszx/index'
|
|
6
|
+
//zszt
|
|
7
|
+
import ZsglZsztIndex from './src/zszt/index'
|
|
8
|
+
import ZsglZsztMapDefault from './src/zszt/components/mapDefault'
|
|
9
|
+
//zsdt
|
|
10
|
+
import ZsglZsdtIndex from './src/zsdt/index'
|
|
11
|
+
//taskItem
|
|
12
|
+
import ZsglTaskItemDsp from './src/taskItem/dsp'
|
|
13
|
+
import ZsglTaskItemWcjd from './src/taskItem/wcjd'
|
|
14
|
+
import ZsglTaskItemZsglForm from './src/taskItem/zsglForm'
|
|
15
|
+
import ZsglTaskItemSelectLabel from './src/taskItem/components/selectLabel'
|
|
16
|
+
import ZsglTaskItemSelectType from './src/taskItem/components/selectType'
|
|
17
|
+
//home
|
|
18
|
+
import ZsglHomeIndex from './src/home/index'
|
|
19
|
+
import ZsglHomeWpld from './src/home/components/wpld'
|
|
20
|
+
import ZsglHomeWscd from './src/home/components/wscd'
|
|
21
|
+
//components
|
|
22
|
+
import ZsglViewContent from './src/components/viewContent/index'
|
|
23
|
+
import ZsglTransRouter from './src/components/viewContent/transRouter'
|
|
24
|
+
import ZsglCommentIndex from './src/components/comment/index'
|
|
25
|
+
import ZsglCommentContent from './src/components/comment/components/Content'
|
|
26
|
+
// 以对象的结构保存组件,便于遍历
|
|
27
|
+
const components = {
|
|
28
|
+
ZsglIndex,
|
|
29
|
+
ZsglZszxIndex,
|
|
30
|
+
ZsglZsztIndex,
|
|
31
|
+
ZsglZsztMapDefault,
|
|
32
|
+
ZsglZsdtIndex,
|
|
33
|
+
ZsglTaskItemDsp,
|
|
34
|
+
ZsglTaskItemWcjd,
|
|
35
|
+
ZsglTaskItemZsglForm,
|
|
36
|
+
ZsglTaskItemSelectLabel,
|
|
37
|
+
ZsglTaskItemSelectType,
|
|
38
|
+
ZsglHomeIndex,
|
|
39
|
+
ZsglHomeWpld,
|
|
40
|
+
ZsglHomeWscd,
|
|
41
|
+
ZsglViewContent,
|
|
42
|
+
ZsglTransRouter,
|
|
43
|
+
ZsglCommentIndex,
|
|
44
|
+
ZsglCommentContent
|
|
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
|
+
}
|