cloud-web-corejs 1.0.276 → 1.0.277

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 (305) hide show
  1. package/package.json +28 -24
  2. package/src/App.vue +73 -71
  3. package/src/api/user.js +21 -0
  4. package/src/components/baseArea/index.vue +82 -27
  5. package/src/components/baseTabs/mixins.js +5 -1
  6. package/src/components/luckysheet/dialog.vue +1 -1
  7. package/src/components/micro-view-host/contract.js +66 -0
  8. package/src/components/micro-view-host/index.vue +148 -0
  9. package/src/components/table/tableForm.vue +16 -5
  10. package/src/components/table/tableFormMixin.js +35 -7
  11. package/src/components/vb-tabs/x-tabs.vue +167 -143
  12. package/src/components/wf/content.vue +14 -0
  13. package/src/components/wf/content2.vue +4 -2
  14. package/src/components/wf/wf.js +74 -23
  15. package/src/components/wf/wfActionDropdown.vue +85 -0
  16. package/src/components/wf/wfActionItems.js +136 -0
  17. package/src/components/wf/wfAutoConfirm.js +55 -0
  18. package/src/components/wf/wfButtonName.js +60 -0
  19. package/src/components/wf/wfUserRange.js +53 -0
  20. package/src/components/wf/wfUtil.js +373 -295
  21. package/src/components/xform/XFormTabContainer//346/226/260/345/242/236/351/241/265/347/255/276/346/250/241/345/274/217-/346/234/200/347/273/210/345/256/236/347/216/260.md +195 -0
  22. package/src/components/xform/docs/2026-07 table/344/270/216excelExport/344/277/256/345/244/215/345/217/212/345/257/274/345/207/272/344/274/230/345/214/226.md" +57 -0
  23. package/src/components/xform/docs/2026-07 /346/216/222/346/237/245/344/277/256/345/244/215/350/256/260/345/275/225.md" +73 -0
  24. package/src/components/xform/docs/autocomplete /350/207/252/345/212/250/345/256/214/346/210/220/347/273/204/344/273/266/350/257/264/346/230/216.md" +126 -0
  25. 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 -0
  26. package/src/components/xform/docs//346/225/260/346/215/256/350/241/250/346/240/274/345/212/250/346/200/201/345/210/227 JSON /350/257/264/346/230/216.md" +657 -0
  27. package/src/components/xform/docs//346/240/221/350/241/250rowField/346/224/266/346/225/233-/350/220/275/345/234/260/346/226/207/346/241/243.md +1427 -0
  28. package/src/components/xform/form-designer/designer.js +2085 -2025
  29. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +9 -11
  30. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +76 -75
  31. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -4
  32. package/src/components/xform/form-designer/form-widget/container-widget/detail-plain-widget.vue +76 -0
  33. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +59 -5
  34. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +38 -17
  35. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +138 -13
  36. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +1 -1
  37. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1774 -1772
  38. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +2 -3
  39. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +1 -1
  40. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +66 -53
  41. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +287 -214
  42. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +76 -66
  43. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +208 -124
  44. package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +3 -9
  45. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +11 -2
  46. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +7 -6
  47. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +43 -19
  48. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +680 -372
  49. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +879 -763
  50. package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +17 -2
  51. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +3 -9
  52. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +3 -9
  53. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +3 -9
  54. package/src/components/xform/form-designer/form-widget/field-widget/mixins/relative-default-mixin.js +107 -0
  55. package/src/components/xform/form-designer/form-widget/field-widget/mixins/relativeDateUtil.js +321 -0
  56. package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -0
  57. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +13 -0
  58. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +13 -8
  59. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +4 -9
  60. package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +3 -0
  61. package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +120 -120
  62. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +4 -0
  63. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +11 -0
  64. package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +9 -1
  65. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
  66. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +7 -3
  67. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +4 -2
  68. package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +36 -5
  69. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +338 -374
  70. package/src/components/xform/form-designer/form-widget/index.vue +6 -1
  71. package/src/components/xform/form-designer/form-widget/indexMixin.js +29 -25
  72. package/src/components/xform/form-designer/index.vue +194 -191
  73. package/src/components/xform/form-designer/indexMixin.js +860 -847
  74. package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +397 -397
  75. package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +602 -601
  76. package/src/components/xform/form-designer/setting-panel/form-setting.vue +1790 -1483
  77. package/src/components/xform/form-designer/setting-panel/index.vue +2 -7
  78. package/src/components/xform/form-designer/setting-panel/indexMixin.js +370 -335
  79. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +585 -544
  80. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
  81. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +1 -1
  82. package/src/components/xform/form-designer/setting-panel/property-editor/alignType-editor.vue +1 -1
  83. package/src/components/xform/form-designer/setting-panel/property-editor/buttonIcon-editor.vue +14 -15
  84. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +1 -1
  85. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +1 -1
  86. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +3 -3
  87. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +124 -125
  88. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1151 -957
  89. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +96 -74
  90. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +75 -0
  91. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +1 -1
  92. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +14 -13
  93. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-height-editor.vue +1 -1
  94. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  95. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  96. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  97. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue +4 -4
  98. package/src/components/xform/form-designer/setting-panel/property-editor/container-h5-card/h5-card-editor.vue +124 -124
  99. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +26 -31
  100. package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/height-editor.vue +1 -1
  101. package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/width-editor.vue +1 -1
  102. package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -119
  103. package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tabClass-editor.vue +45 -45
  104. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +340 -342
  105. package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +1 -1
  106. package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +1 -1
  107. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +2 -2
  108. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
  109. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue +1 -1
  110. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonLabel-editor.vue +1 -1
  111. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/title-editor.vue +1 -1
  112. package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue +1 -1
  113. package/src/components/xform/form-designer/setting-panel/property-editor/containerClass-editor.vue +1 -1
  114. package/src/components/xform/form-designer/setting-panel/property-editor/customClass-editor.vue +1 -1
  115. package/src/components/xform/form-designer/setting-panel/property-editor/defaultValue-editor.vue +1 -1
  116. package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +4 -4
  117. package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +3 -3
  118. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +6 -2
  119. package/src/components/xform/form-designer/setting-panel/property-editor/dsName-editor.vue +1 -1
  120. package/src/components/xform/form-designer/setting-panel/property-editor/echartHeight-editor.vue +1 -1
  121. package/src/components/xform/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +1 -1
  122. package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +2 -2
  123. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +1 -1
  124. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -50
  125. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +1 -1
  126. package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +7 -7
  127. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +84 -85
  128. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +1 -1
  129. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindActions.js +262 -0
  130. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +97 -88
  131. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +188 -0
  132. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/icon-editor.vue +14 -15
  133. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +27 -10
  134. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/checkStrictly-editor.vue +11 -13
  135. package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +74 -67
  136. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +27 -5
  137. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +35 -18
  138. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +1 -1
  139. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +1 -1
  140. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +1 -1
  141. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +1 -1
  142. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +35 -18
  143. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +1 -1
  144. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +1 -1
  145. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +1 -1
  146. package/src/components/xform/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +1 -1
  147. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -59
  148. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +11 -11
  149. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +10 -10
  150. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +12 -12
  151. package/src/components/xform/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -44
  152. package/src/components/xform/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +29 -29
  153. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +6 -6
  154. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +4 -4
  155. package/src/components/xform/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +1 -1
  156. package/src/components/xform/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +44 -44
  157. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +115 -115
  158. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -115
  159. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +1 -1
  160. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +1 -1
  161. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  162. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-max-editor.vue +1 -1
  163. package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +4 -4
  164. package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +4 -4
  165. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue +1 -1
  166. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
  167. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +3 -3
  168. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +1 -1
  169. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +1 -1
  170. package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +1 -1
  171. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +2 -2
  172. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +74 -74
  173. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +3 -3
  174. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +34 -18
  175. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
  176. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +53 -0
  177. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +35 -18
  178. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
  179. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +2 -2
  180. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +2 -2
  181. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
  182. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +1 -1
  183. package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +2 -2
  184. package/src/components/xform/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +1 -1
  185. package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -176
  186. package/src/components/xform/form-designer/setting-panel/property-editor/fixedQuery-editor.vue +39 -0
  187. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +41 -6
  188. package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +2 -2
  189. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +972 -972
  190. package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +1 -1
  191. package/src/components/xform/form-designer/setting-panel/property-editor/label-editor.vue +1 -1
  192. package/src/components/xform/form-designer/setting-panel/property-editor/labelAlign-editor.vue +1 -1
  193. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +1 -1
  194. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  195. package/src/components/xform/form-designer/setting-panel/property-editor/labelWidth-editor.vue +1 -1
  196. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  197. package/src/components/xform/form-designer/setting-panel/property-editor/max-editor.vue +1 -1
  198. package/src/components/xform/form-designer/setting-panel/property-editor/maxLength-editor.vue +1 -1
  199. package/src/components/xform/form-designer/setting-panel/property-editor/min-editor.vue +1 -1
  200. package/src/components/xform/form-designer/setting-panel/property-editor/minLength-editor.vue +1 -1
  201. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  202. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +15 -4
  203. package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +3 -3
  204. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  205. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  206. package/src/components/xform/form-designer/setting-panel/property-editor/prefixIcon-editor.vue +14 -15
  207. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +6 -6
  208. package/src/components/xform/form-designer/setting-panel/property-editor/relative-default-block.vue +369 -0
  209. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +1 -1
  210. package/src/components/xform/form-designer/setting-panel/property-editor/rows-editor.vue +1 -1
  211. package/src/components/xform/form-designer/setting-panel/property-editor/space-editor-editor.vue +1 -1
  212. package/src/components/xform/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +1 -1
  213. package/src/components/xform/form-designer/setting-panel/property-editor/step-editor.vue +1 -1
  214. package/src/components/xform/form-designer/setting-panel/property-editor/styleTableClass-editor.vue +1 -1
  215. package/src/components/xform/form-designer/setting-panel/property-editor/styleTitClass-editor.vue +1 -1
  216. package/src/components/xform/form-designer/setting-panel/property-editor/suffixIcon-editor.vue +14 -15
  217. package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +1 -1
  218. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +2 -3
  219. package/src/components/xform/form-designer/setting-panel/property-editor/type-editor.vue +1 -1
  220. package/src/components/xform/form-designer/setting-panel/property-editor/uploadTip-editor.vue +1 -1
  221. package/src/components/xform/form-designer/setting-panel/property-editor/uploadURL-editor.vue +1 -1
  222. package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +91 -0
  223. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +1 -1
  224. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +1 -1
  225. package/src/components/xform/form-designer/setting-panel/property-editor/widgetWidth-editor.vue +1 -1
  226. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +374 -351
  227. package/src/components/xform/form-designer/toolbar-panel/index.vue +266 -103
  228. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +655 -589
  229. package/src/components/xform/form-designer/widget-panel/index.vue +391 -341
  230. package/src/components/xform/form-designer/widget-panel/indexMixin.js +351 -308
  231. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4642 -4028
  232. package/src/components/xform/form-render/container-item/containerItemMixin.js +76 -61
  233. package/src/components/xform/form-render/container-item/data-table-item.vue +24 -13
  234. package/src/components/xform/form-render/container-item/data-table-mixin.js +5927 -3400
  235. package/src/components/xform/form-render/container-item/detail-h5-item.vue +173 -173
  236. package/src/components/xform/form-render/container-item/detail-item.vue +446 -224
  237. package/src/components/xform/form-render/container-item/detail-plain-item.vue +92 -0
  238. package/src/components/xform/form-render/container-item/list-h5-item.vue +1186 -411
  239. package/src/components/xform/form-render/container-item/tab-item.vue +129 -125
  240. package/src/components/xform/form-render/container-item/table-item.vue +0 -3
  241. package/src/components/xform/form-render/container-item/table2-item.vue +18 -10
  242. package/src/components/xform/form-render/dynamicDialogRender.js +140 -99
  243. package/src/components/xform/form-render/index.vue +8 -8
  244. package/src/components/xform/form-render/indexMixin.js +5299 -3766
  245. package/src/components/xform/form-render/refMixin.js +14 -11
  246. package/src/components/xform/lang/en-US.js +473 -438
  247. package/src/components/xform/lang/en-US_extension.js +4 -0
  248. package/src/components/xform/lang/zh-CN.js +646 -620
  249. package/src/components/xform/mixins/defaultHandle.js +363 -26
  250. package/src/components/xform/mixins/scriptHttp.js +54 -51
  251. package/src/components/xform/utils/attachmentValueUtil.js +239 -0
  252. package/src/components/xform/utils/fixedQueryUtil.js +93 -0
  253. package/src/components/xform/utils/format.js +195 -169
  254. package/src/components/xform/utils/queryParamUtil.js +84 -0
  255. package/src/components/xform/utils/tableColumnHelper.js +7 -8
  256. package/src/components/xform/utils/util.js +1663 -1551
  257. package/src/components/xform/utils/validators.js +100 -48
  258. package/src/index.js +403 -89
  259. package/src/layout/components/AppMain.vue +147 -119
  260. package/src/layout/components/Sidebar/default.vue +109 -59
  261. package/src/layout/components/TagsView/index.vue +1 -1
  262. package/src/layout/components/extractedCode/queryDialog.vue +33 -26
  263. package/src/layout/components/extractedCode/viewDialog.vue +207 -193
  264. package/src/layout/components/langTool.vue +128 -123
  265. package/src/layout/defaultLayout.vue +170 -158
  266. package/src/mixins/wf/index.js +40 -38
  267. package/src/public-path.js +38 -0
  268. package/src/router/modules/system.js +4 -0
  269. package/src/store/config/index.js +945 -669
  270. package/src/utils/pdfUtil.js +428 -70
  271. package/src/views/bd/setting/bd_company_env/dialog.vue +1 -1
  272. package/src/views/bd/setting/formVersion/button.vue +5 -0
  273. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +21 -10
  274. package/src/views/bd/setting/formVersion/link.vue +5 -0
  275. package/src/views/bd/setting/form_script/edit.vue +1 -0
  276. package/src/views/bd/setting/form_script/edit1.vue +1 -0
  277. package/src/views/bd/setting/form_script/form_list.vue +1 -0
  278. package/src/views/bd/setting/form_script/list.vue +1 -0
  279. package/src/views/bd/setting/form_script/list1.vue +2 -0
  280. package/src/views/bd/setting/form_template/edit.vue +1 -0
  281. package/src/views/bd/setting/form_template/list.vue +2 -0
  282. package/src/views/bd/setting/form_template/mixins/edit.js +77 -74
  283. package/src/views/bd/setting/table_model/edit.vue +16 -29
  284. package/src/views/bd/setting/table_model/list.vue +1 -0
  285. package/src/views/bd/setting/table_model/mixins/edit.js +295 -149
  286. package/src/views/bd/setting/table_model/mixins/zdDialog.js +32 -0
  287. package/src/views/support/export_template/list.vue +1 -1
  288. package/src/views/user/company_info/edit.vue +149 -88
  289. package/src/views/user/form/form_template/dialog.vue +1 -1
  290. package/src/views/user/form/form_template/itemList.vue +1 -1
  291. package/src/views/user/form/form_template/list.vue +1 -1
  292. package/src/views/user/form/form_template_field/dialog.vue +1 -1
  293. package/src/views/user/form/form_type/dialog.vue +1 -1
  294. package/src/views/user/form/form_type/list.vue +1 -1
  295. package/src/views/user/form/report_requestaccess/dialog.vue +1 -1
  296. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  297. package/src/views/user/form/vform/designer.vue +51 -22
  298. package/src/views/user/form/vform/render.vue +21 -23
  299. package/src/views/user/form/view/list.vue +134 -37
  300. package/src/views/user/wf/wfReport/index.vue +24 -1
  301. package/src/views/user/wf/wf_manage/list.vue +8 -4
  302. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +0 -209
  303. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +0 -1639
  304. package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
  305. package/src/views/user/menu/voc_list.vue +0 -686
@@ -5,11 +5,9 @@ modules = {
5
5
  fieldKeyName() {
6
6
  let o = this.widget.options.name;
7
7
  return (
8
- (this.widget.options.keyNameEnabled
9
- && this.widget.options.keyName)
10
- || o
8
+ (this.widget.options.keyNameEnabled && this.widget.options.keyName) || o
11
9
  );
12
- }
10
+ },
13
11
  },
14
12
  methods: {
15
13
  appendTableRow(widget) {
@@ -30,7 +28,7 @@ modules = {
30
28
  }
31
29
 
32
30
  this.designer.emitHistoryChange();
33
- this.designer.emitEvent('field-selected', this.widget);
31
+ this.designer.emitEvent("field-selected", this.widget);
34
32
  },
35
33
 
36
34
  onContainerDragUpdate() {
@@ -80,7 +78,7 @@ modules = {
80
78
  if (!!this.parentWidget) {
81
79
  nextSelected = this.parentWidget;
82
80
  }
83
- } else if (this.parentList.length === (1 + this.indexOfParentList)) {
81
+ } else if (this.parentList.length === 1 + this.indexOfParentList) {
84
82
  nextSelected = this.parentList[this.indexOfParentList - 1];
85
83
  } else {
86
84
  nextSelected = this.parentList[this.indexOfParentList + 1];
@@ -93,20 +91,20 @@ modules = {
93
91
  //}
94
92
 
95
93
  this.designer.emitHistoryChange();
96
- })
94
+ });
97
95
  }
