ecinc-cloud-mappaio 9.0.88 → 9.0.90
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 +13 -42
- package/lang/index.js +29 -0
- package/lib/ecmappaio.common.js +2182 -1146
- package/lib/ecmappaio.umd.js +2178 -1142
- package/lib/ecmappaio.umd.min.js +51 -51
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// 导入单个组件
|
|
2
|
+
import $lang from './lang/index'
|
|
2
3
|
import app from '../../common/app/index'
|
|
3
4
|
import auth from '../../common/auth/index'
|
|
4
5
|
import eventBus from '../../common/eventBus/index'
|
|
@@ -19,46 +20,11 @@ import { Basicform, DatetimeField, FileField, InputField, SelectField, SwitchFie
|
|
|
19
20
|
import WfStatus from '../../ecmapp/WfStatus/index'
|
|
20
21
|
import { Attachment, BodyFile, HandleIdea, SelectOuterDeputy, SubmitHandle, SubmitDialog, ShortcutProcessing, WfNodelogList, WriteToReadIdea } from '../../ecmapp/Wflowform'
|
|
21
22
|
import RichtextEditor from '../../ecmapp/RichtextEditor/index'
|
|
22
|
-
|
|
23
|
+
import '../../common/directive/index'
|
|
23
24
|
import '../../ecmapp/Directive/index'
|
|
24
25
|
|
|
25
26
|
// 以数组的结构保存组件,便于遍历
|
|
26
|
-
const components = [
|
|
27
|
-
app,
|
|
28
|
-
auth,
|
|
29
|
-
eventBus,
|
|
30
|
-
user,
|
|
31
|
-
Building,
|
|
32
|
-
Basicform,
|
|
33
|
-
DatetimeField,
|
|
34
|
-
FileField,
|
|
35
|
-
InputField,
|
|
36
|
-
SelectField,
|
|
37
|
-
SwitchField,
|
|
38
|
-
TextareaField,
|
|
39
|
-
IdeaField,
|
|
40
|
-
DataTable,
|
|
41
|
-
InnerTable,
|
|
42
|
-
FooterButtonGroup,
|
|
43
|
-
FloatButtonGroup,
|
|
44
|
-
WV,
|
|
45
|
-
SelectDialog,
|
|
46
|
-
WfStatus,
|
|
47
|
-
|
|
48
|
-
wfengine,
|
|
49
|
-
Attachment,
|
|
50
|
-
BodyFile,
|
|
51
|
-
HandleIdea,
|
|
52
|
-
SelectOuterDeputy,
|
|
53
|
-
SubmitHandle,
|
|
54
|
-
SubmitDialog,
|
|
55
|
-
ShortcutProcessing,
|
|
56
|
-
WfNodelogList,
|
|
57
|
-
WriteToReadIdea,
|
|
58
|
-
PopupDialog,
|
|
59
|
-
PdfTools,
|
|
60
|
-
RichtextEditor
|
|
61
|
-
]
|
|
27
|
+
const components = [app, auth, eventBus, user, Building, Basicform, DatetimeField, FileField, InputField, SelectField, SwitchField, TextareaField, IdeaField, DataTable, InnerTable, FooterButtonGroup, FloatButtonGroup, WV, SelectDialog, WfStatus, wfengine, Attachment, BodyFile, HandleIdea, SelectOuterDeputy, SubmitHandle, SubmitDialog, ShortcutProcessing, WfNodelogList, WriteToReadIdea, PopupDialog, PdfTools, RichtextEditor]
|
|
62
28
|
|
|
63
29
|
// 定义 install 方法
|
|
64
30
|
const install = function (Vue) {
|
|
@@ -75,17 +41,22 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
75
41
|
|
|
76
42
|
setTimeout(() => {
|
|
77
43
|
window.$alert = window.Vue.prototype.$dialog.alert
|
|
44
|
+
|
|
45
|
+
Vue.prototype.$tx = lang.$tx
|
|
46
|
+
window.$tx = $lang.$tx
|
|
78
47
|
}, 0)
|
|
79
48
|
}
|
|
80
49
|
|
|
50
|
+
export const lang = $lang
|
|
51
|
+
|
|
52
|
+
import $hequest from '../../common/request/index'
|
|
53
|
+
import $store from '../../common/store/index'
|
|
54
|
+
export const httpRequest = $hequest
|
|
55
|
+
export const store = $store
|
|
56
|
+
|
|
81
57
|
export default {
|
|
82
58
|
// 导出的对象必须具备一个 install 方法
|
|
83
59
|
install,
|
|
84
60
|
// 组件列表
|
|
85
61
|
...components
|
|
86
62
|
}
|
|
87
|
-
|
|
88
|
-
import $hequest from '../../common/request/index'
|
|
89
|
-
import $store from '../../common/store/index'
|
|
90
|
-
export const httpRequest = $hequest
|
|
91
|
-
export const store = $store
|
package/lang/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { getLanguage, generateTitle, getPageTitle, commonMessages, $tx } from '../../../common/lang/index'
|
|
2
|
+
import mappsMessages from '../../../ecmapp/lang/index'
|
|
3
|
+
|
|
4
|
+
const messages = {}
|
|
5
|
+
messages.en = {
|
|
6
|
+
...commonMessages.en,
|
|
7
|
+
...mappsMessages.en
|
|
8
|
+
}
|
|
9
|
+
messages.zhCN = {
|
|
10
|
+
...commonMessages.zhCN,
|
|
11
|
+
...mappsMessages.zhCN
|
|
12
|
+
}
|
|
13
|
+
messages.es = {
|
|
14
|
+
...commonMessages.es,
|
|
15
|
+
...mappsMessages.es
|
|
16
|
+
}
|
|
17
|
+
messages.ja = {
|
|
18
|
+
...commonMessages.ja,
|
|
19
|
+
...mappsMessages.en
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const lang = {}
|
|
23
|
+
lang.aiomessages = messages
|
|
24
|
+
lang.generateTitle = generateTitle
|
|
25
|
+
lang.getPageTitle = getPageTitle
|
|
26
|
+
lang.getLanguage = getLanguage
|
|
27
|
+
lang.$tx = $tx
|
|
28
|
+
|
|
29
|
+
export default lang
|