cloud-web-corejs 1.1.0-dev.5 → 1.1.0-dev.7

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 (52) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/index.vue +1 -1
  3. package/src/components/VabUpload/view.vue +27 -26
  4. package/src/components/excelImport/index.vue +156 -156
  5. package/src/components/jsonImport/index.vue +1 -1
  6. package/src/components/langImport/index.vue +1 -1
  7. package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
  8. package/src/components/mobile/wf/content.vue +110 -67
  9. package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
  10. package/src/components/mobile/wf/selectUserDialog.vue +122 -0
  11. package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
  12. package/src/components/mobile/wf/urgingDialog.vue +26 -3
  13. package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
  14. package/src/components/obsUpload/index.vue +1 -1
  15. package/src/components/xform/form-designer/designer.js +36 -52
  16. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
  17. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
  18. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +2 -2
  19. package/src/components/xform/form-designer/indexMixin.js +33 -1
  20. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -860
  21. package/src/components/xform/form-designer/toolbar-panel/index.vue +874 -874
  22. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -0
  23. package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
  24. package/src/components/xform/form-designer/widget-panel/indexMixin.js +30 -6
  25. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +53 -1
  26. package/src/components/xform/form-render/container-item/list-h5-item.vue +154 -27
  27. package/src/components/xform/form-render/indexMixin.js +23 -3
  28. package/src/components/xform/styles/h5.scss +774 -588
  29. package/src/directive/append-to-body/index.js +48 -0
  30. package/src/index.js +4 -0
  31. package/src/layout/components/Sidebar/default.vue +1655 -1655
  32. package/src/router/index.js +48 -48
  33. package/src/utils/assetUrl.js +19 -0
  34. package/src/utils/vab.js +1283 -1279
  35. package/src/views/bd/setting/form_template/edit.vue +378 -356
  36. package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
  37. package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
  38. package/src/views/bd/setting/form_template/list.vue +304 -303
  39. package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
  40. package/src/views/bd/setting/form_template/mixins/list.js +748 -721
  41. package/src/views/user/file_view_ins/list.vue +970 -970
  42. package/src/views/user/form/vform/designer.vue +823 -821
  43. package/src/views/user/home/default.vue +1117 -1117
  44. package/src/views/user/home/index.vue +103 -103
  45. package/src/views/user/notify_message/dialog.vue +139 -139
  46. package/src/views/user/outLink/form_view.vue +202 -202
  47. package/src/views/user/outLink/index.vue +110 -110
  48. package/src/views/user/wf/iframe/index.vue +51 -51
  49. package/src/views/user/wf/iframe/index2.vue +64 -64
  50. package/src/views/user/wf/wf_manage/list2.vue +871 -871
  51. package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -134
  52. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
@@ -0,0 +1,48 @@
1
+ /**version-1.0*/
2
+ /**
3
+ * v-append-to-body —— 把元素搬到 document.body 下,脱离宿主子树。
4
+ *
5
+ * 用途:那些视觉上是全屏浮层、但写死在业务模板里的 div(如移动版流程的
6
+ * 通过/驳回/中断/转办/加签确认框)。它们靠 `position:fixed` 定位,一旦祖先出现
7
+ * transform / filter / display:none 就会失效或被裁掉。搬到 body 下即可根治,
8
+ * 且不必把它们改造成 el-dialog(造型差太远,改了样式量不减反增)。
9
+ *
10
+ * ★ 必须配 v-show 用,不能配 v-if。
11
+ * Vue 2 的 patch 在插入节点时要拿兄弟节点当参照物:
12
+ * function insert (parent, elm, ref) {
13
+ * if (isDef(ref)) { if (nodeOps.parentNode(ref) === parent) { ... } }
14
+ * }
15
+ * 本指令把节点搬走后,它的 parentNode 变成了 body、不再等于宿主元素,于是
16
+ * 以它为参照物的那次插入会被这个判断**静默跳过**(不报错,但节点没插进去),
17
+ * 兄弟节点的顺序随之错乱。v-show 不产生插入/移除,节点从头到尾只搬一次,
18
+ * 没有这个问题 —— element-ui 自己的 append-to-body 弹框也是用 v-show,
19
+ * 不是 v-if,同一个原因。
20
+ *
21
+ * ★ 元素上原有的 `display` 内联值要保留。
22
+ * v-show 记的 originalDisplay 取自 `el.style.display`;如果元素本身靠内联
23
+ * `style="display: block;"` 顶掉某条 `.xxx{display:none}` 的全局规则,把内联值
24
+ * 删了会让「显示」态退回 display:none,表现为点了没反应。
25
+ */
26
+ let modules = {};
27
+
28
+ modules = {
29
+ install: function (Vue) {
30
+ Vue.directive("append-to-body", {
31
+ inserted(el) {
32
+ if (el.parentNode !== document.body) {
33
+ document.body.appendChild(el);
34
+ }
35
+ },
36
+ unbind(el) {
37
+ // 配 v-show 时切换显隐不会走到这里,只有宿主组件销毁才会。
38
+ // 那时节点在 body 下、已不在宿主子树里,宿主自身的 DOM 移除够不着它——
39
+ // 不在这里摘掉就会永久留在 body 上(每进出一次详情页泄漏一份)。
40
+ if (el.parentNode) {
41
+ el.parentNode.removeChild(el);
42
+ }
43
+ },
44
+ });
45
+ },
46
+ };
47
+
48
+ export default modules;
package/src/index.js CHANGED
@@ -172,6 +172,10 @@ import elReadonly from "@base/directive/el-readonly/index.js";
172
172
 
173
173
  Vue.use(elReadonly);
174
174
 
175
+ import appendToBody from "@base/directive/append-to-body/index.js";
176
+
177
+ Vue.use(appendToBody.install);
178
+
175
179
  /*import cnPrint from "@base/components/cnPrint/index.js"
176
180
 
177
181
  Vue.use(cnPrint);*/