super-page-runtime 2.2.29-tmp2 → 2.2.32

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 (167) 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/utils/api/api-util.js +4 -7
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +135 -443
  7. package/dist/es/components/runtime/utils/assemblys-config.js +13 -369
  8. package/dist/es/components/runtime/utils/barcode-util.js +9 -33
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +224 -522
  15. package/dist/es/components/runtime/utils/common-util.js +76 -156
  16. package/dist/es/components/runtime/utils/eventBus.js +3 -8
  17. package/dist/es/components/runtime/utils/events/event-util.js +362 -775
  18. package/dist/es/components/runtime/utils/events/print-label.js +72 -140
  19. package/dist/es/components/runtime/utils/events/standard-event.js +808 -2320
  20. package/dist/es/components/runtime/utils/events/validator-util.js +224 -560
  21. package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
  22. package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
  23. package/dist/es/components/runtime/utils/global-refs.js +53 -84
  24. package/dist/es/components/runtime/utils/i18n-util.js +11 -20
  25. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +6 -0
  26. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  27. package/dist/es/components/runtime/utils/page-helper-util.js +280 -660
  28. package/dist/es/components/runtime/utils/page-init-util.js +141 -406
  29. package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
  30. package/dist/es/components/runtime/utils/page-store.js +23 -68
  31. package/dist/es/components/runtime/utils/store-util.js +9 -13
  32. package/dist/es/components/runtime/utils/store.js +2 -2
  33. package/dist/es/components/runtime/utils/table-utils.d.ts +4 -0
  34. package/dist/es/components/runtime/utils/table-utils.js +40 -81
  35. package/dist/es/components/runtime/utils/tree-utils.js +17 -37
  36. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +21 -83
  38. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
  40. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
  42. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
  44. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
  46. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -203
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  54. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
  55. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +46 -162
  56. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -109
  58. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -166
  60. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -117
  62. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -118
  64. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +246 -597
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
  68. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +29 -160
  70. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  73. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +212 -594
  75. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
  76. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  77. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +21 -125
  78. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
  80. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  81. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
  83. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
  85. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
  87. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
  89. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
  91. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
  93. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
  95. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  96. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
  97. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  98. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
  99. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +317 -810
  100. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  101. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +262 -635
  102. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  103. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  104. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +40 -115
  105. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  106. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
  107. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
  108. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  110. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +42 -154
  111. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
  112. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  113. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +52 -200
  115. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +68 -239
  117. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -109
  119. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -59
  121. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +56 -188
  123. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
  125. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  126. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -245
  127. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  128. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -174
  129. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  130. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
  131. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  132. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
  133. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  134. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +64 -194
  135. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  136. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +88 -249
  137. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  138. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +80 -263
  139. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  140. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  141. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  142. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  143. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  144. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
  145. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  146. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  147. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +89 -188
  148. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -272
  150. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  151. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  152. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
  153. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  154. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
  155. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  156. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
  157. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  158. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  159. package/dist/es/components/runtime/views/home-chart.vue.js +41 -160
  160. package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
  161. package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -139
  162. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  163. package/dist/es/components/runtime/views/super-page.vue.js +226 -754
  164. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  165. package/dist/es/i18n/langs/cn.js +2 -55
  166. package/dist/es/i18n/langs/en.js +2 -55
  167. package/package.json +2 -2
@@ -1,249 +1,61 @@
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
- }
1
+ import { defineComponent as e, ref as l, computed as n, onMounted as o, nextTick as u, onUnmounted as t, 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 y, createCommentVNode as m, createSlots as g, 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 q } from "agilebuilder-ui/src/utils/common-util";
9
+ import z from "../../../../utils/eventBus.js";
10
+ import { $t as D } 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 B = e2, N = B.pageContext.entity ? B.pageContext.entity : {};
14
+ let O = k(B.pageContext, B.configure);
15
+ const $ = l(q()), A = B.pageContext.code, E = l(O && O.length > 0 ? A + "__" + O.join("__") : null), F = n({ get: () => h(N, O), set(e3) {
16
+ e3 = e3.trim(), V(N, O, e3);
17
+ } }), J = l(null), M = l(null), U = l(null);
18
+ o(() => {
19
+ z.$on(E.value + "-scanDone", (e3) => {
20
+ oe(e3.result);
21
+ }), u(() => {
22
+ const e3 = F.value;
23
+ b(e3, B.pageContext, B.configure, { formItemRef: J.value, componentRef: M.value, titleRef: U.value, value: e3, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
35
24
  });
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
- };
25
+ }), t(() => {
26
+ z.$off(E.value + "-scanDone");
27
+ });
28
+ const W = B.configure.runtime ? B.configure.runtime : {}, G = l(W.props ? W.props : {}), H = l(!!((_a = G.value.scan) == null ? void 0 : _a.enable));
29
+ let K;
30
+ K = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
31
+ const Q = !(!$.value || !K || "app" !== K), X = l(!!(Q && H.value || $.value && H.value && "https:" === window.location.protocol));
32
+ let Y = {};
33
+ ((_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) => {
34
+ Y = e3;
35
+ }), a(() => F.value, (e3) => {
36
+ const l2 = R(e3, Y);
37
+ l2 && S(B.pageContext, l2.scanSet, l2.params);
38
+ }));
39
+ const Z = W.style, ee = W.class, le = W.headerStyle, ne = W.titleExceedStyle;
40
+ function oe(e3) {
41
+ return V(N, O, e3);
42
+ }
43
+ const ue = l(false);
44
+ function te(e3) {
45
+ ue.value = false, oe(e3);
245
46
  }
246
- });
47
+ return L2({ getValue: function() {
48
+ return h(N, O);
49
+ }, setValue: oe }), (e3, l2) => {
50
+ const n2 = i("el-input"), o2 = i("scan-code-input-browser"), u2 = i("el-form-item");
51
+ return c(), r(u2, { ref_key: "formItemRef", ref: J, required: !!G.value.required, class: s(v(ee)), "label-width": G.value.labelWidth, style: p(v(Z)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(le), ...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(D)(G.value.title)), 1)], 64))], 4)) : m("", true)]), default: f(() => [y(n2, { 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: F.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => F.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")) }, g({ _: 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(_)(F.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(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(_)(F.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(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(_)(F.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "2" } : void 0, X.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [X.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
52
+ if (Q) {
53
+ const e5 = { type: "scan", componentId: E.value, systemCode: B.pageContext.systemCode };
54
+ window.parent.postMessage(JSON.stringify(e5), "*");
55
+ } else ue.value = true;
56
+ }()) })) : m("", 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(_)(F.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(o2, { key: 0, onClose: te })) : m("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
57
+ };
58
+ } });
247
59
  export {
248
- _sfc_main as default
60
+ L as default
249
61
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./label-runtime.vue2.js";
1
+ import e from "./label-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,177 +1,35 @@
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;
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as i, createBlock as o, openBlock as p, normalizeStyle as s, normalizeClass as r, unref as f, createElementVNode as c, 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, S = R.pageContext.entity ? R.pageContext.entity : {};
9
+ let P = 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, H = l(() => {
11
+ let e3 = m(S, P);
12
+ if (G) if (A.value.hasOptions) {
13
+ let t2 = null;
14
+ B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
15
+ } else if ("custom" === G) {
16
+ const t2 = w(R.pageContext, A.value.formatFunc);
17
+ t2 && (e3 = t2.apply(t2, [{ pageContext: R.pageContext, configureObj: R.configure, value: e3 }]));
18
+ } else e3 = h(e3, G, A.value);
19
+ return e3 = null == e3 ? "" : e3, e3;
20
+ }), J = t(null), K = t(null), L = t(null);
21
+ return u(() => {
22
+ a(() => {
23
+ const e3 = H.value;
24
+ 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 });
59
25
  });
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
- });
26
+ }), j2({ updateOptions: function(e3) {
27
+ B.value = e3 || [];
28
+ } }), (e3, t2) => {
29
+ const l2 = n("el-form-item");
30
+ return A.value.whetherTittle ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: s(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (p(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: s(f(O)) }, { label: y(() => [A.value.tittleShow ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: s({ ...f(D), ...f(W) }) }, v(f(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [A.value.preIconValue || A.value.preText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: s(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (p(), o(f(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(f(_)(A.value.preText)), 1)], 6)) : g("", true), x("  " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (p(), i("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 ? (p(), o(f(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (p(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (p(), i("span", { key: 0, class: r(f(E)), style: s(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
31
+ };
32
+ } });
175
33
  export {
176
- _sfc_main as default
34
+ j as default
177
35
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./link-runtime.vue2.js";
1
+ import e from "./link-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };