cloud-web-corejs 1.0.54-dev.745 → 1.0.54-dev.746

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.
Files changed (50) hide show
  1. package/package.json +192 -192
  2. package/src/App.vue +73 -71
  3. package/src/components/baseArea/index.vue +1628 -1628
  4. package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
  5. package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -297
  6. package/src/components/fileLibrary/index.vue +1109 -1109
  7. package/src/components/fileLibrary/propertiesDialog.vue +190 -190
  8. package/src/components/fileLibrary/recycleBinDialog.vue +237 -237
  9. package/src/components/wf/mixins/setCandidateDialog.js +217 -217
  10. package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
  11. package/src/components/xform/docs//345/257/271/346/257/224/345/212/237/350/203/275/350/220/275/345/234/260/346/226/271/346/241/210.md +986 -986
  12. package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -272
  13. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +216 -216
  14. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +928 -928
  15. package/src/components/xform/form-designer/index.vue +195 -195
  16. package/src/components/xform/form-designer/indexMixin.js +848 -848
  17. package/src/components/xform/form-designer/setting-panel/index.vue +313 -313
  18. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -124
  19. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +369 -369
  20. package/src/components/xform/form-designer/widget-panel/index.vue +389 -389
  21. package/src/components/xform/form-designer/widget-panel/indexMixin.js +343 -343
  22. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4531 -4531
  23. package/src/components/xform/form-render/container-item/data-table-mixin.js +4748 -4576
  24. package/src/components/xform/form-render/container-item/tab-item.vue +125 -125
  25. package/src/components/xform/form-render/indexMixin.js +5061 -5078
  26. package/src/components/xform/lang/en-US.js +457 -457
  27. package/src/components/xform/lang/zh-CN.js +628 -628
  28. package/src/components/xform/utils/util.js +1585 -1554
  29. package/src/index.js +344 -230
  30. package/src/layout/components/AppMain.vue +122 -125
  31. package/src/layout/components/extractedCode/viewDialog.vue +207 -207
  32. package/src/layout/components/langTool.vue +128 -123
  33. package/src/layout/defaultLayout.vue +164 -158
  34. package/src/permission.js +185 -135
  35. package/src/store/config/index.js +667 -669
  36. package/src/store/modules/micro.js +46 -0
  37. package/src/store/modules/permission.js +461 -373
  38. package/src/store/modules/user.js +419 -415
  39. package/src/utils/auth.js +27 -1
  40. package/src/utils/index.js +579 -6
  41. package/src/utils/keepAlive.js +4 -0
  42. package/src/utils/menuAdapter.js +183 -0
  43. package/src/utils/request.js +417 -28
  44. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +483 -483
  45. package/src/views/bd/setting/form_script/form_list.vue +174 -174
  46. package/src/views/bd/setting/form_script/mixins/form_list.js +330 -330
  47. package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -171
  48. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -253
  49. package/src/views/user/menuFallback/index.vue +123 -0
  50. package/src/views/user/wf/wfReport/index.vue +625 -625
@@ -0,0 +1,46 @@
1
+ /**
2
+ * qiankun 微前端运行态。
3
+ * 子应用模式下(window.__POWERED_BY_QIANKUN__)由主应用经 props 注入,
4
+ * 见 src/index.js 的 mount 生命周期;独立运行时保持初始值。
5
+ */
6
+ const state = {
7
+ isMicro: false,
8
+ appCode: "",
9
+ menus: [],
10
+ mainAdapter: null,
11
+ lang: "",
12
+ // 自治嵌入模式:主应用未下发菜单(props.menus 非数组)时置 true,
13
+ // 子应用自拉菜单、保留自身侧边栏/页签壳,整站运行在容器内(含登录页)
14
+ selfManaged: false,
15
+ // 保活隐藏期间置 true:路由守卫直接 next(false),防止隐藏的子应用响应主应用的 URL 变化
16
+ routerPaused: false,
17
+ };
18
+
19
+ const mutations = {
20
+ SET_MICRO_CONTEXT: (state, payload = {}) => {
21
+ state.isMicro = true;
22
+ state.appCode = payload.appCode || state.appCode;
23
+ state.selfManaged = !Array.isArray(payload.menus);
24
+ state.menus = payload.menus || [];
25
+ state.mainAdapter = payload.mainAdapter || null;
26
+ state.lang = payload.lang || "";
27
+ },
28
+ SET_ROUTER_PAUSED: (state, paused) => {
29
+ state.routerPaused = !!paused;
30
+ },
31
+ CLEAR_MICRO_CONTEXT: (state) => {
32
+ state.isMicro = false;
33
+ state.appCode = "";
34
+ state.menus = [];
35
+ state.mainAdapter = null;
36
+ state.lang = "";
37
+ state.selfManaged = false;
38
+ state.routerPaused = false;
39
+ },
40
+ };
41
+
42
+ export default {
43
+ namespaced: true,
44
+ state,
45
+ mutations,
46
+ };