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,62 +1,249 @@
1
- import { defineComponent as e, ref as l, computed as o, onMounted as n, nextTick as t, onUnmounted as u, watch as a, resolveComponent as i, createBlock as r, openBlock as c, normalizeStyle as p, normalizeClass as s, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
- import { SuperIcon as T } from "agilebuilder-ui";
3
- import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
- import { setVariableValue as V, getVariableValue as h } from "../../../../utils/page-helper-util.js";
5
- import { handleAfterInitEvent as b, handleFormEvent as w, doSuffixOrPrefixClickEvent as _ } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as j, analysisScanValue as R, setScanAnalysisValue as S } from "../../../../utils/form/scan-util.js";
7
- import P from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
9
- import q from "../../../../utils/eventBus.js";
10
- import { $t as z } from "../../../../utils/i18n-util.js";
11
- const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: L2 }) {
12
- var _a, _b, _c;
13
- const N = e2, O = N.pageContext.entity ? N.pageContext.entity : {};
14
- let A = k(N.pageContext, N.configure);
15
- const B = l(D()), J = N.pageContext.code, $ = l(A && A.length > 0 ? J + "__" + A.join("__") : null), E = o({ get: () => h(O, A), set(e3) {
16
- e3 = e3.trim(), V(O, A, e3);
17
- } }), F = l(null), M = l(null), U = l(null);
18
- n(() => {
19
- q.$on($.value + "-scanDone", (e3) => {
20
- console.log("superPage4444---scanDone--componentId.value=", $.value, "data=", JSON.stringify(e3)), te(e3.result);
21
- }), t(() => {
22
- const e3 = E.value;
23
- b(e3, N.pageContext, N.configure, { formItemRef: F.value, componentRef: M.value, titleRef: U.value, value: e3, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
24
- }), console.log("input-text");
25
- }), u(() => {
26
- q.$off($.value + "-scanDone");
27
- });
28
- const W = N.configure.runtime ? N.configure.runtime : {}, G = l(W.props ? W.props : {}), H = l(!!((_a = G.value.scan) == null ? void 0 : _a.enable));
29
- let K;
30
- const Q = navigator.userAgent;
31
- K = Q.indexOf(" uni-app ") > 0 ? "app" : "browser";
32
- const X = !(!B.value || !K || "app" !== K), Y = l(!!(X && H.value || B.value && H.value && "https:" === window.location.protocol));
33
- let Z = {};
34
- ((_b = G.value.scan) == null ? void 0 : _b.enable) && ((_c = G.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (j(G.value.scan.ruleList).then((e3) => {
35
- Z = e3;
36
- }), a(() => E.value, (e3) => {
37
- const l2 = R(e3, Z);
38
- l2 && S(N.pageContext, l2.scanSet, l2.params);
39
- }));
40
- const ee = W.style, le = W.class, oe = W.headerStyle, ne = W.titleExceedStyle;
41
- function te(e3) {
42
- return V(O, A, e3);
1
+ import { defineComponent, ref, computed, onMounted, nextTick, onUnmounted, watch, resolveComponent, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createVNode, createCommentVNode, createSlots, createTextVNode, toDisplayString, createElementBlock, Fragment } from "vue";
2
+ import { SuperIcon } from "agilebuilder-ui";
3
+ import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
+ import { setVariableValue, getVariableValue } from "../../../../utils/page-helper-util.js";
5
+ import { handleAfterInitEvent, handleFormEvent, doSuffixOrPrefixClickEvent } from "../../../../utils/events/event-util.js";
6
+ import { formatScanRuleSets, analysisScanValue, setScanAnalysisValue } from "../../../../utils/form/scan-util.js";
7
+ import _sfc_main$1 from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser } from "agilebuilder-ui/src/utils/common-util";
9
+ import bus from "../../../../utils/eventBus.js";
10
+ import { $t } from "../../../../utils/i18n-util.js";
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "inputtext-runtime",
13
+ props: {
14
+ pageContext: {},
15
+ configure: {}
16
+ },
17
+ setup(__props, { expose: __expose }) {
18
+ var _a, _b, _c;
19
+ const props = __props;
20
+ const entity = props.pageContext.entity ? props.pageContext.entity : {};
21
+ let dynamicFields = getFormModelFields(props.pageContext, props.configure);
22
+ const isMobile = ref(isMobileBrowser());
23
+ const pageCode = props.pageContext.code;
24
+ const componentId = ref(
25
+ dynamicFields && dynamicFields.length > 0 ? pageCode + "__" + dynamicFields.join("__") : null
26
+ );
27
+ const dynamicModelMethod = computed({
28
+ get() {
29
+ return getVariableValue(entity, dynamicFields);
30
+ },
31
+ set(value) {
32
+ value = value.trim();
33
+ setVariableValue(entity, dynamicFields, value);
34
+ }
35
+ });
36
+ const formItemRef = ref(null);
37
+ const componentRef = ref(null);
38
+ const titleRef = ref(null);
39
+ onMounted(() => {
40
+ bus.$on(componentId.value + "-scanDone", (data) => {
41
+ console.log(
42
+ "superPage4444---scanDone--componentId.value=",
43
+ componentId.value,
44
+ "data=",
45
+ JSON.stringify(data)
46
+ );
47
+ setValue(data.result);
48
+ });
49
+ nextTick(() => {
50
+ const value = dynamicModelMethod.value;
51
+ handleAfterInitEvent(value, props.pageContext, props.configure, {
52
+ formItemRef: formItemRef.value,
53
+ componentRef: componentRef.value,
54
+ titleRef: titleRef.value,
55
+ value,
56
+ entity: props.pageContext.entity.data,
57
+ pageData: props.pageContext.entity.page
58
+ });
59
+ });
60
+ console.log("input-text");
61
+ });
62
+ onUnmounted(() => {
63
+ bus.$off(componentId.value + "-scanDone");
64
+ });
65
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
66
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
67
+ const scanEnable = ref(((_a = designProperty.value.scan) == null ? void 0 : _a.enable) ? true : false);
68
+ let userAgent;
69
+ const userAgentOrg = navigator.userAgent;
70
+ if (userAgentOrg.indexOf(" uni-app ") > 0) {
71
+ userAgent = "app";
72
+ } else {
73
+ userAgent = "browser";
74
+ }
75
+ const isApk = isMobile.value && userAgent && userAgent === "app" ? true : false;
76
+ const isShowScanIcon = ref(
77
+ isApk && scanEnable.value || isMobile.value && scanEnable.value && window.location.protocol === "https:" ? true : false
78
+ );
79
+ let scanRuleSets = {};
80
+ if (((_b = designProperty.value.scan) == null ? void 0 : _b.enable) && ((_c = designProperty.value.scan.ruleList) == null ? void 0 : _c.length) > 0) {
81
+ setScanRuleSets();
82
+ watchScanValueChange();
83
+ }
84
+ const runtimeStyle = runtimeInfo.style;
85
+ const runtimeClass = runtimeInfo.class;
86
+ const headerStyle = runtimeInfo.headerStyle;
87
+ const titleExceedStyle = runtimeInfo.titleExceedStyle;
88
+ function getValue() {
89
+ return getVariableValue(entity, dynamicFields);
90
+ }
91
+ function setValue(value) {
92
+ return setVariableValue(entity, dynamicFields, value);
93
+ }
94
+ function setScanRuleSets() {
95
+ formatScanRuleSets(designProperty.value.scan.ruleList).then((res) => {
96
+ scanRuleSets = res;
97
+ });
98
+ }
99
+ function watchScanValueChange() {
100
+ watch(
101
+ () => dynamicModelMethod.value,
102
+ (newValue) => {
103
+ const valueSet = analysisScanValue(newValue, scanRuleSets);
104
+ if (valueSet) {
105
+ setScanAnalysisValue(props.pageContext, valueSet.scanSet, valueSet.params);
106
+ }
107
+ }
108
+ );
109
+ }
110
+ const isShowBrowserScan = ref(false);
111
+ function scanClick() {
112
+ console.log("scanClick----userAgent=", userAgent);
113
+ if (isApk) {
114
+ const message = {
115
+ type: "scan",
116
+ componentId: componentId.value,
117
+ systemCode: props.pageContext.systemCode
118
+ };
119
+ window.parent.postMessage(JSON.stringify(message), "*");
120
+ } else {
121
+ isShowBrowserScan.value = true;
122
+ }
123
+ }
124
+ function closeBrowserScan(value) {
125
+ isShowBrowserScan.value = false;
126
+ setValue(value);
127
+ }
128
+ __expose({
129
+ getValue,
130
+ setValue
131
+ });
132
+ return (_ctx, _cache) => {
133
+ const _component_el_input = resolveComponent("el-input");
134
+ const _component_scan_code_input_browser = resolveComponent("scan-code-input-browser");
135
+ const _component_el_form_item = resolveComponent("el-form-item");
136
+ return openBlock(), createBlock(_component_el_form_item, {
137
+ ref_key: "formItemRef",
138
+ ref: formItemRef,
139
+ required: designProperty.value.required ? true : false,
140
+ class: normalizeClass(unref(runtimeClass)),
141
+ "label-width": designProperty.value.labelWidth,
142
+ style: normalizeStyle(unref(runtimeStyle))
143
+ }, {
144
+ label: withCtx(() => [
145
+ designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
146
+ key: 0,
147
+ ref_key: "titleRef",
148
+ ref: titleRef,
149
+ style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
150
+ }, [
151
+ designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
152
+ key: 0,
153
+ pageContext: _ctx.pageContext,
154
+ property: designProperty.value
155
+ }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
156
+ createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
157
+ ], 64))
158
+ ], 4)) : createCommentVNode("", true)
159
+ ]),
160
+ default: withCtx(() => [
161
+ createVNode(_component_el_input, {
162
+ ref_key: "componentRef",
163
+ ref: componentRef,
164
+ disabled: designProperty.value.state === "disabled",
165
+ readonly: designProperty.value.state === "readonly",
166
+ size: designProperty.value.size,
167
+ clearable: designProperty.value.clearable,
168
+ placeholder: designProperty.value.placeholder,
169
+ maxlength: designProperty.value.maxLength,
170
+ "show-word-limit": designProperty.value.showInputNum,
171
+ modelValue: dynamicModelMethod.value,
172
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => dynamicModelMethod.value = $event),
173
+ onInput: _cache[6] || (_cache[6] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
174
+ onChange: _cache[7] || (_cache[7] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
175
+ onBlur: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
176
+ onFocus: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
177
+ onClick: _cache[10] || (_cache[10] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
178
+ }, createSlots({ _: 2 }, [
179
+ designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
180
+ name: "prefix",
181
+ fn: withCtx(() => [
182
+ designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
183
+ key: 0,
184
+ iconType: designProperty.value.preIconType,
185
+ iconValue: designProperty.value.preIconValue,
186
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
187
+ }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
188
+ createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
189
+ ]),
190
+ key: "0"
191
+ } : void 0,
192
+ designProperty.value.iconPosition == "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
193
+ name: "prepend",
194
+ fn: withCtx(() => [
195
+ designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
196
+ key: 0,
197
+ iconType: designProperty.value.preIconType,
198
+ iconValue: designProperty.value.preIconValue,
199
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
200
+ }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
201
+ createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
202
+ ]),
203
+ key: "1"
204
+ } : void 0,
205
+ designProperty.value.iconPosition != "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
206
+ name: "suffix",
207
+ fn: withCtx(() => [
208
+ designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
209
+ key: 0,
210
+ iconType: designProperty.value.sufIconType,
211
+ iconValue: designProperty.value.sufIconValue,
212
+ onClick: _cache[2] || (_cache[2] = ($event) => unref(doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
213
+ }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
214
+ createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
215
+ ]),
216
+ key: "2"
217
+ } : void 0,
218
+ isShowScanIcon.value || designProperty.value.iconPosition == "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
219
+ name: "append",
220
+ fn: withCtx(() => [
221
+ isShowScanIcon.value ? (openBlock(), createBlock(unref(SuperIcon), {
222
+ key: 0,
223
+ iconValue: "fa-barcode",
224
+ onClick: _cache[3] || (_cache[3] = ($event) => scanClick())
225
+ })) : createCommentVNode("", true),
226
+ designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
227
+ key: 1,
228
+ iconType: designProperty.value.sufIconType,
229
+ iconValue: designProperty.value.sufIconValue,
230
+ onClick: _cache[4] || (_cache[4] = ($event) => unref(doSuffixOrPrefixClickEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
231
+ }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
232
+ createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
233
+ ]),
234
+ key: "3"
235
+ } : void 0
236
+ ]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]),
237
+ isShowBrowserScan.value ? (openBlock(), createBlock(_component_scan_code_input_browser, {
238
+ key: 0,
239
+ onClose: closeBrowserScan
240
+ })) : createCommentVNode("", true)
241
+ ]),
242
+ _: 1
243
+ }, 8, ["required", "class", "label-width", "style"]);
244
+ };
43
245
  }
