super-page-runtime 2.1.933 → 2.2.1

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 (183) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +5 -7
  2. package/dist/es/assets/chart-themes/theme1.js +2 -6
  3. package/dist/es/assets/chart-themes/theme2.js +2 -6
  4. package/dist/es/assets/chart-themes/theme3.js +2 -6
  5. package/dist/es/components/runtime/index.d.ts +2 -1
  6. package/dist/es/components/runtime/utils/api/api-util.js +4 -7
  7. package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -435
  8. package/dist/es/components/runtime/utils/assemblys-config.js +11 -367
  9. package/dist/es/components/runtime/utils/barcode-util.js +9 -33
  10. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
  11. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
  12. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
  13. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
  14. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
  15. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  16. package/dist/es/components/runtime/utils/charts/chart-util.js +226 -485
  17. package/dist/es/components/runtime/utils/common-util.js +76 -153
  18. package/dist/es/components/runtime/utils/eventBus.js +3 -9
  19. package/dist/es/components/runtime/utils/events/event-util.js +343 -727
  20. package/dist/es/components/runtime/utils/events/print-label.js +72 -140
  21. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
  22. package/dist/es/components/runtime/utils/events/standard-event.js +810 -2299
  23. package/dist/es/components/runtime/utils/events/validator-util.js +222 -552
  24. package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
  25. package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
  26. package/dist/es/components/runtime/utils/global-refs.js +53 -84
  27. package/dist/es/components/runtime/utils/i18n-util.js +11 -20
  28. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  29. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  30. package/dist/es/components/runtime/utils/page-helper-util.js +278 -658
  31. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  32. package/dist/es/components/runtime/utils/page-init-util.js +132 -370
  33. package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
  34. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  35. package/dist/es/components/runtime/utils/page-store.js +8 -12
  36. package/dist/es/components/runtime/utils/store-util.js +9 -13
  37. package/dist/es/components/runtime/utils/store.js +2 -2
  38. package/dist/es/components/runtime/utils/table-utils.js +45 -84
  39. package/dist/es/components/runtime/utils/tree-utils.js +17 -37
  40. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
  42. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
  44. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
  46. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
  48. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
  50. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  51. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  54. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
  55. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  56. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -169
  57. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  59. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  60. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
  62. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
  64. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
  66. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
  68. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
  69. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +253 -449
  70. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
  71. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  72. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
  73. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +37 -231
  75. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  76. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
  77. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  78. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +197 -510
  80. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  81. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
  82. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  83. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  84. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +21 -125
  85. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  87. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
  88. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  89. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
  91. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
  93. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
  95. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  96. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
  97. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  98. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
  99. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  100. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
  101. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  102. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
  103. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  104. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
  105. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  106. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
  107. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +302 -803
  108. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +249 -594
  110. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  111. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +40 -115
  113. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
  115. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  116. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
  117. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  119. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +42 -154
  120. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
  121. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  123. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +52 -200
  124. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  125. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +66 -239
  126. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  127. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -104
  128. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  129. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -59
  130. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  131. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +51 -173
  132. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  133. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
  134. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  135. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -249
  136. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  137. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -174
  138. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  139. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
  140. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  141. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
  142. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  143. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +61 -189
  144. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  145. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +87 -244
  146. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  147. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +77 -261
  148. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  150. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  151. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  152. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  153. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
  154. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  155. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  156. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  157. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  158. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  159. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  160. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +125 -254
  161. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  162. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  163. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
  164. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  165. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
  166. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  167. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
  168. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  169. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  170. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  171. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  172. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  173. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  174. package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -134
  175. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  176. package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
  177. package/dist/es/components/runtime/views/super-page.vue.js +222 -708
  178. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  179. package/dist/es/i18n/langs/cn.js +2 -55
  180. package/dist/es/i18n/langs/en.js +2 -55
  181. package/dist/es/index.d.ts +2 -2
  182. package/dist/es/index.js +6 -4
  183. package/package.json +3 -2
@@ -1,159 +1,47 @@
1
- import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
2
- import { getVariableValue, setVariableValue, getOptionDatasFromPage, monitorFieldChange, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent, handleAfterInitEvent } from "../../../../utils/events/event-util.js";
5
- import { $t } from "../../../../utils/i18n-util.js";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "checkbox-runtime",
8
- props: {
9
- pageContext: {},
10
- configure: {}
11
- },
12
- setup(__props, { expose: __expose }) {
13
- const props = __props;
14
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
15
- let dynamicFields = getFormModelFields(props.pageContext, props.configure);
16
- const dynamicModelMethod = computed({
17
- get() {
18
- let val = getVariableValue(entity, dynamicFields);
19
- if (val && typeof val === "string") {
20
- val = val.split(",");
21
- }
22
- return val;
23
- },
24
- set(value) {
25
- if (value && value.length > 0) {
26
- value = value.join(",");
27
- }
28
- setVariableValue(entity, dynamicFields, value);
29
- }
30
- });
31
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
32
- const runtimeStyle = runtimeInfo.style;
33
- const runtimeClass = runtimeInfo.class;
34
- const headerStyle = runtimeInfo.headerStyle;
35
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
36
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
37
- const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
38
- const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
39
- if (cacheOptions.length > 0) {
40
- listOptions.value = cacheOptions;
41
- }
42
- const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
43
- const valueType = dataOrigin.optionValueSetType;
44
- let autoSets = [];
45
- if (valueType == "dynamicData" || valueType == "dynamicData" || valueType == "service") {
46
- if (dataOrigin.autoSets) {
47
- for (let obj of dataOrigin.autoSets) {
48
- if (obj.source) {
49
- autoSets.push(obj);
50
- }
51
- }
52
- }
53
- }
54
- if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
55
- autoSets.push({
56
- source: "label",
57
- target: props.configure.props.base.optionProp
58
- });
59
- }
60
- designProperty.value.changeMethod = optionChange;
61
- const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
62
- function refreshOptions() {
63
- queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((result) => {
64
- console.log("动态查询结果", result);
65
- });
66
- }
67
- const monitorFields = designProperty.value.monitorFields;
68
- monitorFieldChange(props.pageContext, monitorFields, refreshOptions);
69
- function optionChange(value) {
70
- if (autoSets.length > -1) {
71
- let selItems = null;
72
- if (listOptions.value && value != void 0 && value != null) {
73
- selItems = listOptions.value.filter((item) => {
74
- return Array.isArray(value) ? value.includes(item.value) : value === item.value;
75
- });
76
- }
77
- autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
78
- }
79
- handleFormEvent(value, props.pageContext, props.configure, "change");
80
- }
81
- function updateOptions(newOptions) {
82
- listOptions.value = newOptions ? newOptions : [];
1
+ import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createElementBlock as g, Fragment as v, renderList as d, createCommentVNode as m, toDisplayString as h } from "vue";
2
+ import { setVariableValue as y, getVariableValue as x, getOptionDatasFromPage as b, monitorFieldChange as C, autoSetAfterSelect as k, queryOptionDatasources as _ } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as S, handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
5
+ import { $t as I } from "../../../../utils/i18n-util.js";
6
+ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
7
+ const w = e2, z = w.pageContext.entity ? w.pageContext.entity : {};
8
+ let D = R(w.pageContext, w.configure);
9
+ const O = t({ get() {
10
+ let e3 = x(z, D);
11
+ return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
12
+ }, set(e3) {
13
+ e3 && e3.length > 0 && (e3 = e3.join(",")), y(z, D, e3);
14
+ } }), A = w.configure.runtime ? w.configure.runtime : {}, M = A.style, P = A.class, E = A.headerStyle, F = A.titleExceedStyle, T = l(A.props ? A.props : {}), U = l(T.value.options ? T.value.options : []), W = b(w.pageContext, w.configure);
15
+ W.length > 0 && (U.value = W);
16
+ const q = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, B = q.optionValueSetType;
17
+ let G = [];
18
+ if (("dynamicData" == B || "dynamicData" == B || "service" == B) && q.autoSets) for (let e3 of q.autoSets) e3.source && G.push(e3);
19
+ w.configure && w.configure.props && w.configure.props.base && w.configure.props.base.optionProp && G.push({ source: "label", target: w.configure.props.base.optionProp }), T.value.changeMethod = function(e3) {
20
+ if (G.length > -1) {
21
+ let t2 = null;
22
+ U.value && null != e3 && null != e3 && (t2 = U.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(w.configure, w.pageContext, G, t2);
83
23
  }
84
- const formItemRef = ref(null);
85
- const componentRef = ref(null);
86
- const titleRef = ref(null);
87
- onMounted(() => {
88
- nextTick(() => {
89
- const value = dynamicModelMethod.value;
90
- handleAfterInitEvent(
91
- value,
92
- props.pageContext,
93
- props.configure,
94
- {
95
- formItemRef: formItemRef.value,
96
- componentRef: componentRef.value,
97
- titleRef: titleRef.value,
98
- value,
99
- entity: props.pageContext.entity.data,
100
- pageData: props.pageContext.entity.page
101
- }
102
- );
103
- });
24
+ S(e3, w.pageContext, w.configure, "change");
25
+ };
26
+ const H = T.value.optionconfigInfo ? T.value.optionconfigInfo : {};
27
+ const J = T.value.monitorFields;
28
+ C(w.pageContext, J, function() {
29
+ _(w.pageContext, H, void 0).then((e3) => {
104
30
  });
105
- __expose({
106
- updateOptions
31
+ });
32
+ const K = l(null), L = l(null), N = l(null);
33
+ return o(() => {
34
+ n(() => {
35
+ const e3 = O.value;
36
+ j(e3, w.pageContext, w.configure, { formItemRef: K.value, componentRef: L.value, titleRef: N.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
107
37
  });
108
- return (_ctx, _cache) => {
109
- const _component_el_checkbox = resolveComponent("el-checkbox");
110
- const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
111
- const _component_el_form_item = resolveComponent("el-form-item");
112
- return openBlock(), createBlock(_component_el_form_item, {
113
- ref_key: "formItemRef",
114
- ref: formItemRef,
115
- class: normalizeClass(unref(runtimeClass)),
116
- "label-width": designProperty.value.labelWidth,
117
- style: normalizeStyle(unref(runtimeStyle))
118
- }, {
119
- label: withCtx(() => [
120
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
121
- key: 0,
122
- ref_key: "titleRef",
123
- ref: titleRef,
124
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
125
- }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
126
- ]),
127
- default: withCtx(() => [
128
- createVNode(_component_el_checkbox_group, {
129
- ref_key: "componentRef",
130
- ref: componentRef,
131
- disabled: designProperty.value.state === "disabled",
132
- size: designProperty.value.size,
133
- onChange: designProperty.value.changeMethod,
134
- modelValue: dynamicModelMethod.value,
135
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
136
- }, {
137
- default: withCtx(() => [
138
- (openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
139
- return openBlock(), createBlock(_component_el_checkbox, {
140
- key: item.value,
141
- value: item.value,
142
- label: item.label,
143
- onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
144
- values: dynamicModelMethod.value
145
- })
146
- }, null, 8, ["value", "label", "onClick"]);
147
- }), 128))
148
- ]),
149
- _: 1
150
- }, 8, ["disabled", "size", "onChange", "modelValue"])
151
- ]),
152
- _: 1
153
- }, 8, ["class", "label-width", "style"]);
154
- };
155
- }
156
- });
38
+ }), V2({ updateOptions: function(e3) {
39
+ U.value = e3 || [];
40
+ } }), (e3, t2) => {
41
+ const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
42
+ return i(), u(n2, { ref_key: "formItemRef", ref: K, class: s(p(P)), "label-width": T.value.labelWidth, style: r(p(M)) }, { label: c(() => [T.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: N, style: r({ ...p(E), ...p(F) }) }, h(p(I)(T.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === T.value.state, size: T.value.size, onChange: T.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(i(true), g(v, null, d(U.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(S)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "label-width", "style"]);
43
+ };
44
+ } });
157
45
  export {
158
- _sfc_main as default
46
+ V as default
159
47
  };
@@ -1,102 +1,38 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, unref, isRef, createCommentVNode } from "vue";
2
- import { formatVariableValue, setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "title-suffix-element",
5
- props: {
6
- pageContext: {},
7
- property: {}
8
- },
9
- setup(__props) {
10
- const props = __props;
11
- const entity = props.pageContext.entity;
12
- let fields = [];
13
- if (!props.property.prefixPro || !props.property.prefixPro.startsWith("${")) {
14
- fields = [];
15
- } else {
16
- let propName = props.property.prefixPro;
17
- propName = propName.substring(2, propName.length - 1);
18
- fields = propName.split(".");
1
+ import { defineComponent as e, computed as l, resolveComponent as r, createElementBlock as t, openBlock as p, Fragment as o, createBlock as u, createCommentVNode as a, unref as i, isRef as n } from "vue";
2
+ import { formatVariableValue as s, setVariableValue as y, getVariableValue as f } from "../../../../utils/page-helper-util.js";
3
+ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property: {} }, setup(e2) {
4
+ const x2 = e2, c = x2.pageContext.entity;
5
+ let d = [];
6
+ if (x2.property.prefixPro && x2.property.prefixPro.startsWith("${")) {
7
+ let e3 = x2.property.prefixPro;
8
+ e3 = e3.substring(2, e3.length - 1), d = e3.split(".");
9
+ } else d = [];
10
+ if (d.length > 0 && x2.property.prefixDefault) {
11
+ const e3 = x2.property.prefixDefault;
12
+ let l2 = s(x2.pageContext, e3);
13
+ if (null != l2 && null != l2) {
14
+ "checkbox" === x2.property.prefixType && (l2 = (l2 + "").split(",")), y(c, d, l2);
19
15
  }
20
- if (fields.length > 0 && props.property.prefixDefault) {
21
- const prefixDefault = props.property.prefixDefault;
22
- let defaultValue = formatVariableValue(props.pageContext, prefixDefault);
23
- if (defaultValue != null && defaultValue != void 0) {
24
- let isMultiple = props.property.prefixType === "checkbox";
25
- if (isMultiple) {
26
- defaultValue = (defaultValue + "").split(",");
27
- }
28
- setVariableValue(entity, fields, defaultValue);
29
- }
30
- }
31
- const prefixType = props.property.prefixType;
32
- let prefixValue = props.property.prefixValue;
33
- prefixValue = prefixValue == void 0 || prefixValue == null ? "" : prefixValue;
34
- let dynamicModelMethod = null;
35
- if (fields.length > 0) {
36
- dynamicModelMethod = computed({
37
- get() {
38
- const value = getVariableValue(entity, fields);
39
- if (prefixType === "checkbox") {
40
- if (value === null || value === void 0) {
41
- return false;
42
- }
43
- if (Array.isArray(value)) {
44
- return value.includes(prefixValue);
45
- } else {
46
- return value === prefixValue;
47
- }
48
- } else {
49
- return value;
50
- }
51
- },
52
- set(value) {
53
- if (prefixType === "checkbox") {
54
- let newValues = getVariableValue(entity, fields);
55
- if (!newValues) {
56
- newValues = [];
57
- }
58
- if (!Array.isArray(newValues)) {
59
- newValues = [newValues];
60
- }
61
- const index = newValues.indexOf(prefixValue);
62
- if (value) {
63
- if (index == -1) {
64
- newValues.push(prefixValue);
65
- }
66
- } else {
67
- if (index > -1) {
68
- newValues.splice(index, 1);
69
- }
70
- }
71
- setVariableValue(entity, fields, newValues);
72
- } else {
73
- setVariableValue(entity, fields, value);
74
- }
75
- }
76
- });
77
- }
78
- return (_ctx, _cache) => {
79
- const _component_el_radio = resolveComponent("el-radio");
80
- const _component_el_checkbox = resolveComponent("el-checkbox");
81
- return openBlock(), createElementBlock(Fragment, null, [
82
- _ctx.property.prefixType === "radio" ? (openBlock(), createBlock(_component_el_radio, {
83
- key: 0,
84
- value: _ctx.property.prefixValue,
85
- label: _ctx.property.title,
86
- modelValue: unref(dynamicModelMethod),
87
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(dynamicModelMethod) ? dynamicModelMethod.value = $event : dynamicModelMethod = $event)
88
- }, null, 8, ["value", "label", "modelValue"])) : createCommentVNode("", true),
89
- _ctx.property.prefixType === "checkbox" ? (openBlock(), createBlock(_component_el_checkbox, {
90
- key: 1,
91
- label: _ctx.property.title,
92
- value: _ctx.property.prefixValue,
93
- modelValue: unref(dynamicModelMethod),
94
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(dynamicModelMethod) ? dynamicModelMethod.value = $event : dynamicModelMethod = $event)
95
- }, null, 8, ["label", "value", "modelValue"])) : createCommentVNode("", true)
96
- ], 64);
97
- };
98
16
  }
99
- });
17
+ const m = x2.property.prefixType;
18
+ let h = x2.property.prefixValue;
19
+ h = null == h || null == h ? "" : h;
20
+ let b = null;
21
+ return d.length > 0 && (b = l({ get() {
22
+ const e3 = f(c, d);
23
+ return "checkbox" === m ? null != e3 && (Array.isArray(e3) ? e3.includes(h) : e3 === h) : e3;
24
+ }, set(e3) {
25
+ if ("checkbox" === m) {
26
+ let l2 = f(c, d);
27
+ l2 || (l2 = []), Array.isArray(l2) || (l2 = [l2]);
28
+ const r2 = l2.indexOf(h);
29
+ e3 ? -1 == r2 && l2.push(h) : r2 > -1 && l2.splice(r2, 1), y(c, d, l2);
30
+ } else y(c, d, e3);
31
+ } })), (e3, l2) => {
32
+ const s2 = r("el-radio"), y2 = r("el-checkbox");
33
+ return p(), t(o, null, ["radio" === e3.property.prefixType ? (p(), u(s2, { key: 0, value: e3.property.prefixValue, label: e3.property.title, modelValue: i(b), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["value", "label", "modelValue"])) : a("", true), "checkbox" === e3.property.prefixType ? (p(), u(y2, { key: 1, label: e3.property.title, value: e3.property.prefixValue, modelValue: i(b), "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["label", "value", "modelValue"])) : a("", true)], 64);
34
+ };
35
+ } });
100
36
  export {
101
- _sfc_main as default
37
+ x as default
102
38
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./title-suffix-element.vue.js";
1
+ import e from "./title-suffix-element.vue.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./custom-runtime.vue2.js";
1
+ import t from "./custom-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ t as default
4
4
  };
@@ -1,204 +1,56 @@
1
- import { defineComponent, computed, ref, onMounted, nextTick, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, resolveDynamicComponent } from "vue";
2
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue, setVariableValue, formatVariableValue, getFormPropName, setVariableValueWithProp } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent, handleEvent } from "../../../../utils/events/event-util.js";
5
- import { updateFormItemEditState } from "../../../../utils/events/validator-util.js";
6
- import { getListCode } from "../../../../utils/common-util.js";
7
- import { getComponentRef } from "../../../../utils/global-refs.js";
8
- import { getAdditionalParamMap } from "../../../../utils/events/standard-event.js";
9
- import { $t } from "../../../../utils/i18n-util.js";
10
- import eventBus from "../../../../utils/eventBus.js";
11
- const _hoisted_1 = {
12
- key: 0,
13
- style: { "width": "100%", "height": "100%" }
14
- };
15
- const _hoisted_2 = {
16
- key: 1,
17
- style: { "width": "100%", "height": "100%" },
18
- class: "amb-widget-richtext-single"
19
- };
20
- const _sfc_main = /* @__PURE__ */ defineComponent({
21
- __name: "custom-runtime",
22
- props: {
23
- pageContext: {},
24
- configure: {}
25
- },
26
- setup(__props, { expose: __expose }) {
27
- const props = __props;
28
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
29
- const dynamicFields = getFormModelFields(props.pageContext, props.configure);
30
- const dynamicModelMethod = computed({
31
- get() {
32
- return getVariableValue(entity, dynamicFields);
33
- },
34
- set(value) {
35
- setVariableValue(entity, dynamicFields, value);
36
- }
37
- });
38
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
39
- const runtimeStyle = runtimeInfo.style;
40
- const runtimeClass = runtimeInfo.class;
41
- const headerStyle = runtimeInfo.headerStyle;
42
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
43
- const customParams = getCustomParams(runtimeInfo.customParams ? runtimeInfo.customParams : {});
44
- const additionalParamMap = getAdditionalParamMap(props.pageContext);
45
- const componentName = ref(
46
- props.configure.props && props.configure.props.base ? props.configure.props.base.name : null
47
- );
48
- console.log("自定义控件----componentName=", componentName, "designProperty=", designProperty);
49
- if (props.configure.props.verification.custom && props.configure.props.verification.custom.enabled) {
50
- if (!props.pageContext.customValidatorUuids) {
51
- props.pageContext.customValidatorUuids = [];
52
- }
53
- props.pageContext.customValidatorUuids.push(props.configure.uuid);
54
- }
55
- function getCustomParams(customParams2) {
56
- if (customParams2) {
57
- for (let key in customParams2) {
58
- customParams2.value[key] = formatVariableValue(props.pageContext, key);
59
- }
60
- }
61
- }
62
- function customControlSetValue(prop, value) {
63
- setVariableValueWithProp(entity, prop, value);
64
- }
65
- function setCustomvalidateRules(customRules) {
66
- updateFormItemEditState(props.pageContext, customRules);
67
- }
68
- function restoreGridEdit() {
69
- const tableUuids = props.pageContext.tableUuids;
70
- if (tableUuids) {
71
- tableUuids.forEach((tableUuid) => {
72
- const listCode = getListCode(
73
- props.pageContext.code,
74
- props.pageContext.version,
75
- props.configure.uuid
76
- );
77
- const gridRef = getComponentRef(props.pageContext, tableUuid);
78
- if (gridRef) {
79
- gridRef.restoreGridEdit(listCode);
80
- }
81
- });
82
- }
83
- }
84
- const pageCode = props.pageContext.code;
85
- const componentId = ref(
86
- dynamicFields && dynamicFields.length > 0 ? pageCode + "__" + dynamicFields.join("__") : null
87
- );
88
- const customRef = ref(null);
89
- const formItemRef = ref(null);
90
- const titleRef = ref(null);
91
- onMounted(() => {
92
- eventBus.$on(componentId.value + "-scanDone", (data) => {
93
- const value = data.result;
94
- setVariableValue(entity, dynamicFields, value);
95
- });
96
- eventBus.$on(componentId.value + "-pickFileDone", (data) => {
97
- console.log(
98
- "superPage4444---pickFileDone--componentId.value=",
99
- componentId.value,
100
- "data=",
101
- data
102
- );
103
- customRef.value.pickFileDone(data);
104
- });
105
- nextTick(() => {
106
- const value = dynamicModelMethod.value;
107
- handleAfterInitEvent(value, props.pageContext, props.configure, {
108
- formItemRef: formItemRef.value,
109
- componentRef: customRef.value,
110
- titleRef: titleRef.value,
111
- value,
112
- entity: props.pageContext.entity.data,
113
- pageData: props.pageContext.entity.page
114
- });
115
- });
116
- });
117
- function handleCustomEvent(eventType) {
118
- handleEvent(dynamicModelMethod.value, props.pageContext, props.configure, eventType);
119
- }
120
- onUnmounted(() => {
121
- eventBus.$off(componentId.value + "-scanDone");
122
- eventBus.$off(componentId.value + "-pickFileDone");
123
- });
124
- function getCustomRef() {
125
- return customRef.value;
126
- }
127
- __expose({
128
- getCustomRef
1
+ import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as g, normalizeClass as c, unref as m, withCtx as f, resolveDynamicComponent as d, toDisplayString as v } from "vue";
2
+ import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
+ import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
5
+ import { updateFormItemEditState as V } from "../../../../utils/events/validator-util.js";
6
+ import { getListCode as _ } from "../../../../utils/common-util.js";
7
+ import { getComponentRef as D } from "../../../../utils/global-refs.js";
8
+ import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
9
+ import { $t as w } from "../../../../utils/i18n-util.js";
10
+ import S from "../../../../utils/eventBus.js";
11
+ const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
12
+ const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, F = C(q.pageContext, q.configure), G = t({ get: () => y(z, F), set(e3) {
13
+ x(z, F, e3);
14
+ } }), H = q.configure.runtime ? q.configure.runtime : {}, I = H.style, P = H.class, B = H.headerStyle, W = o(H.props ? H.props : {}), A = function(e3) {
15
+ if (e3) for (let t2 in e3) e3.value[t2] = b(q.pageContext, t2);
16
+ }(H.customParams ? H.customParams : {}), J = E(q.pageContext), K = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
17
+ function L(e3, t2) {
18
+ j(z, e3, t2);
19
+ }
20
+ function M(e3) {
21
+ V(q.pageContext, e3);
22
+ }
23
+ function N() {
24
+ const e3 = q.pageContext.tableUuids;
25
+ e3 && e3.forEach((e4) => {
26
+ const t2 = _(q.pageContext.code, q.pageContext.version, q.configure.uuid), o2 = D(q.pageContext, e4);
27
+ o2 && o2.restoreGridEdit(t2);
129
28
  });
130
- return (_ctx, _cache) => {
131
- const _component_el_form_item = resolveComponent("el-form-item");
132
- return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
133
- key: 0,
134
- ref_key: "formItemRef",
135
- ref: formItemRef,
136
- required: designProperty.value.required,
137
- class: normalizeClass(unref(runtimeClass)),
138
- "label-width": designProperty.value.labelWidth,
139
- style: normalizeStyle(unref(runtimeStyle))
140
- }, {
141
- label: withCtx(() => [
142
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
143
- key: 0,
144
- ref_key: "titleRef",
145
- ref: titleRef,
146
- style: normalizeStyle({ ...unref(headerStyle) })
147
- }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
148
- ]),
149
- default: withCtx(() => [
150
- componentName.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
151
- (openBlock(), createBlock(resolveDynamicComponent(componentName.value), {
152
- ref_key: "customRef",
153
- ref: customRef,
154
- size: designProperty.value.size,
155
- entity: _ctx.pageContext.entity.data,
156
- pageData: _ctx.pageContext.entity.page,
157
- pageContext: _ctx.pageContext,
158
- configureObj: _ctx.configure,
159
- prop: unref(getFormPropName)(
160
- _ctx.configure.props && _ctx.configure.props.base ? _ctx.configure.props.base.prop : null
161
- ),
162
- "custom-params": unref(customParams),
163
- modelValue: dynamicModelMethod.value,
164
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
165
- disabled: designProperty.value.state === "disabled",
166
- "additional-param-map": unref(additionalParamMap),
167
- "component-id": componentId.value,
168
- onSetEntityValue: customControlSetValue,
169
- onSetCustomRules: setCustomvalidateRules,
170
- onRestoreGridEdit: restoreGridEdit,
171
- onHandleEvent: handleCustomEvent,
172
- onChange: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "change"))
173
- }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))
174
- ])) : createCommentVNode("", true)
175
- ]),
176
- _: 1
177
- }, 8, ["required", "class", "label-width", "style"])) : componentName.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
178
- (openBlock(), createBlock(resolveDynamicComponent(componentName.value), {
179
- ref_key: "customRef",
180
- ref: customRef,
181
- entity: _ctx.pageContext.entity.data,
182
- pageData: _ctx.pageContext.entity.page,
183
- pageContext: _ctx.pageContext,
184
- configureObj: _ctx.configure,
185
- prop: unref(getFormPropName)(_ctx.configure.props && _ctx.configure.props.base ? _ctx.configure.props.base.prop : null),
186
- "custom-params": unref(customParams),
187
- modelValue: dynamicModelMethod.value,
188
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dynamicModelMethod.value = $event),
189
- disabled: designProperty.value.state === "disabled",
190
- "additional-param-map": unref(additionalParamMap),
191
- "component-id": componentId.value,
192
- onSetEntityValue: customControlSetValue,
193
- onSetCustomRules: setCustomvalidateRules,
194
- onRestoreGridEdit: restoreGridEdit,
195
- onHandleEvent: handleCustomEvent,
196
- onChange: _cache[3] || (_cache[3] = ($event) => unref(handleEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "change"))
197
- }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))
198
- ])) : createCommentVNode("", true);
199
- };
200
29
  }
201
- });
30
+ q.configure.props.verification.custom && q.configure.props.verification.custom.enabled && (q.pageContext.customValidatorUuids || (q.pageContext.customValidatorUuids = []), q.pageContext.customValidatorUuids.push(q.configure.uuid));
31
+ const Q = q.pageContext.code, T = o(F && F.length > 0 ? Q + "__" + F.join("__") : null), X = o(null), Y = o(null), Z = o(null);
32
+ function ee(e3) {
33
+ k(G.value, q.pageContext, q.configure, e3);
34
+ }
35
+ return a(() => {
36
+ S.$on(T.value + "-scanDone", (e3) => {
37
+ const t2 = e3.result;
38
+ x(z, F, t2);
39
+ }), S.$on(T.value + "-pickFileDone", (e3) => {
40
+ X.value.pickFileDone(e3);
41
+ }), n(() => {
42
+ const e3 = G.value;
43
+ R(e3, q.pageContext, q.configure, { formItemRef: Y.value, componentRef: X.value, titleRef: Z.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
44
+ });
45
+ }), i(() => {
46
+ S.$off(T.value + "-scanDone"), S.$off(T.value + "-pickFileDone");
47
+ }), $2({ getCustomRef: function() {
48
+ return X.value;
49
+ } }), (e3, t2) => {
50
+ const o2 = u("el-form-item");
51
+ return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: W.value.required, class: c(m(P)), "label-width": W.value.labelWidth, style: g(m(I)) }, { label: f(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: Z, style: g({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: f(() => [K.value ? (p(), r("div", U, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(A), modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : K.value ? (p(), r("div", O, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(A), modelValue: G.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
52
+ };
53
+ } });
202
54
  export {
203
- _sfc_main as default
55
+ $ as default
204
56
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./datepicker-runtime.vue2.js";
1
+ import e from "./datepicker-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };