ecinc-cloud-mappaio 9.0.59 → 9.0.60

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,64 @@
1
+ require('@babel/polyfill')
2
+
3
+ // 导入单个组件
4
+ import app from '../../common/app/index'
5
+ import auth from '../../common/auth/index'
6
+ import eventBus from '../../common/eventBus/index'
7
+ import user from '../../common/user/index'
8
+
9
+ import wfengine from '../../ecwflow/wfengine/index'
10
+
11
+ import Building from '../../ecmapp/Building/index'
12
+ import FooterButtonGroup from '../../ecmapp/FooterButtonGroup/index'
13
+ import FloatButtonGroup from '../../ecmapp/FloatButtonGroup/index'
14
+ import PopupDialog from '../../ecmapp/PopupDialog/index'
15
+ import WV from '../../ecmapp/NativeWebView/index'
16
+ import SelectDialog from '../../ecmapp/SelectDialog/index'
17
+ import DataTable from '../../ecmapp/DataTable/index'
18
+ import InnerTable from '../../ecmapp/InnerTable/index'
19
+ import PdfTools from '../../ecmapp/PdfTools'
20
+ import { Basicform, DatetimeField, FileField, InputField, SelectField, SwitchField, TextareaField, IdeaField } from '../../ecmapp/Basicform/index'
21
+ import WfStatus from '../../ecmapp/WfStatus/index'
22
+ import { Attachment, BodyFile, HandleIdea, SelectOuterDeputy, SubmitHandle, SubmitDialog, ShortcutProcessing, WfNodelogList, WriteToReadIdea } from '../../ecmapp/Wflowform'
23
+ import RichtextEditor from '../../ecmapp/RichtextEditor/index'
24
+
25
+ import '../../ecmapp/Directive/index'
26
+
27
+ // 以数组的结构保存组件,便于遍历
28
+ const components = [
29
+ app, auth, eventBus, user,
30
+ Building, Basicform, DatetimeField, FileField, InputField, SelectField, SwitchField, TextareaField, IdeaField, DataTable, InnerTable, FooterButtonGroup, FloatButtonGroup, WV, SelectDialog, WfStatus,
31
+
32
+ wfengine,
33
+ Attachment, BodyFile, HandleIdea, SelectOuterDeputy, SubmitHandle, SubmitDialog, ShortcutProcessing, WfNodelogList, WriteToReadIdea, PopupDialog, PdfTools, RichtextEditor
34
+ ]
35
+
36
+ // 定义 install 方法
37
+ const install = function(Vue) {
38
+ if (install.installed) return
39
+ install.installed = true
40
+ // 遍历并注册全局组件
41
+ components.map(component => {
42
+ Vue.use(component)
43
+ })
44
+ }
45
+
46
+ if (typeof window !== 'undefined' && window.Vue) {
47
+ install(window.Vue)
48
+
49
+ setTimeout(() => {
50
+ window.$alert = window.Vue.prototype.$dialog.alert
51
+ }, 0)
52
+ }
53
+
54
+ export default {
55
+ // 导出的对象必须具备一个 install 方法
56
+ install,
57
+ // 组件列表
58
+ ...components
59
+ }
60
+
61
+ import $hequest from '../../common/request/index'
62
+ import $store from '../../common/store/index'
63
+ export const httpRequest = $hequest
64
+ export const store = $store