44
- const ue = l(false);
45
- function ae(e3) {
46
- ue.value = false, te(e3);
47
- }
48
- return L2({ getValue: function() {
49
- return h(O, A);
50
- }, setValue: te }), (e3, l2) => {
51
- const o2 = i("el-input"), n2 = i("scan-code-input-browser"), t2 = i("el-form-item");
52
- return c(), r(t2, { ref_key: "formItemRef", ref: F, required: !!G.value.required, class: s(v(le)), "label-width": G.value.labelWidth, style: p(v(ee)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(oe), ...v(ne) }) }, [G.value.prefixType ? (c(), r(P, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(z)(G.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(o2, { ref_key: "componentRef", ref: M, disabled: "disabled" === G.value.state, readonly: "readonly" === G.value.state, size: G.value.size, clearable: G.value.clearable, placeholder: G.value.placeholder, maxlength: G.value.maxLength, "show-word-limit": G.value.showInputNum, modelValue: E.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => E.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "click")) }, m({ _: 2 }, ["outer" != G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prefix", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.preText)), 1)]), key: "0" } : void 0, "outer" == G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prepend", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.preText)), 1)]), key: "1" } : void 0, "outer" != G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "suffix", fn: f(() => [G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.sufText)), 1)]), key: "2" } : void 0, Y.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [Y.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
53
- if (console.log("scanClick----userAgent=", K), X) {
54
- const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
55
- window.parent.postMessage(JSON.stringify(e5), "*");
56
- } else ue.value = true;
57
- }()) })) : y("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(n2, { key: 0, onClose: ae })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
58
- };
59
- } });
246
+ });
60
247
  export {
61
- L as default
248
+ _sfc_main as default
62
249
  };
@@ -1,4 +1,4 @@
1
- import e from "./label-runtime.vue2.js";
1
+ import _sfc_main from "./label-runtime.vue2.js";
2
2
  export {
3
- e as default
3
+ _sfc_main as default
4
4
  };
@@ -1,37 +1,177 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as c, createElementVNode as f, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
2
- import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as m, formatValueByType as h } from "../../../../utils/page-helper-util.js";
4
- import { SuperIcon as k } from "agilebuilder-ui";
5
- import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
6
- import { $t as _ } from "../../../../utils/i18n-util.js";
7
- const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
8
- const R = e2, P = R.pageContext.entity ? R.pageContext.entity : {};
9
- let S = d(R.pageContext, R.configure);
10
- const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType;
11
- console.log("designProperty.value", A.value);
12
- const H = l(() => {
13
- let e3 = m(P, S);
14
- if (G) if (A.value.hasOptions) {
15
- let t2 = null;
16
- B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
17
- } else if ("custom" === G) {
18
- const t2 = w(R.pageContext, A.value.formatFunc);
19
- t2 && (e3 = t2.apply(t2, [{ pageContext: R.pageContext, configureObj: R.configure, value: e3 }]));
20
- } else e3 = h(e3, G, A.value);
21
- return e3 = null == e3 ? "" : e3, e3;
22
- }), J = t(null), K = t(null), L = t(null);
23
- return u(() => {
24
- a(() => {
25
- const e3 = H.value;
26
- T(e3, R.pageContext, R.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
1
+ import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, createElementBlock, createBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, toDisplayString, withCtx, createCommentVNode, createTextVNode } from "vue";
2
+ import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue, formatValueByType } from "../../../../utils/page-helper-util.js";
4
+ import { SuperIcon } from "agilebuilder-ui";
5
+ import { getCustomFunc, handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
6
+ import { $t } from "../../../../utils/i18n-util.js";
7
+ const _hoisted_1 = { style: { "width": "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } };
8
+ const _hoisted_2 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
9
+ const _hoisted_3 = ["title"];
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "label-runtime",
12
+ props: {
13
+ pageContext: {},
14
+ configure: {}
15
+ },
16
+ setup(__props, { expose: __expose }) {
17
+ const props = __props;
18
+ const entity = props.pageContext.entity ? props.pageContext.entity : {};
19
+ let dynamicFields = getFormModelFields(props.pageContext, props.configure);
20
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
21
+ const runtimeStyle = runtimeInfo.style;
22
+ const runtimeClass = runtimeInfo.class;
23
+ const headerStyle = runtimeInfo.headerStyle;
24
+ const appendClass = runtimeInfo.appendClass;
25
+ const appendStyle = runtimeInfo.appendStyle;
26
+ const titleExceedStyle = runtimeInfo.titleExceedStyle;
27
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
28
+ const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
29
+ const formatType = designProperty.value.formatType;
30
+ console.log("designProperty.value", designProperty.value);
31
+ const dynamicValue = computed(() => {
32
+ let resultValue = getVariableValue(entity, dynamicFields);
33
+ if (formatType) {
34
+ if (designProperty.value.hasOptions) {
35
+ let selItems = null;
36
+ if (listOptions.value) {
37
+ selItems = listOptions.value.filter((item) => item.value == resultValue);
38
+ }
39
+ if (selItems && selItems.length > 0) {
40
+ resultValue = selItems[0].label;
41
+ }
42
+ } else if ("custom" === formatType) {
43
+ const func = getCustomFunc(props.pageContext, designProperty.value.formatFunc);
44
+ if (func) {
45
+ resultValue = func.apply(func, [
46
+ {
47
+ pageContext: props.pageContext,
48
+ configureObj: props.configure,
49
+ value: resultValue
50
+ }
51
+ ]);
52
+ }
53
+ } else {
54
+ resultValue = formatValueByType(resultValue, formatType, designProperty.value);
55
+ }
56
+ }
57
+ resultValue = resultValue === void 0 || resultValue === null ? "" : resultValue;
58
+ return resultValue;
27
59
  });
28
- }), j2({ updateOptions: function(e3) {
29
- B.value = e3 || [];
30
- } }), (e3, t2) => {
31
- const l2 = n("el-form-item");
32
- return A.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(c(z)), style: p(c(O)) }, [f("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (s(), i(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(c(z)), "label-width": A.value.labelWidth, style: p(c(O)) }, { label: y(() => [A.value.tittleShow ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...c(D), ...c(W) }) }, v(c(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [f("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", b, [A.value.preIconValue || A.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: p(c(F)) }, [A.value.preIconType && A.value.preIconValue ? (s(), i(c(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(c(_)(A.value.preText)), 1)], 6)) : g("", true), x("  " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (s(), i(c(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), f("span", null, " " + v(c(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (s(), o("span", { key: 0, class: r(c(E)), style: p(c(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
33
- };
34
- } });
60
+ const formItemRef = ref(null);
61
+ const componentRef = ref(null);
62
+ const titleRef = ref(null);
63
+ onMounted(() => {
64
+ nextTick(() => {
65
+ const value = dynamicValue.value;
66
+ handleAfterInitEvent(
67
+ value,
68
+ props.pageContext,
69
+ props.configure,
70
+ {
71
+ formItemRef: formItemRef.value,
72
+ componentRef: componentRef.value,
73
+ titleRef: titleRef.value,
74
+ value,
75
+ entity: props.pageContext.entity.data,
76
+ pageData: props.pageContext.entity.page
77
+ }
78
+ );
79
+ });
80
+ });
81
+ function updateOptions(newOptions) {
82
+ listOptions.value = newOptions ? newOptions : [];
83
+ }
84
+ __expose({
85
+ updateOptions
86
+ });
87
+ return (_ctx, _cache) => {
88
+ const _component_el_form_item = resolveComponent("el-form-item");
89
+ return designProperty.value.whetherTittle ? (openBlock(), createElementBlock("div", {
90
+ key: 0,
91
+ ref_key: "titleRef",
92
+ ref: titleRef,
93
+ class: normalizeClass(unref(runtimeClass)),
94
+ style: normalizeStyle(unref(runtimeStyle))
95
+ }, [
96
+ createElementVNode("div", _hoisted_1, toDisplayString(designProperty.value.title), 1)
97
+ ], 6)) : designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
98
+ key: 1,
99
+ ref_key: "formItemRef",
100
+ ref: formItemRef,
101
+ required: designProperty.value.required ? true : false,
102
+ class: normalizeClass(unref(runtimeClass)),
103
+ "label-width": designProperty.value.labelWidth,
104
+ style: normalizeStyle(unref(runtimeStyle))
105
+ }, {
106
+ label: withCtx(() => [
107
+ designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
108
+ key: 0,
109
+ ref_key: "titleRef",
110
+ ref: titleRef,
111
+ style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
112
+ }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
113
+ ]),
114
+ default: withCtx(() => [
115
+ createElementVNode("div", {
116
+ style: { "display": "flex", "width": "100%", "justify-content": "space-between" },
117
+ ref_key: "componentRef",
118
+ ref: componentRef,
119
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
120
+ }, [
121
+ createElementVNode("span", _hoisted_2, [
122
+ designProperty.value.preIconValue || designProperty.value.preText ? (openBlock(), createElementBlock("span", {
123
+ key: 0,
124
+ class: normalizeClass({
125
+ "el-input__suffix": designProperty.value.iconPosition != "outer",
126
+ "el-input-group__append": designProperty.value.iconPosition == "outer"
127
+ }),
128
+ style: normalizeStyle(unref(appendStyle))
129
+ }, [
130
+ designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
131
+ key: 0,
132
+ iconType: designProperty.value.preIconType,
133
+ iconValue: designProperty.value.preIconValue
134
+ }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
135
+ createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
136
+ ], 6)) : createCommentVNode("", true),
137
+ createTextVNode("  " + toDisplayString(dynamicValue.value), 1)
138
+ ]),
139
+ designProperty.value.sufIconValue || designProperty.value.sufText ? (openBlock(), createElementBlock("span", {
140
+ key: 0,
141
+ class: normalizeClass({
142
+ "el-input__suffix": designProperty.value.iconPosition != "outer",
143
+ "el-input-group__append": designProperty.value.iconPosition == "outer"
144
+ })
145
+ }, [
146
+ designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
147
+ key: 0,
148
+ style: {},
149
+ iconType: designProperty.value.sufIconType,
150
+ iconValue: designProperty.value.sufIconValue
151
+ }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
152
+ createElementVNode("span", null, " " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
153
+ ], 2)) : createCommentVNode("", true)
154
+ ], 512)
155
+ ]),
156
+ _: 1
157
+ }, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createElementBlock("span", {
158
+ key: 2,
159
+ style: { "display": "flex", "justify-content": "space-between" },
160
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
161
+ }, [
162
+ createElementVNode("span", {
163
+ style: { "overflow": "hidden", "white-space": "nowrap" },
164
+ title: dynamicValue.value
165
+ }, toDisplayString(designProperty.value.prefixIcon) + " " + toDisplayString(dynamicValue.value), 9, _hoisted_3),
166
+ designProperty.value.suffixTxt ? (openBlock(), createElementBlock("span", {
167
+ key: 0,
168
+ class: normalizeClass(unref(appendClass)),
169
+ style: normalizeStyle(unref(appendStyle))
170
+ }, toDisplayString(designProperty.value.suffixTxt), 7)) : createCommentVNode("", true)
171
+ ]));
172
+ };
173
+ }
174
+ });
35
175
  export {
36
- j as default
176
+ _sfc_main as default
37
177
  };
@@ -1,4 +1,4 @@
1
- import e from "./link-runtime.vue2.js";
1
+ import _sfc_main from "./link-runtime.vue2.js";
2
2
  export {
3
- e as default
3
+ _sfc_main as default
4
4
  };