98
96
  },
99
97
 
100
- setWidgetOption(optionName, optionValue) { //通用组件选项修改API
98
+ setWidgetOption(optionName, optionValue) {
99
+ //通用组件选项修改API
101
100
  if (this.widget.options.hasOwnProperty(optionName)) {
102
101
  this.widget.options[optionName] = optionValue;
103
102
  }
104
103
  },
105
104
  getI18nLabel(label, path, param) {
106
105
  return !this.designState && label ? this.$t2(label, path, param) : label;
107
- }
108
-
109
- }
106
+ },
107
+ },
110
108
  };
111
109
 
112
110
  export default modules;
@@ -1,22 +1,22 @@
1
- import refMixinDesign from '../../../../../components/xform/form-designer/refMixinDesign';
2
- import * as formatUtil from '../../../../../components/xform/utils/format.js';
3
- import i18n from '../../../../../components/xform/utils/i18n';
4
- import containerMixin from '../../../../../components/xform/form-designer/form-widget/container-widget/containerMixin';
5
- import {columnFormatMap} from "../../../../../components/xform/utils/util";
1
+ import refMixinDesign from "../../../../../components/xform/form-designer/refMixinDesign";
2
+ import * as formatUtil from "../../../../../components/xform/utils/format.js";
3
+ import i18n from "../../../../../components/xform/utils/i18n";
4
+ import containerMixin from "../../../../../components/xform/form-designer/form-widget/container-widget/containerMixin";
5
+ import { columnFormatMap } from "../../../../../components/xform/utils/util";
6
6
 
7
7
  let modules = {};
8
8
  const baseRefUtil = {
9
9
  refMixinDesign,
10
10
  formatUtil,
11
11
  i18n,
12
- containerMixin
12
+ containerMixin,
13
13
  };
14
14
 
15
15
  modules = {
16
16
  data() {
17
17
  return {
18
18
  gridOptions1: {
19
- className: 'list-table',
19
+ className: "list-table",
20
20
  resizable: true,
21
21
  // showFooter: true,
22
22
  stripe: true,
@@ -25,31 +25,35 @@ modules = {
25
25
  highlightHoverRow: true,
26
26
  columns: this.columns,
27
27
  toolbarConfig: {
28
- className: 'toolSet',
28
+ className: "toolSet",
29
29
  custom: {
30
- icon: 'el-icon-s-tools'
31
- }
30
+ icon: "el-icon-s-tools",
31
+ },
32
32
  },
33
- data: []
33
+ data: [],
34
34
  },
35
35
  formData: {
36
- saleOrgName: '',
37
- loginAccount: '',
38
- mobile: '',
39
- enabled: 1
40
- }
36
+ saleOrgName: "",
37
+ loginAccount: "",
38
+ mobile: "",
39
+ enabled: 1,
40
+ },
41
41
  };
42
42
  },
43
- componentName: 'ContainerWidget',
44
- mixins: [baseRefUtil.i18n, baseRefUtil.containerMixin, baseRefUtil.refMixinDesign],
45
- inject: ['refList'],
43
+ componentName: "ContainerWidget",
44
+ mixins: [
45
+ baseRefUtil.i18n,
46
+ baseRefUtil.containerMixin,
47
+ baseRefUtil.refMixinDesign,
48
+ ],
49
+ inject: ["refList"],
46
50
 
47
51
  props: {
48
52
  widget: Object,
49
53
  parentWidget: Object,
50
54
  parentList: Array,
51
55
  indexOfParentList: Number,
52
- designer: Object
56
+ designer: Object,
53
57
  },
54
58
  computed: {
55
59
  selected() {
@@ -57,16 +61,16 @@ modules = {
57
61
  },
58
62
 
59
63
  customClass() {
60
- return this.widget.options.customClass || '';
64
+ return this.widget.options.customClass || "";
61
65
  },
62
66
  columns() {
63
67
  let tableColumns = this.widget.options.tableColumns;
64
68
  let newColumns = [];
65
69
  newColumns.push({
66
- type: 'checkbox',
70
+ type: "checkbox",
67
71
  width: 48,
68
72
  resizable: false,
69
- fixed: 'left'
73
+ fixed: "left",
70
74
  });
71
75
  const createColumn = (t, isChild) => {
72
76
  let col = {
@@ -74,16 +78,16 @@ modules = {
74
78
  field: t.prop,
75
79
  title: t.label,
76
80
  sortable: t.sortable,
77
- align: t.align ? t.align : 'center',
81
+ align: t.align ? t.align : "center",
78
82
  formatter: this.formatterValue,
79
83
  params: {
80
- formatS: t.formatS
84
+ formatS: t.formatS,
81
85
  },
82
- visible: t.show
86
+ visible: t.show,
83
87
  };
84
88
  if (t.children && t.children.length) {
85
- col.align = 'center';
86
- let childColumns = t.children.map(child => {
89
+ col.align = "center";
90
+ let childColumns = t.children.map((child) => {
87
91
  return createColumn(child, true);
88
92
  });
89
93
  col.children = childColumns;
@@ -108,7 +112,7 @@ modules = {
108
112
  return col;
109
113
  };
110
114
 
111
- tableColumns.forEach(t => {
115
+ tableColumns.forEach((t) => {
112
116
  /*let col = {
113
117
  fixed: !!t.fixed && t.fixed,
114
118
  field: t.prop,
@@ -131,10 +135,10 @@ modules = {
131
135
  let tableColumns = this.widget.columns;
132
136
  let newColumns = [];
133
137
  newColumns.push({
134
- type: 'checkbox',
138
+ type: "checkbox",
135
139
  width: 48,
136
140
  resizable: false,
137
- fixed: 'left'
141
+ fixed: "left",
138
142
  });
139
143
  tableColumns.forEach((item, index) => {
140
144
  let t = item.options;
@@ -144,12 +148,12 @@ modules = {
144
148
  title: t.label,
145
149
  width: t.columnWidth,
146
150
  sortable: !!t.name ? true : false,
147
- align: 'center',
151
+ align: "center",
148
152
  /*formatter: this.formatterValue,
149
153
  params: {
150
154
  formatS: t.formatS
151
155
  },*/
152
- visible: true
156
+ visible: true,
153
157
  };
154
158
  newColumns.push(col);
155
159
  });
@@ -158,9 +162,9 @@ modules = {
158
162
  gridOptions() {
159
163
  return {
160
164
  ...this.gridOptions1,
161
- columns: this.columns
165
+ columns: this.columns,
162
166
  };
163
- }
167
+ },
164
168
  },
165
169
  watch: {
166
170
  //
@@ -195,85 +199,82 @@ modules = {
195
199
  row.editWidget = fieldWidget;
196
200
  }
197
201
  })*/
198
- this.handleTableColumnWidget(this.widget)
202
+ this.handleTableColumnWidget(this.widget);
199
203
  },
200
204
  handleTableColumnWidget(widget) {
201
205
  //修复data-table旧数据表格列widget与editWidget为空的问题
202
- if (!widget || widget.type != "data-table" || !widget.options.tableColumns) return
206
+ if (
207
+ !widget ||
208
+ widget.type != "data-table" ||
209
+ !widget.options.tableColumns
210
+ )
211
+ return;
203
212
  let columnLoopDo = (t, e) => {
204
- if(t.filterable===null || t.filterable===undefined) t.filterable = true;
213
+ if (t.filterable === null || t.filterable === undefined)
214
+ t.filterable = true;
205
215
  if (t.children && t.children.length) {
206
216
  for (let item of t.children) {
207
- columnLoopDo(item)
217
+ columnLoopDo(item);
208
218
  }
209
-
210
219
  } else {
211
220
  let type1 = columnFormatMap[t.formatS];
212
- if(type1){
213
- if(!t.widget){
221
+ if (type1) {
222
+ if (!t.widget) {
214
223
  let fieldWidget = this.designer.getColumnWidget(t, false);
215
224
  t.widget = fieldWidget;
216
225
  }
217
- if (t.widget) t.widget.columnType = t.formatS
226
+ if (t.widget) t.widget.columnType = t.formatS;
218
227
  }
219
228
  let type2 = columnFormatMap[t.editFormatS];
220
- if(type2){
229
+ if (type2) {
221
230
  if (!t.editWidget) {
222
231
  let fieldWidget = this.designer.getColumnWidget(t, true);
223
232
  t.editWidget = fieldWidget;
224
233
  }
225
- if (t.editWidget) t.editWidget.columnType = t.editFormatS
234
+ if (t.editWidget) t.editWidget.columnType = t.editFormatS;
226
235
  }
227
236
  }
228
- }
237
+ };
229
238
 
230
239
  for (let item of widget.options.tableColumns) {
231
- columnLoopDo(item)
240
+ columnLoopDo(item);
232
241
  }
233
242
  /*widget.options.tableColumns.forEach(item => {
234
243
  columnLoopDo(item)
235
244
  })*/
236
245
  },
237
- resetEvent() {
238
- },
239
- searchEvent() {
240
- },
241
- openEditDialog() {
242
- },
243
- importExcel() {
244
- },
245
- formatterValue: function ({
246
- cellValue,
247
- row,
248
- column
249
- }) {
250
- if (!cellValue) return '';
246
+ resetEvent() {},
247
+ searchEvent() {},
248
+ openEditDialog() {},
249
+ importExcel() {},
250
+ formatterValue: function ({ cellValue, row, column }) {
251
+ if (!cellValue) return "";
251
252
 
252
253
  if (column.params && column.params.formatS)
253
254
  switch (column.params.formatS) {
254
- case 'd1':
255
+ case "d1":
255
256
  return baseRefUtil.formatUtil.formatDate1(cellValue);
256
- case 'd2':
257
+ case "d2":
257
258
  return baseRefUtil.formatUtil.formatDate2(cellValue);
258
- case 'd3':
259
+ case "d3":
259
260
  return baseRefUtil.formatUtil.formatDate3(cellValue);
260
- case 'd4':
261
+ case "d4":
261
262
  return baseRefUtil.formatUtil.formatDate4(cellValue);
262
- case 'd5':
263
+ case "d5":
263
264
  return baseRefUtil.formatUtil.formatDate4(cellValue);
264
- case 'n1':
265
+ case "n1":
265
266
  return baseRefUtil.formatUtil.formatNumber1(cellValue);
266
- case 'n2':
267
+ case "n2":
267
268
  return baseRefUtil.formatUtil.formatNumber2(cellValue);
268
- case 'n3':
269
+ case "n3":
269
270
  return baseRefUtil.formatUtil.formatNumber3(cellValue);
270
- case 'n4':
271
+ case "n4":
271
272
  return baseRefUtil.formatUtil.formatNumber4(cellValue);
272
- case 'n5':
273
+ case "n5":
273
274
  return baseRefUtil.formatUtil.formatNumber5(cellValue);
274
- case 'n6':
275
+ case "n6":
275
276
  return baseRefUtil.formatUtil.formatNumber6(cellValue);
276
- case 'n7':
277
+ case "n7":
277
278
  return baseRefUtil.formatUtil.formatNumber7(cellValue);
278
279
  }
279
280
  return cellValue;
@@ -283,8 +284,8 @@ modules = {
283
284
  },
284
285
  getI18nLabel(label, path, param) {
285
286
  return !this.designState && label ? this.$t2(label, path, param) : label;
286
- }
287
- }
287
+ },
288
+ },
288
289
  };
289
290
 
290
291
  export default modules;
@@ -17,7 +17,7 @@
17
17
  <template #form>
18
18
  <template v-if="widget.options.isQueryTable">
19
19
  <div class="clearfix screen-btns">
20
- <div class="fl" style="width: 700px;">
20
+ <div class="fl button-drag-zone">
21
21
  <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-upload2"
22
22
  v-if="widget.options.showExportBtn!==false">导出
23
23
  </vxe-button>-->
@@ -65,7 +65,7 @@
65
65
  <div class="fr">
66
66
  <!-- <vxe-button icon="el-icon-view" class="button-sty" @click="searchEvent">显示总记录数</vxe-button> -->
67
67
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
68
- plain>重置
68
+ plain>刷新
69
69
  </vxe-button>
70
70
 
71
71
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
@@ -247,9 +247,14 @@ div.table-container {
247
247
  }
248
248
  }
249
249
 
250
+ /* 按钮拖放区:宽度自适应,最多占满除右侧刷新/搜索按钮外的空间,超出后按钮换行 */
251
+ .screen-btns .fl.button-drag-zone {
252
+ max-width: calc(100% - 180px);
253
+ }
254
+
250
255
  .sub-form-table {
251
256
  min-height: 68px;
252
- min-width: max-content
257
+ min-width: 200px
253
258
  }
254
259
 
255
260
  .sub-form-table .sub-form-drag-drop-zone {
@@ -257,7 +262,8 @@ div.table-container {
257
262
  }
258
263
 
259
264
  .sub-form-table div.sub-form-table-column {
260
- display: inline-block
265
+ display: inline-block;
266
+ vertical-align: top
261
267
  }
262
268
 
263
269
  </style>
@@ -0,0 +1,76 @@
1
+ <!--
2
+ /**
3
+ * 简洁详情模块(detail-plain)设计态:无标题栏、无按钮拖放区,仅 panes(详情tab)。
4
+ */
5
+ -->
6
+
7
+ <template>
8
+ <container-wrapper :designer="designer" :widget="widget" :parent-widget="parentWidget" :parent-list="parentList"
9
+ :index-of-parent-list="indexOfParentList" :class="widget.options.isFullscreen ? 'full-height':''">
10
+ <div class="detail-wrap grid-container" :key="widget.id"
11
+ :class="{'selected': selected}" @click.stop="selectWidget(widget)">
12
+ <baseTabs style="height: auto;" :showNav="!widget.options.hideNav">
13
+ <detail-pane-widget v-for="(paneWidget, index) in widget.panes" :key="index" :widget="paneWidget"
14
+ :designer="designer" :parent-list="widget.panes"
15
+ :index-of-parent-list="index" :parent-widget="widget"
16
+ :col-height="widget.options.colHeight" tabRef="baseTabRef"
17
+ :tabPaneGrade="2"></detail-pane-widget>
18
+ </baseTabs>
19
+ </div>
20
+ </container-wrapper>
21
+ </template>
22
+
23
+ <script>
24
+ import i18n from "../../../../../components/xform/utils/i18n"
25
+ import detailPaneWidget from "../../../../../components/xform/form-designer/form-widget/container-widget/detail-pane-widget"
26
+ import containerMixin from "../../../../../components/xform/form-designer/form-widget/container-widget/containerMixin"
27
+ import ContainerWrapper from "../../../../../components/xform/form-designer/form-widget/container-widget/container-wrapper"
28
+ import refMixinDesign from "../../../../../components/xform/form-designer/refMixinDesign"
29
+ import FieldComponents from "../../../../../components/xform/form-designer/form-widget/field-widget";
30
+
31
+ export default {
32
+ name: "detail-plain-widget",
33
+ componentName: 'ContainerWidget',
34
+ mixins: [i18n, containerMixin, refMixinDesign],
35
+ inject: ['refList'],
36
+ components: {
37
+ ContainerWrapper,
38
+ detailPaneWidget,
39
+ ...FieldComponents,
40
+ },
41
+ props: {
42
+ widget: Object,
43
+ parentWidget: Object,
44
+ parentList: Array,
45
+ indexOfParentList: Number,
46
+ designer: Object,
47
+ },
48
+ computed: {
49
+ selected() {
50
+ return this.widget.id === this.designer.selectedId
51
+ },
52
+
53
+ customClass() {
54
+ return this.widget.options.customClass || ''
55
+ },
56
+ },
57
+ created() {
58
+ this.initRefList()
59
+ },
60
+ }
61
+ </script>
62
+
63
+ <style lang="scss" scoped>
64
+ .grid-container {
65
+ min-height: 50px;
66
+ outline: 1px dashed #336699;
67
+ > div{height:100%;}
68
+ .form-widget-list {
69
+ height: 100%;
70
+ }
71
+ }
72
+
73
+ .grid-container.selected, .grid-cell.selected {
74
+ outline: 2px solid $--color-primary !important;
75
+ }
76
+ </style>
@@ -65,11 +65,57 @@
65
65
  <el-button type="primary" class="button-sty" icon="el-icon-check">保存</el-button>
66
66
  </div>-->
67
67
  </div>
68
- <baseTabs style="height: auto;">
69
- <detail-pane-widget v-for="(paneWidget, index) in widget.panes" :key="index" :widget="paneWidget" :designer="designer" :parent-list="widget.panes"
70
- :index-of-parent-list="index" :parent-widget="widget"
71
- :col-height="widget.options.colHeight" tabRef="baseTabRef" :tabPaneGrade="2"></detail-pane-widget>
72
- </baseTabs>
68
+ <!-- 正文区:通用容器列表。panes 里既可以直接挂 detail-pane(模块),也可以挂 tab 等
69
+ 其它容器(标签承载)。设计期这里不套 baseTabs——draggable 会隔断 baseTabs.getTabs()
70
+ slot 子级的探测(见 baseTabs/mixins.js getTabs),导航拿不到 pane,索性不渲染,
71
+ 左侧导航预览只在运行期有。 -->
72
+ <draggable
73
+ :list="widget.panes"
74
+ v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
75
+ handle=".drag-handler"
76
+ @add="evt => onContainerDragAdd(evt, widget.panes)"
77
+ @update="onContainerDragUpdate"
78
+ :move="checkContainerMove"
79
+ >
80
+ <transition-group name="fade" tag="div" class="detail-pane-list">
81
+ <template v-for="(paneWidget, index) in widget.panes">
82
+ <!-- 模块:额外要 tabRef/tabPaneGrade,这两个 props 是 baseTabs 探测用的,只给 detail-pane -->
83
+ <detail-pane-widget
84
+ v-if="paneWidget.type === 'detail-pane'"
85
+ :key="paneWidget.id"
86
+ :widget="paneWidget"
87
+ :designer="designer"
88
+ :parent-list="widget.panes"
89
+ :index-of-parent-list="index"
90
+ :parent-widget="widget"
91
+ :col-height="widget.options.colHeight"
92
+ tabRef="baseTabRef"
93
+ :tabPaneGrade="2"
94
+ ></detail-pane-widget>
95
+ <component
96
+ v-else-if="'container' === paneWidget.category"
97
+ :is="paneWidget.type + '-widget'"
98
+ :key="paneWidget.id"
99
+ :widget="paneWidget"
100
+ :designer="designer"
101
+ :parent-list="widget.panes"
102
+ :index-of-parent-list="index"
103
+ :parent-widget="widget"
104
+ ></component>
105
+ <component
106
+ v-else
107
+ :is="paneWidget.type + '-widget'"
108
+ :key="paneWidget.id"
109
+ :field="paneWidget"
110
+ :designer="designer"
111
+ :parent-list="widget.panes"
112
+ :index-of-parent-list="index"
113
+ :parent-widget="widget"
114
+ :design-state="true"
115
+ ></component>
116
+ </template>
117
+ </transition-group>
118
+ </draggable>
73
119
  </div>
74
120
  </container-wrapper>
75
121
  </template>
@@ -140,6 +186,14 @@
140
186
  height: 100%;
141
187
  }
142
188
 
189
+ /* 正文区(panes)的拖放区。不能复用上面的 .form-widget-list——那条是 height:100% 且
190
+ min-height 被注释掉的,空态会塌成一条线,没有地方往里拖组件。
191
+ 这里给足高度,保证空态也是个看得见、拖得进的落区。 */
192
+ .detail-pane-list {
193
+ min-height: 150px;
194
+ height: auto;
195
+ }
196
+
143
197
  }
144
198
 
145
199
  .grid-container.selected, .grid-cell.selected {
@@ -11,6 +11,18 @@
11
11
  :_dataId.sync="dataId" :defaultShowWfContent="defaultShowWfContent" :_isOutLink="true"
12
12
  :parent-target="_self"
13
13
  @reload="$reloadHandle" v-bind="queryParam" v-on="listeners"></component>
14
+ <micro-view-host
15
+ v-else-if="showWfContent && remoteView"
16
+ :owner="remoteView.owner"
17
+ :target-path="remoteView.targetPath"
18
+ :biz-params="remoteView.bizParams"
19
+ :view-meta="remoteView.viewMeta"
20
+ :initial-out-param="outParam"
21
+ @reload="$reloadHandle"
22
+ @update-out-param="outParam = $event"
23
+ @bridge-emit="onBridgeEmit"
24
+ @close="showWfContent = false"
25
+ ></micro-view-host>
14
26
  </div>
15
27
  <span slot="footer" class="dialog-footer" v-if="option.showFooter!==false" v-bind="option.footerConfig">
16
28
  <el-button type="primary" plain class="button-sty" @click="close">
@@ -26,9 +38,9 @@
26
38
  </template>
27
39
 
28
40
  <script>
41
+ import { loadViewComponent } from "@base/utils/resolveViewComponent";
29
42
 
30
43
  export default {
31
- // name: "vabSearchDialog",
32
44
  components: {},
33
45
  props: {
34
46
  visiable: Boolean,
@@ -63,6 +75,7 @@ export default {
63
75
 
64
76
  showWfContent: true,
65
77
  wfContent: null,
78
+ remoteView: null,
66
79
  outParam: null,
67
80
  // dataId: null,
68
81
  defaultShowWfContent: null,
@@ -175,23 +188,29 @@ export default {
175
188
 
176
189
  this.showWfContent = true;
177
190
 
178
- let t = "@base/views";
179
- let urlArr = [
180
- '/user/bill_setting/h5_view.vue',
181
- '/user/form/view/list.vue',
182
- '/user/form/view/edit.vue'
183
- ]
184
-
185
- if (urlArr.includes(url)) {
186
- this.wfContent = require('@base/views' + url).default;
187
- } else if (url.startsWith(t)) {
188
- let path = url.slice(t.length);
189
- this.wfContent = require('@base/views' + path).default;
190
- } else {
191
- this.wfContent = require('@/views' + url).default;
192
- }
191
+ let res = loadViewComponent(url);
192
+ this.remoteView =
193
+ res.kind === "remote"
194
+ ? {
195
+ owner: res.owner,
196
+ targetPath: res.targetPath,
197
+ bizParams: this.queryParam,
198
+ viewMeta: {
199
+ visibleKey: "showWfContent",
200
+ defaultShowWfContent: this.defaultShowWfContent,
201
+ _isOutLink: true,
202
+ _dataId: this.dataId,
203
+ },
204
+ }
205
+ : null;
206
+ this.wfContent = res.component;
193
207
  },
194
208
 
209
+ // remote 承载态下,把子应用桥接回来的任意事件按名字派回原 option.on 监听
210
+ onBridgeEmit(name, args) {
211
+ let fn = this.listeners && this.listeners[name];
212
+ if (typeof fn === "function") fn.apply(null, args || []);
213
+ },
195
214
 
196
215
  reload(e, option) {
197
216
  let updateParam = option?.updateParam || {};
@@ -277,6 +296,8 @@ export default {
277
296
  outline: none;
278
297
 
279
298
  &.detail-wrap .d-cont {
299
+ //height: calc(100vh - 150px);
300
+
280
301
  .title .field-wrapper {
281
302
  display: inline-block !important
282
303
  }
@@ -291,7 +312,7 @@ export default {
291
312
  height: calc(100vh - 110px);
292
313
 
293
314
  &.nfootBtn {
294
- height: calc(100vh - 58px)
315
+ height: calc(100vh - var(--xform-dialog-body-offset, 58px))
295
316
  }
296
317
  }
297
318
  }