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,247 +1,74 @@
1
- import { defineComponent, ref, onMounted, nextTick, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import { getDateShortCuts } from "../../../../utils/form/date-shortcuts.js";
4
- import { getValueFromVariable, setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
5
- import { handleAfterInitEvent, getCustomFunc, handleFormEvent } from "../../../../utils/events/event-util.js";
6
- import _sfc_main$1 from "../common/title-suffix-element.vue.js";
7
- import dayjs from "dayjs";
8
- import { $t } from "../../../../utils/i18n-util.js";
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "datepicker-runtime",
11
- props: {
12
- pageContext: {},
13
- configure: {}
14
- },
15
- setup(__props) {
16
- const props = __props;
17
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
18
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
19
- const runtimeStyle = runtimeInfo.style;
20
- const runtimeClass = runtimeInfo.class;
21
- const headerStyle = runtimeInfo.headerStyle;
22
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
23
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
24
- let dynamicFields = getFormModelFields(props.pageContext, props.configure);
25
- console.log("designProperty", designProperty);
26
- let dynamicFields2 = null;
27
- let isRange = false;
28
- if (designProperty.value.dateType && designProperty.value.dateType.includes("range")) {
29
- isRange = true;
30
- let propName = designProperty.value.prop2;
31
- if (!propName || !propName.startsWith("${")) {
32
- propName = "${page." + props.configure.uuid + "-2}";
33
- }
34
- propName = propName.substring(2, propName.length - 1);
35
- dynamicFields2 = propName.split(".");
36
- if (!entity.data || !entity.data.id && !entity.data.ID) {
37
- if (designProperty.value.defaultValue2) {
38
- const defaultValue2 = getValueFromVariable(entity, designProperty.value.defaultValue2);
39
- setVariableValue(entity, dynamicFields2, defaultValue2);
40
- }
41
- }
42
- }
43
- const formItemRef = ref(null);
44
- const componentRef = ref(null);
45
- const titleRef = ref(null);
46
- onMounted(() => {
47
- nextTick(() => {
48
- const value = dynamicModelMethod.value;
49
- handleAfterInitEvent(
50
- value,
51
- props.pageContext,
52
- props.configure,
53
- {
54
- formItemRef: formItemRef.value,
55
- componentRef: componentRef.value,
56
- titleRef: titleRef.value,
57
- value,
58
- entity: props.pageContext.entity.data,
59
- pageData: props.pageContext.entity.page
60
- }
61
- );
62
- });
63
- });
64
- function formatDate(value, formatStr) {
65
- if (!value) {
66
- return value;
67
- }
68
- if (formatStr) {
69
- try {
70
- const convertValue = dayjs(value);
71
- let value2 = null;
72
- if (formatStr === "x") {
73
- value2 = convertValue.toDate().getTime();
74
- } else {
75
- value2 = dayjs(value).format(formatStr);
76
- }
77
- return value2;
78
- } catch (e) {
79
- console.error("日期值格式化错误", e);
80
- console.error(`value: ${value} ,valueFormat: ${designProperty.value.valueFormat}`);
81
- return value;
82
- }
83
- }
84
- return value;
85
- }
86
- if (dynamicFields) {
87
- const hisValue = getVariableValue(entity, dynamicFields);
88
- const newValue = formatDate(hisValue, designProperty.value.valueFormat);
89
- if (hisValue !== newValue) {
90
- setVariableValue(entity, dynamicFields, newValue);
91
- }
1
+ import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as r, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
2
+ import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
3
+ import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
4
+ import { getValueFromVariable as C, setVariableValue as x, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
+ import { handleAfterInitEvent as k, getCustomFunc as F, handleFormEvent as T } from "../../../../utils/events/event-util.js";
6
+ import V from "../common/title-suffix-element.vue.js";
7
+ import j from "dayjs";
8
+ import { $t as R } from "../../../../utils/i18n-util.js";
9
+ const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
10
+ const _2 = e2, z = _2.pageContext.entity ? _2.pageContext.entity : {}, P = _2.configure.runtime ? _2.configure.runtime : {}, w = P.style, A = P.class, D = P.headerStyle, S = P.titleExceedStyle, q = a(P.props ? P.props : {});
11
+ let I = h(_2.pageContext, _2.configure), B = null, U = false;
12
+ if (q.value.dateType && q.value.dateType.includes("range")) {
13
+ U = true;
14
+ let e3 = q.value.prop2;
15
+ if (e3 && e3.startsWith("${") || (e3 = "${page." + _2.configure.uuid + "-2}"), e3 = e3.substring(2, e3.length - 1), B = e3.split("."), (!z.data || !z.data.id && !z.data.ID) && q.value.defaultValue2) {
16
+ const e4 = C(z, q.value.defaultValue2);
17
+ x(z, B, e4);
92
18
  }
93
- if (dynamicFields2) {
94
- const hisValue = getVariableValue(entity, dynamicFields2);
95
- const newValue = formatDate(hisValue, designProperty.value.valueFormat);
96
- if (hisValue !== newValue) {
97
- setVariableValue(entity, dynamicFields2, newValue);
98
- }
19
+ }
20
+ const W = a(null), $ = a(null), E = a(null);
21
+ function O(e3, a2) {
22
+ if (!e3) return e3;
23
+ if (a2) try {
24
+ const l2 = j(e3);
25
+ let t2 = null;
26
+ return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
27
+ } catch (a3) {
28
+ return e3;
99
29
  }
100
- const dynamicModelMethod = computed({
101
- get() {
102
- if (isRange) {
103
- const values = [];
104
- let value1 = getVariableValue(entity, dynamicFields);
105
- values.push(formatDate(value1, designProperty.value.valueFormat));
106
- let value2 = getVariableValue(entity, dynamicFields2);
107
- values.push(formatDate(value2, designProperty.value.valueFormat));
108
- return values;
109
- } else {
110
- let value1 = getVariableValue(entity, dynamicFields);
111
- return formatDate(value1, designProperty.value.valueFormat);
112
- }
113
- },
114
- set(value) {
115
- if (isRange) {
116
- if (Array.isArray(value)) {
117
- setVariableValue(entity, dynamicFields, value[0]);
118
- setVariableValue(entity, dynamicFields2, value[1]);
119
- } else if (value === null) {
120
- setVariableValue(entity, dynamicFields, null);
121
- setVariableValue(entity, dynamicFields2, null);
122
- }
123
- } else {
124
- setVariableValue(entity, dynamicFields, value);
125
- }
126
- }
30
+ return e3;
31
+ }
32
+ if (l(() => {
33
+ t(() => {
34
+ const e3 = G.value;
35
+ k(e3, _2.pageContext, _2.configure, { formItemRef: W.value, componentRef: $.value, titleRef: E.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
127
36
  });
128
- const shortcuts = ref(
129
- getDateShortCuts(
130
- designProperty.value.dateScopeDetails,
131
- designProperty.value.sourceType,
132
- designProperty.value.dateType
133
- )
134
- );
135
- if (designProperty.value.shortcutsFunc) {
136
- const func = getCustomFunc(props.pageContext, designProperty.value.shortcutsFunc);
137
- if (func) {
138
- let returns = func.apply(func, [
139
- {
140
- pageContext: props.pageContext,
141
- configureObj: props.configure
142
- }
143
- ]);
144
- if (returns) {
145
- if (!Array.isArray(returns)) {
146
- returns = [returns];
147
- }
148
- if (!shortcuts.value) {
149
- shortcuts.value = [];
150
- }
151
- for (let r of returns) {
152
- if (r.text && r.value) {
153
- shortcuts.value.push(r);
154
- }
155
- }
156
- }
37
+ }), I) {
38
+ const e3 = b(z, I), a2 = O(e3, q.value.valueFormat);
39
+ e3 !== a2 && x(z, I, a2);
40
+ }
41
+ if (B) {
42
+ const e3 = b(z, B), a2 = O(e3, q.value.valueFormat);
43
+ e3 !== a2 && x(z, B, a2);
44
+ }
45
+ const G = r({ get() {
46
+ if (U) {
47
+ const e3 = [];
48
+ let a2 = b(z, I);
49
+ e3.push(O(a2, q.value.valueFormat));
50
+ let l2 = b(z, B);
51
+ return e3.push(O(l2, q.value.valueFormat)), e3;
52
+ }
53
+ return O(b(z, I), q.value.valueFormat);
54
+ }, set(e3) {
55
+ U ? Array.isArray(e3) ? (x(z, I, e3[0]), x(z, B, e3[1])) : null === e3 && (x(z, I, null), x(z, B, null)) : x(z, I, e3);
56
+ } }), H = a(y(q.value.dateScopeDetails, q.value.sourceType, q.value.dateType));
57
+ if (q.value.shortcutsFunc) {
58
+ const e3 = F(_2.pageContext, q.value.shortcutsFunc);
59
+ if (e3) {
60
+ let a2 = e3.apply(e3, [{ pageContext: _2.pageContext, configureObj: _2.configure }]);
61
+ if (a2) {
62
+ Array.isArray(a2) || (a2 = [a2]), H.value || (H.value = []);
63
+ for (let e4 of a2) e4.text && e4.value && H.value.push(e4);
157
64
  }
158
65
  }
159
- return (_ctx, _cache) => {
160
- const _component_el_time_picker = resolveComponent("el-time-picker");
161
- const _component_el_date_picker = resolveComponent("el-date-picker");
162
- const _component_el_form_item = resolveComponent("el-form-item");
163
- return openBlock(), createBlock(_component_el_form_item, {
164
- ref_key: "formItemRef",
165
- ref: formItemRef,
166
- required: designProperty.value.required,
167
- class: normalizeClass(unref(runtimeClass)),
168
- "label-width": designProperty.value.labelWidth,
169
- style: normalizeStyle(unref(runtimeStyle))
170
- }, {
171
- label: withCtx(() => [
172
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
173
- key: 0,
174
- ref_key: "titleRef",
175
- ref: titleRef,
176
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
177
- }, [
178
- designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
179
- key: 0,
180
- pageContext: _ctx.pageContext,
181
- property: designProperty.value
182
- }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
183
- createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
184
- ], 64))
185
- ], 4)) : createCommentVNode("", true)
186
- ]),
187
- default: withCtx(() => [
188
- designProperty.value.dateType == "time" || designProperty.value.dateType == "timerange" ? (openBlock(), createBlock(_component_el_time_picker, {
189
- key: 0,
190
- ref_key: "componentRef",
191
- ref: componentRef,
192
- "is-range": designProperty.value.dateType == "timerange",
193
- style: { "width": "100%" },
194
- "range-separator": "-",
195
- clearable: designProperty.value.clearable,
196
- disabled: designProperty.value.state === "disabled",
197
- readonly: designProperty.value.state === "readonly",
198
- size: designProperty.value.size,
199
- placeholder: designProperty.value.placeholder,
200
- "start-placeholder": designProperty.value.placeholder,
201
- "end-placeholder": designProperty.value.endPlaceholder ? designProperty.value.endPlaceholder : designProperty.value.placeholder,
202
- format: designProperty.value.format,
203
- "value-format": designProperty.value.valueFormat,
204
- modelValue: dynamicModelMethod.value,
205
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
206
- shortcuts: shortcuts.value,
207
- type: designProperty.value.dateType,
208
- onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
209
- onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
210
- onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
211
- onVisibleChange: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "visible-change")),
212
- onPanelChange: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change")),
213
- onClear: _cache[6] || (_cache[6] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "clear"))
214
- }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (openBlock(), createBlock(_component_el_date_picker, {
215
- key: 1,
216
- ref_key: "componentRef",
217
- ref: componentRef,
218
- clearable: designProperty.value.clearable,
219
- style: { "width": "100%" },
220
- disabled: designProperty.value.state === "disabled",
221
- readonly: designProperty.value.state === "readonly",
222
- size: designProperty.value.size,
223
- placeholder: designProperty.value.placeholder,
224
- "start-placeholder": designProperty.value.placeholder,
225
- "end-placeholder": designProperty.value.endPlaceholder ? designProperty.value.endPlaceholder : designProperty.value.placeholder,
226
- format: designProperty.value.format,
227
- "value-format": designProperty.value.valueFormat,
228
- modelValue: dynamicModelMethod.value,
229
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => dynamicModelMethod.value = $event),
230
- shortcuts: shortcuts.value,
231
- type: designProperty.value.dateType,
232
- onChange: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
233
- onBlur: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
234
- onFocus: _cache[10] || (_cache[10] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
235
- onVisibleChange: _cache[11] || (_cache[11] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "visible-change")),
236
- onPanelChange: _cache[12] || (_cache[12] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change")),
237
- onClear: _cache[13] || (_cache[13] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "clear"))
238
- }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))
239
- ]),
240
- _: 1
241
- }, 8, ["required", "class", "label-width", "style"]);
242
- };
243
66
  }
244
- });
67
+ return (e3, a2) => {
68
+ const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
69
+ return n(), u(r2, { ref_key: "formItemRef", ref: W, required: q.value.required, class: p(s(A)), "label-width": q.value.labelWidth, style: i(s(w)) }, { label: c(() => [q.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: E, style: i({ ...s(D), ...s(S) }) }, [q.value.prefixType ? (n(), u(V, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(R)(q.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == q.value.dateType || "timerange" == q.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: $, "is-range": "timerange" == q.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: q.value.clearable, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => G.value = e4), shortcuts: H.value, type: q.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: $, clearable: q.value.clearable, style: { width: "100%" }, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => G.value = e4), shortcuts: H.value, type: q.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
70
+ };
71
+ } });
245
72
  export {
246
- _sfc_main as default
73
+ _ as default
247
74
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./depttree-runtime.vue2.js";
1
+ import e from "./depttree-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,108 +1,35 @@
1
- import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
2
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
4
- import _sfc_main$1 from "../common/title-suffix-element.vue.js";
5
- import { $t } from "../../../../utils/i18n-util.js";
6
- import "agilebuilder-ui/src/utils/request";
7
- import "dayjs";
8
- import "agilebuilder-ui/src/utils/calculator/calculator-util";
9
- import "../../../../utils/global-refs.js";
10
- import "agilebuilder-ui/src/utils/common-util";
11
- import "agilebuilder-ui/src/utils/util";
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- __name: "depttree-runtime",
14
- props: {
15
- pageContext: {},
16
- configure: {}
17
- },
18
- setup(__props) {
19
- const props = __props;
20
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
21
- if (!entity.data) {
22
- entity.data = {};
23
- }
24
- const dataModel = entity.data;
25
- let dynamicFields = getFormModelFields(props.pageContext, props.configure);
26
- const fieldName = dynamicFields.length > 0 ? dynamicFields[dynamicFields.length - 1] : props.configure.uuid;
27
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
28
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
29
- const runtimeStyle = runtimeInfo.style;
30
- const runtimeClass = runtimeInfo.class;
31
- const headerStyle = runtimeInfo.headerStyle;
32
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
33
- const formItemRef = ref(null);
34
- const componentRef = ref(null);
35
- const titleRef = ref(null);
36
- onMounted(() => {
37
- nextTick(() => {
38
- const value = dataModel ? dataModel[fieldName] : null;
39
- handleAfterInitEvent(value, props.pageContext, props.configure, {
40
- formItemRef: formItemRef.value,
41
- componentRef: componentRef.value,
42
- titleRef: titleRef.value,
43
- value,
44
- entity: props.pageContext.entity.data,
45
- pageData: props.pageContext.entity.page
46
- });
47
- });
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as a, computed as o, resolveComponent as i, createBlock as u, openBlock as n, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as f, createVNode as g, createElementBlock as m, createCommentVNode as d, Fragment as c, createTextVNode as v, toDisplayString as y } from "vue";
2
+ import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
+ import { handleAfterInitEvent as C, handleFormEvent as h } from "../../../../utils/events/event-util.js";
4
+ import b from "../common/title-suffix-element.vue.js";
5
+ import { $t as k } from "../../../../utils/i18n-util.js";
6
+ import { setVariableValue as S, getVariableValue as R } from "../../../../utils/page-helper-util.js";
7
+ const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
8
+ const _2 = e2, j = _2.pageContext.entity ? _2.pageContext.entity : {};
9
+ j.data || (j.data = {});
10
+ const T = j.data, w = j.page;
11
+ let z = x(_2.pageContext, _2.configure);
12
+ const q = z.length > 0 ? z[z.length - 1] : _2.configure.uuid, I = _2.configure.runtime ? _2.configure.runtime : {}, F = t(I.props ? I.props : {}), M = I.style, D = I.class, E = I.headerStyle, O = I.titleExceedStyle, V = t(null), W = t(null), A = t(null);
13
+ l(() => {
14
+ a(() => {
15
+ const e3 = T ? T[q] : null;
16
+ C(e3, _2.pageContext, _2.configure, { formItemRef: V.value, componentRef: W.value, titleRef: A.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
48
17
  });
49
- const autoSetFields = designProperty.value.autoSetFields ? designProperty.value.autoSetFields : [];
50
- function changeValue(model, value) {
51
- if (model === fieldName) {
52
- handleFormEvent(value, props.pageContext, props.configure, "change");
53
- }
54
- }
55
- function showTree() {
56
- handleFormEvent(null, props.pageContext, props.configure, "click");
57
- }
58
- return (_ctx, _cache) => {
59
- const _component_OrganizationInput = resolveComponent("OrganizationInput");
60
- const _component_el_form_item = resolveComponent("el-form-item");
61
- return openBlock(), createBlock(_component_el_form_item, {
62
- ref_key: "formItemRef",
63
- ref: formItemRef,
64
- required: designProperty.value.required,
65
- class: normalizeClass(unref(runtimeClass)),
66
- "label-width": designProperty.value.labelWidth,
67
- style: normalizeStyle(unref(runtimeStyle))
68
- }, {
69
- label: withCtx(() => [
70
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
71
- key: 0,
72
- ref_key: "titleRef",
73
- ref: titleRef,
74
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
75
- }, [
76
- designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
77
- key: 0,
78
- pageContext: _ctx.pageContext,
79
- property: designProperty.value
80
- }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
81
- createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
82
- ], 64))
83
- ], 4)) : createCommentVNode("", true)
84
- ]),
85
- default: withCtx(() => [
86
- createVNode(_component_OrganizationInput, {
87
- ref_key: "componentRef",
88
- ref: componentRef,
89
- disabled: designProperty.value.state == "disabled",
90
- multiple: designProperty.value.multiple,
91
- treeType: designProperty.value.treeType,
92
- value: unref(dataModel)[unref(fieldName)],
93
- models: unref(dataModel),
94
- fields: unref(autoSetFields),
95
- size: designProperty.value.size,
96
- separator: designProperty.value.separator,
97
- onSetValue: changeValue,
98
- onShowTree: showTree
99
- }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "fields", "size", "separator"])
100
- ]),
101
- _: 1
102
- }, 8, ["required", "class", "label-width", "style"]);
103
- };
18
+ });
19
+ const B = o({ get: () => R(j, z), set(e3) {
20
+ S(j, z, e3);
21
+ } }), G = F.value.autoSetFields ? F.value.autoSetFields : [];
22
+ function H(e3, t2) {
23
+ e3 === q && h(t2, _2.pageContext, _2.configure, "change");
104
24
  }
105
- });
25
+ function J() {
26
+ h(null, _2.pageContext, _2.configure, "click");
27
+ }
28
+ return (e3, t2) => {
29
+ const l2 = i("OrganizationInput"), a2 = i("el-form-item");
30
+ return n(), u(a2, { ref_key: "formItemRef", ref: V, required: F.value.required, class: p(s(D)), "label-width": F.value.labelWidth, style: r(s(M)) }, { label: f(() => [F.value.tittleShow ? (n(), m("div", { key: 0, ref_key: "titleRef", ref: A, style: r({ ...s(E), ...s(O) }) }, [F.value.prefixType ? (n(), u(b, { key: 0, pageContext: e3.pageContext, property: F.value }, null, 8, ["pageContext", "property"])) : (n(), m(c, { key: 1 }, [v(y(s(k)(F.value.title)), 1)], 64))], 4)) : d("", true)]), default: f(() => [g(l2, { ref_key: "componentRef", ref: W, disabled: "disabled" == F.value.state, multiple: F.value.multiple, treeType: F.value.treeType, value: B.value, models: s(T), pageModels: s(w), fields: s(G), size: F.value.size, separator: F.value.separator, onSetValue: H, onShowTree: J }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
31
+ };
32
+ } });
106
33
  export {
107
- _sfc_main as default
34
+ _ as default
108
35
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./divider-runtime.vue2.js";
1
+ import e from "./divider-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,62 +1,24 @@
1
- import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeStyle, toDisplayString } from "vue";
2
- import { formatVariableValue } from "../../../../utils/page-helper-util.js";
3
- import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "divider-runtime",
6
- props: {
7
- pageContext: {},
8
- configure: {}
9
- },
10
- setup(__props) {
11
- const props = __props;
12
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
13
- const headerStyle = runtimeInfo.headerStyle;
14
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
15
- let contentVariable = designProperty.value["value"];
16
- const dynamicValue = computed(() => {
17
- if (!contentVariable) {
18
- return "";
19
- }
20
- const resultValue = formatVariableValue(props.pageContext, contentVariable);
21
- return resultValue == void 0 || resultValue == null ? "" : resultValue;
1
+ import { defineComponent as e, ref as t, computed as n, onMounted as o, nextTick as r, resolveComponent as i, createBlock as u, openBlock as l, unref as a, withCtx as p, createElementVNode as s, normalizeStyle as c, toDisplayString as d } from "vue";
2
+ import { formatVariableValue as f } from "../../../../utils/page-helper-util.js";
3
+ import { handleAfterInitEvent as v, handleFormEvent as g } from "../../../../utils/events/event-util.js";
4
+ const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
5
+ const m2 = e2, y = m2.configure.runtime ? m2.configure.runtime : {}, x = y.headerStyle, C = t(y.props ? y.props : {});
6
+ let _ = C.value.value;
7
+ const b = n(() => {
8
+ if (!_) return "";
9
+ const e3 = f(m2.pageContext, _);
10
+ return null == e3 || null == e3 ? "" : e3;
11
+ }), k = t(null);
12
+ return o(() => {
13
+ r(() => {
14
+ const e3 = b.value;
15
+ v(e3, m2.pageContext, m2.configure, { componentRef: k.value, value: e3, entity: m2.pageContext.entity.data, pageData: m2.pageContext.entity.page });
22
16
  });
23
- const componentRef = ref(null);
24
- onMounted(() => {
25
- nextTick(() => {
26
- const content = dynamicValue.value;
27
- handleAfterInitEvent(
28
- content,
29
- props.pageContext,
30
- props.configure,
31
- {
32
- componentRef: componentRef.value,
33
- value: content,
34
- entity: props.pageContext.entity.data,
35
- pageData: props.pageContext.entity.page
36
- }
37
- );
38
- });
39
- });
40
- return (_ctx, _cache) => {
41
- const _component_el_divider = resolveComponent("el-divider");
42
- return openBlock(), createBlock(_component_el_divider, {
43
- ref_key: "componentRef",
44
- ref: componentRef,
45
- direction: designProperty.value.direction,
46
- "border-style": designProperty.value.borderType,
47
- "content-position": designProperty.value.titlePosition,
48
- onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
49
- }, {
50
- default: withCtx(() => [
51
- createElementVNode("div", {
52
- style: normalizeStyle(unref(headerStyle))
53
- }, toDisplayString(dynamicValue.value), 5)
54
- ]),
55
- _: 1
56
- }, 8, ["direction", "border-style", "content-position"]);
57
- };
58
- }
59
- });
17
+ }), (e3, t2) => {
18
+ const n2 = i("el-divider");
19
+ return l(), u(n2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: t2[0] || (t2[0] = (t3) => a(g)(t3, e3.pageContext, e3.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
20
+ };
21
+ } });
60
22
  export {
61
- _sfc_main as default
23
+ m as default
62
24
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./fileupload-runtime.vue2.js";
1
+ import e from "./fileupload-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };