super-page-runtime 2.2.29-tmp1 → 2.2.29-tmp2

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 (165) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +7 -5
  2. package/dist/es/assets/chart-themes/theme1.js +6 -2
  3. package/dist/es/assets/chart-themes/theme2.js +6 -2
  4. package/dist/es/assets/chart-themes/theme3.js +6 -2
  5. package/dist/es/components/runtime/utils/api/api-util.js +7 -4
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +443 -135
  7. package/dist/es/components/runtime/utils/assemblys-config.js +369 -13
  8. package/dist/es/components/runtime/utils/barcode-util.js +33 -9
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +306 -122
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +68 -29
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +152 -69
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +124 -46
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +99 -38
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +522 -226
  15. package/dist/es/components/runtime/utils/common-util.js +156 -76
  16. package/dist/es/components/runtime/utils/eventBus.js +8 -3
  17. package/dist/es/components/runtime/utils/events/event-util.js +775 -362
  18. package/dist/es/components/runtime/utils/events/print-label.js +140 -73
  19. package/dist/es/components/runtime/utils/events/standard-event.js +2320 -820
  20. package/dist/es/components/runtime/utils/events/validator-util.js +560 -224
  21. package/dist/es/components/runtime/utils/form/date-shortcuts.js +88 -28
  22. package/dist/es/components/runtime/utils/form/scan-util.js +162 -62
  23. package/dist/es/components/runtime/utils/global-refs.js +84 -53
  24. package/dist/es/components/runtime/utils/i18n-util.js +20 -11
  25. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +7 -2
  26. package/dist/es/components/runtime/utils/page-helper-util.js +660 -280
  27. package/dist/es/components/runtime/utils/page-init-util.js +405 -144
  28. package/dist/es/components/runtime/utils/page-permission-util.js +531 -22
  29. package/dist/es/components/runtime/utils/page-store.js +68 -23
  30. package/dist/es/components/runtime/utils/store-util.js +13 -9
  31. package/dist/es/components/runtime/utils/store.js +2 -2
  32. package/dist/es/components/runtime/utils/table-utils.js +81 -40
  33. package/dist/es/components/runtime/utils/tree-utils.js +37 -17
  34. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +83 -21
  36. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +46 -14
  38. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +132 -36
  40. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +18 -4
  42. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +107 -17
  44. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +198 -54
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +42 -12
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +60 -11
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +203 -54
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +162 -46
  54. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +109 -33
  56. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +166 -44
  58. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +117 -33
  60. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +118 -33
  62. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +599 -253
  63. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +42 -4
  64. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +62 -8
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +160 -29
  68. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +62 -13
  70. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +594 -213
  73. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +139 -33
  74. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  75. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +125 -21
  76. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  77. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +102 -16
  78. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  80. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +81 -18
  81. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +82 -17
  83. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +86 -14
  85. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +79 -21
  87. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +61 -16
  89. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +37 -10
  91. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +127 -38
  93. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +76 -28
  95. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  96. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +178 -63
  97. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +810 -305
  98. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  99. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +635 -265
  100. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  101. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  102. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +115 -40
  103. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  104. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +215 -56
  105. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +21 -3
  106. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  107. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  108. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +154 -43
  109. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +98 -34
  110. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  111. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +200 -52
  113. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +239 -70
  115. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +109 -31
  117. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +59 -21
  119. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +188 -56
  121. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +103 -22
  123. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +246 -59
  125. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  126. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +174 -34
  127. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  128. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +107 -29
  129. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  130. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +50 -13
  131. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  132. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +194 -65
  133. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  134. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +249 -89
  135. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  136. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +263 -80
  137. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  138. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +57 -13
  139. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  140. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +155 -30
  141. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  142. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +129 -40
  143. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  144. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +107 -22
  145. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +188 -89
  146. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
  147. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +272 -133
  148. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  150. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +46 -18
  151. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  152. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +49 -21
  153. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  154. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +58 -20
  155. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  156. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +53 -16
  157. package/dist/es/components/runtime/views/home-chart.vue.js +160 -41
  158. package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
  159. package/dist/es/components/runtime/views/super-page-dialog.vue.js +139 -21
  160. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  161. package/dist/es/components/runtime/views/super-page.vue.js +756 -230
  162. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  163. package/dist/es/i18n/langs/cn.js +55 -2
  164. package/dist/es/i18n/langs/en.js +55 -2
  165. package/package.json +2 -2
@@ -1,48 +1,159 @@
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);
1
+ import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createVNode, createElementBlock, Fragment, renderList, createCommentVNode, toDisplayString } from "vue";
2
+ import { setVariableValue, getVariableValue, 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 : [];
23
83
  }
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) => {
30
- console.log("动态查询结果", e3);
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
+ });
31
104
  });
32
- });
33
- const K = l(null), L = l(null), N = l(null);
34
- return o(() => {
35
- n(() => {
36
- const e3 = O.value;
37
- 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 });
105
+ __expose({
106
+ updateOptions
38
107
  });
39
- }), V2({ updateOptions: function(e3) {
40
- U.value = e3 || [];
41
- } }), (e3, t2) => {
42
- const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
43
- 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"]);
44
- };
45
- } });
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
+ });
46
157
  export {
47
- V as default
158
+ _sfc_main as default
48
159
  };
@@ -1,38 +1,102 @@
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);
1
+ import { defineComponent, computed, resolveComponent, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, unref, isRef } 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(".");
15
19
  }
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
+ };
16
98
  }
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
- } });
99
+ });
36
100
  export {
37
- x as default
101
+ _sfc_main as default
38
102
  };
@@ -1,4 +1,4 @@
1
- import e from "./title-suffix-element.vue.js";
1
+ import _sfc_main from "./title-suffix-element.vue.js";
2
2
  export {
3
- e as default
3
+ _sfc_main as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import t from "./custom-runtime.vue2.js";
1
+ import _sfc_main from "./custom-runtime.vue2.js";
2
2
  export {
3
- t as default
3
+ _sfc_main as default
4
4
  };
@@ -1,56 +1,204 @@
1
- import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as l, createBlock as u, createElementBlock as r, createCommentVNode as p, openBlock as s, normalizeStyle as g, normalizeClass as c, unref as m, withCtx as d, resolveDynamicComponent as f, 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 k, handleEvent as R } from "../../../../utils/events/event-util.js";
5
- import { updateFormItemEditState as D } from "../../../../utils/events/validator-util.js";
6
- import { getListCode as V } from "../../../../utils/common-util.js";
7
- import { getComponentRef as _ } 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%" } }, F = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, O = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
12
- const P = e2, $ = P.pageContext.entity ? P.pageContext.entity : {}, q = C(P.pageContext, P.configure), z = t({ get: () => y($, q), set(e3) {
13
- x($, q, e3);
14
- } }), G = P.configure.runtime ? P.configure.runtime : {}, I = G.style, H = G.class, B = G.headerStyle, N = o(G.props ? G.props : {}), W = function(e3) {
15
- if (e3) for (let t2 in e3) e3.value[t2] = b(P.pageContext, t2);
16
- }(G.customParams ? G.customParams : {}), A = E(P.pageContext), J = o(P.configure.props && P.configure.props.base ? P.configure.props.base.name : null);
17
- function K(e3, t2) {
18
- j($, e3, t2);
19
- }
20
- function L(e3) {
21
- D(P.pageContext, e3);
22
- }
23
- function M() {
24
- const e3 = P.pageContext.tableUuids;
25
- e3 && e3.forEach((e4) => {
26
- const t2 = V(P.pageContext.code, P.pageContext.version, P.configure.uuid), o2 = _(P.pageContext, e4);
27
- o2 && o2.restoreGridEdit(t2);
1
+ import { defineComponent, computed, ref, onMounted, nextTick, onUnmounted, resolveComponent, createBlock, createElementBlock, createCommentVNode, openBlock, normalizeStyle, normalizeClass, unref, withCtx, resolveDynamicComponent, toDisplayString } from "vue";
2
+ import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
+ import { setVariableValue, getVariableValue, 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 bus 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
+ }
28
37
  });
29
- }
30
- console.log("自定义控件----componentName=", J, "designProperty=", N), P.configure.props.verification.custom && P.configure.props.verification.custom.enabled && (P.pageContext.customValidatorUuids || (P.pageContext.customValidatorUuids = []), P.pageContext.customValidatorUuids.push(P.configure.uuid));
31
- const Q = P.pageContext.code, T = o(q && q.length > 0 ? Q + "__" + q.join("__") : null), X = o(null), Y = o(null), Z = o(null);
32
- function ee(e3) {
33
- R(z.value, P.pageContext, P.configure, e3);
34
- }
35
- return a(() => {
36
- S.$on(T.value + "-scanDone", (e3) => {
37
- const t2 = e3.result;
38
- x($, q, t2);
39
- }), S.$on(T.value + "-pickFileDone", (e3) => {
40
- console.log("superPage4444---pickFileDone--componentId.value=", T.value, "data=", e3), X.value.pickFileDone(e3);
41
- }), n(() => {
42
- const e3 = z.value;
43
- k(e3, P.pageContext, P.configure, { formItemRef: Y.value, componentRef: X.value, titleRef: Z.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
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
+ bus.$on(componentId.value + "-scanDone", (data) => {
93
+ const value = data.result;
94
+ setVariableValue(entity, dynamicFields, value);
95
+ });
96
+ bus.$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
+ bus.$off(componentId.value + "-scanDone");
122
+ bus.$off(componentId.value + "-pickFileDone");
44
123
  });
45
- }), i(() => {
46
- S.$off(T.value + "-scanDone"), S.$off(T.value + "-pickFileDone");
47
- }), O2({ getCustomRef: function() {
48
- return X.value;
49
- } }), (e3, t2) => {
50
- const o2 = l("el-form-item");
51
- return N.value.tittleShow ? (s(), u(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: N.value.required, class: c(m(H)), "label-width": N.value.labelWidth, style: g(m(I)) }, { label: d(() => [N.value.tittleShow ? (s(), r("div", { key: 0, ref_key: "titleRef", ref: Z, style: g({ ...m(B) }) }, v(m(w)(N.value.title)), 5)) : p("", true)]), default: d(() => [J.value ? (s(), r("div", U, [(s(), u(f(J.value), { ref_key: "customRef", ref: X, size: N.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(W), modelValue: z.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => z.value = e4), disabled: "disabled" === N.value.state, "additional-param-map": m(A), "component-id": T.value, onSetEntityValue: K, onSetCustomRules: L, onRestoreGridEdit: M, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => m(R)(z.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : p("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : J.value ? (s(), r("div", F, [(s(), u(f(J.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(W), modelValue: z.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => z.value = e4), disabled: "disabled" === N.value.state, "additional-param-map": m(A), "component-id": T.value, onSetEntityValue: K, onSetCustomRules: L, onRestoreGridEdit: M, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => m(R)(z.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : p("", true);
52
- };
53
- } });
124
+ function getCustomRef() {
125
+ return customRef.value;
126
+ }
127
+ __expose({
128
+ getCustomRef
129
+ });
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
+ }
201
+ });
54
202
  export {
55
- O as default
203
+ _sfc_main as default
56
204
  };
@@ -1,4 +1,4 @@
1
- import e from "./datepicker-runtime.vue2.js";
1
+ import _sfc_main from "./datepicker-runtime.vue2.js";
2
2
  export {
3
- e as default
3
+ _sfc_main as default
4
4
  };