super-page-runtime 2.1.92 → 2.1.95

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 (159) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +6 -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 +137 -433
  7. package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
  8. package/dist/es/components/runtime/utils/barcode-util.js +10 -33
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -303
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
  15. package/dist/es/components/runtime/utils/common-util.js +82 -152
  16. package/dist/es/components/runtime/utils/eventBus.js +3 -9
  17. package/dist/es/components/runtime/utils/events/event-util.js +361 -727
  18. package/dist/es/components/runtime/utils/events/print-label.js +73 -140
  19. package/dist/es/components/runtime/utils/events/standard-event.js +835 -2283
  20. package/dist/es/components/runtime/utils/events/validator-util.js +236 -555
  21. package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
  22. package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
  23. package/dist/es/components/runtime/utils/global-refs.js +45 -69
  24. package/dist/es/components/runtime/utils/i18n-util.js +12 -20
  25. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  26. package/dist/es/components/runtime/utils/page-helper-util.js +295 -603
  27. package/dist/es/components/runtime/utils/page-init-util.js +134 -369
  28. package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
  29. package/dist/es/components/runtime/utils/page-store.js +8 -12
  30. package/dist/es/components/runtime/utils/store-util.js +9 -13
  31. package/dist/es/components/runtime/utils/store.js +2 -2
  32. package/dist/es/components/runtime/utils/table-utils.js +49 -84
  33. package/dist/es/components/runtime/utils/tree-utils.js +18 -36
  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 +19 -75
  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 +14 -46
  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 +37 -132
  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 +4 -18
  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 +17 -107
  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 +54 -198
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  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 +7 -60
  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 +48 -169
  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/gauge/gauge-runtime.vue.js +2 -2
  53. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
  54. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
  56. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
  58. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
  60. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +208 -439
  61. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
  62. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
  64. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +63 -226
  66. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
  68. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  70. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +168 -513
  71. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
  72. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  73. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +23 -125
  74. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  75. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
  76. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  77. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  78. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
  79. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  80. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
  81. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
  83. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
  85. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
  87. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
  89. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
  91. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
  93. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
  95. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +311 -800
  96. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  97. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +251 -592
  98. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  99. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  100. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +43 -115
  101. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  102. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -216
  103. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
  104. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  105. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  106. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +44 -154
  107. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -98
  108. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  110. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +54 -200
  111. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +69 -239
  113. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +28 -98
  115. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +22 -59
  117. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +52 -173
  119. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
  121. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -249
  123. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +34 -174
  125. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  126. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
  127. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  128. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
  129. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  130. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +66 -189
  131. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  132. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -243
  133. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  134. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +82 -261
  135. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  136. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  137. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  138. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  139. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  140. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +41 -129
  141. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  142. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  143. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -252
  144. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  145. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  146. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +19 -46
  147. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  148. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +22 -49
  149. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  150. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +21 -58
  151. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  152. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  153. package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -134
  154. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  155. package/dist/es/components/runtime/views/super-page.vue.js +232 -708
  156. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  157. package/dist/es/i18n/langs/cn.js +2 -55
  158. package/dist/es/i18n/langs/en.js +2 -55
  159. package/package.json +74 -73
@@ -1,253 +1,62 @@
1
- import { defineComponent, ref, computed, onMounted, nextTick, onUnmounted, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, createSlots } from "vue";
2
- import { SuperIcon } from "agilebuilder-ui";
3
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
- import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
5
- import { handleAfterInitEvent, handleFormEvent } 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 eventBus 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, openBlock as r, createBlock as c, normalizeClass as p, unref as s, normalizeStyle as v, withCtx as f, createElementBlock as y, Fragment as m, createTextVNode as g, toDisplayString as d, createCommentVNode as x, createVNode as C, createSlots 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 { getVariableValue as V, setVariableValue as h } from "../../../../utils/page-helper-util.js";
5
+ import { handleAfterInitEvent as b, handleFormEvent as w } from "../../../../utils/events/event-util.js";
6
+ import { formatScanRuleSets as _, analysisScanValue as j, setScanAnalysisValue as R } from "../../../../utils/form/scan-util.js";
7
+ import S from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as P } 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 D = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
12
+ var _a, _b, _c;
13
+ const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {};
14
+ let N = k(L.pageContext, L.configure);
15
+ const O = l(P()), $ = L.pageContext.code, A = l(N && N.length > 0 ? $ + "__" + N.join("__") : null), E = n({ get: () => V(B, N), set(e3) {
16
+ e3 = e3.trim(), h(B, N, e3);
17
+ } }), F = l(null), J = l(null), M = l(null);
18
+ o(() => {
19
+ q.$on(A.value + "-scanDone", (e3) => {
20
+ ne(e3.result);
21
+ }), u(() => {
22
+ const e3 = E.value;
23
+ b(e3, L.pageContext, L.configure, { formItemRef: F.value, componentRef: J.value, titleRef: M.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page });
35
24
  });
36
- const formItemRef = ref(null);
37
- const componentRef = ref(null);
38
- const titleRef = ref(null);
39
- onMounted(() => {
40
- eventBus.$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(
52
- value,
53
- props.pageContext,
54
- props.configure,
55
- {
56
- formItemRef: formItemRef.value,
57
- componentRef: componentRef.value,
58
- titleRef: titleRef.value,
59
- value,
60
- entity: props.pageContext.entity.data,
61
- pageData: props.pageContext.entity.page
62
- }
63
- );
64
- });
65
- });
66
- onUnmounted(() => {
67
- eventBus.$off(componentId.value + "-scanDone");
68
- });
69
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
70
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
71
- const scanEnable = ref(((_a = designProperty.value.scan) == null ? void 0 : _a.enable) ? true : false);
72
- let userAgent;
73
- const userAgentOrg = navigator.userAgent;
74
- if (userAgentOrg.indexOf(" uni-app ") > 0) {
75
- userAgent = "app";
76
- } else {
77
- userAgent = "browser";
78
- }
79
- const isApk = isMobile.value && userAgent && userAgent === "app" ? true : false;
80
- const isShowScanIcon = ref(
81
- isApk && scanEnable.value || isMobile.value && scanEnable.value && window.location.protocol === "https:" ? true : false
82
- );
83
- let scanRuleSets = {};
84
- if (((_b = designProperty.value.scan) == null ? void 0 : _b.enable) && ((_c = designProperty.value.scan.ruleList) == null ? void 0 : _c.length) > 0) {
85
- setScanRuleSets();
86
- watchScanValueChange();
87
- }
88
- const runtimeStyle = runtimeInfo.style;
89
- const runtimeClass = runtimeInfo.class;
90
- const headerStyle = runtimeInfo.headerStyle;
91
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
92
- function getValue() {
93
- return getVariableValue(entity, dynamicFields);
94
- }
95
- function setValue(value) {
96
- return setVariableValue(entity, dynamicFields, value);
97
- }
98
- function setScanRuleSets() {
99
- formatScanRuleSets(designProperty.value.scan.ruleList).then((res) => {
100
- scanRuleSets = res;
101
- });
102
- }
103
- function watchScanValueChange() {
104
- watch(
105
- () => dynamicModelMethod.value,
106
- (newValue) => {
107
- const valueSet = analysisScanValue(newValue, scanRuleSets);
108
- if (valueSet) {
109
- setScanAnalysisValue(props.pageContext, valueSet.scanSet, valueSet.params);
110
- }
111
- }
112
- );
113
- }
114
- const isShowBrowserScan = ref(false);
115
- function scanClick() {
116
- console.log("scanClick----userAgent=", userAgent);
117
- if (isApk) {
118
- const message = {
119
- type: "scan",
120
- componentId: componentId.value,
121
- systemCode: props.pageContext.systemCode
122
- };
123
- window.parent.postMessage(JSON.stringify(message), "*");
124
- } else {
125
- isShowBrowserScan.value = true;
126
- }
127
- }
128
- function closeBrowserScan(value) {
129
- isShowBrowserScan.value = false;
130
- setValue(value);
131
- }
132
- __expose({
133
- getValue,
134
- setValue
135
- });
136
- return (_ctx, _cache) => {
137
- const _component_el_input = resolveComponent("el-input");
138
- const _component_scan_code_input_browser = resolveComponent("scan-code-input-browser");
139
- const _component_el_form_item = resolveComponent("el-form-item");
140
- return openBlock(), createBlock(_component_el_form_item, {
141
- ref_key: "formItemRef",
142
- ref: formItemRef,
143
- required: designProperty.value.required ? true : false,
144
- class: normalizeClass(unref(runtimeClass)),
145
- "label-width": designProperty.value.labelWidth,
146
- style: normalizeStyle(unref(runtimeStyle))
147
- }, {
148
- label: withCtx(() => [
149
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
150
- key: 0,
151
- ref_key: "titleRef",
152
- ref: titleRef,
153
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
154
- }, [
155
- designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
156
- key: 0,
157
- pageContext: _ctx.pageContext,
158
- property: designProperty.value
159
- }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
160
- createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
161
- ], 64))
162
- ], 4)) : createCommentVNode("", true)
163
- ]),
164
- default: withCtx(() => [
165
- createVNode(_component_el_input, {
166
- ref_key: "componentRef",
167
- ref: componentRef,
168
- disabled: designProperty.value.state === "disabled",
169
- readonly: designProperty.value.state === "readonly",
170
- size: designProperty.value.size,
171
- clearable: designProperty.value.clearable,
172
- placeholder: designProperty.value.placeholder,
173
- maxlength: designProperty.value.maxLength,
174
- "show-word-limit": designProperty.value.showInputNum,
175
- modelValue: dynamicModelMethod.value,
176
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => dynamicModelMethod.value = $event),
177
- onInput: _cache[6] || (_cache[6] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
178
- onChange: _cache[7] || (_cache[7] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
179
- onBlur: _cache[8] || (_cache[8] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
180
- onFocus: _cache[9] || (_cache[9] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
181
- onClick: _cache[10] || (_cache[10] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
182
- }, createSlots({ _: 2 }, [
183
- designProperty.value.iconPosition != "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
184
- name: "prefix",
185
- fn: withCtx(() => [
186
- designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
187
- key: 0,
188
- iconType: designProperty.value.preIconType,
189
- iconValue: designProperty.value.preIconValue,
190
- onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
191
- }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
192
- createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
193
- ]),
194
- key: "0"
195
- } : void 0,
196
- designProperty.value.iconPosition == "outer" && (designProperty.value.preIconType && designProperty.value.preIconValue || designProperty.value.preText) ? {
197
- name: "prepend",
198
- fn: withCtx(() => [
199
- designProperty.value.preIconType && designProperty.value.preIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
200
- key: 0,
201
- iconType: designProperty.value.preIconType,
202
- iconValue: designProperty.value.preIconValue,
203
- onClick: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "prefixClick"))
204
- }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
205
- createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.preText)), 1)
206
- ]),
207
- key: "1"
208
- } : void 0,
209
- designProperty.value.iconPosition != "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
210
- name: "suffix",
211
- fn: withCtx(() => [
212
- designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
213
- key: 0,
214
- iconType: designProperty.value.sufIconType,
215
- iconValue: designProperty.value.sufIconValue,
216
- onClick: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
217
- }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
218
- createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
219
- ]),
220
- key: "2"
221
- } : void 0,
222
- isShowScanIcon.value || designProperty.value.iconPosition == "outer" && (designProperty.value.sufIconType && designProperty.value.sufIconValue || designProperty.value.sufText) ? {
223
- name: "append",
224
- fn: withCtx(() => [
225
- isShowScanIcon.value ? (openBlock(), createBlock(unref(SuperIcon), {
226
- key: 0,
227
- iconValue: "fa-barcode",
228
- onClick: _cache[3] || (_cache[3] = ($event) => scanClick())
229
- })) : createCommentVNode("", true),
230
- designProperty.value.sufIconType && designProperty.value.sufIconValue ? (openBlock(), createBlock(unref(SuperIcon), {
231
- key: 1,
232
- iconType: designProperty.value.sufIconType,
233
- iconValue: designProperty.value.sufIconValue,
234
- onClick: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)(dynamicModelMethod.value, _ctx.pageContext, _ctx.configure, "suffixClick"))
235
- }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
236
- createTextVNode(" " + toDisplayString(unref($t)(designProperty.value.sufText)), 1)
237
- ]),
238
- key: "3"
239
- } : void 0
240
- ]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]),
241
- isShowBrowserScan.value ? (openBlock(), createBlock(_component_scan_code_input_browser, {
242
- key: 0,
243
- onClose: closeBrowserScan
244
- })) : createCommentVNode("", true)
245
- ]),
246
- _: 1
247
- }, 8, ["required", "class", "label-width", "style"]);
248
- };
25
+ }), t(() => {
26
+ q.$off(A.value + "-scanDone");
27
+ });
28
+ const U = L.configure.runtime ? L.configure.runtime : {}, W = l(U.props ? U.props : {}), G = l(!!((_a = W.value.scan) == null ? void 0 : _a.enable));
29
+ let H;
30
+ H = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
31
+ const K = !(!O.value || !H || "app" !== H), Q = l(!!(K && G.value || O.value && G.value && "https:" === window.location.protocol));
32
+ let X = {};
33
+ ((_b = W.value.scan) == null ? void 0 : _b.enable) && ((_c = W.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (_(W.value.scan.ruleList).then((e3) => {
34
+ X = e3;
35
+ }), a(() => E.value, (e3) => {
36
+ const l2 = j(e3, X);
37
+ l2 && R(L.pageContext, l2.scanSet, l2.params);
38
+ }));
39
+ const Y = U.style, Z = U.class, ee = U.headerStyle, le = U.titleExceedStyle;
40
+ function ne(e3) {
41
+ return h(B, N, e3);
42
+ }
43
+ const oe = l(false);
44
+ function ue(e3) {
45
+ oe.value = false, ne(e3);
249
46
  }
250
- });
47
+ return D2({ getValue: function() {
48
+ return V(B, N);
49
+ }, setValue: ne }), (e3, l2) => {
50
+ const n2 = i("el-input"), o2 = i("scan-code-input-browser"), u2 = i("el-form-item");
51
+ return r(), c(u2, { ref_key: "formItemRef", ref: F, required: !!W.value.required, class: p(s(Z)), "label-width": W.value.labelWidth, style: v(s(Y)) }, { label: f(() => [W.value.tittleShow ? (r(), y("div", { key: 0, ref_key: "titleRef", ref: M, style: v({ ...s(ee), ...s(le) }) }, [W.value.prefixType ? (r(), c(S, { key: 0, pageContext: e3.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (r(), y(m, { key: 1 }, [g(d(s(z)(W.value.title)), 1)], 64))], 4)) : x("", true)]), default: f(() => [C(n2, { ref_key: "componentRef", ref: J, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, size: W.value.size, clearable: W.value.clearable, placeholder: W.value.placeholder, maxlength: W.value.maxLength, "show-word-limit": W.value.showInputNum, modelValue: E.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => E.value = e4), onInput: l2[6] || (l2[6] = (l3) => s(w)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => s(w)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => s(w)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => s(w)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => s(w)(l3, e3.pageContext, e3.configure, "click")) }, I({ _: 2 }, ["outer" != W.value.iconPosition && (W.value.preIconType && W.value.preIconValue || W.value.preText) ? { name: "prefix", fn: f(() => [W.value.preIconType && W.value.preIconValue ? (r(), c(s(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => s(w)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : x("", true), g(" " + d(s(z)(W.value.preText)), 1)]), key: "0" } : void 0, "outer" == W.value.iconPosition && (W.value.preIconType && W.value.preIconValue || W.value.preText) ? { name: "prepend", fn: f(() => [W.value.preIconType && W.value.preIconValue ? (r(), c(s(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => s(w)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : x("", true), g(" " + d(s(z)(W.value.preText)), 1)]), key: "1" } : void 0, "outer" != W.value.iconPosition && (W.value.sufIconType && W.value.sufIconValue || W.value.sufText) ? { name: "suffix", fn: f(() => [W.value.sufIconType && W.value.sufIconValue ? (r(), c(s(T), { key: 0, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => s(w)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : x("", true), g(" " + d(s(z)(W.value.sufText)), 1)]), key: "2" } : void 0, Q.value || "outer" == W.value.iconPosition && (W.value.sufIconType && W.value.sufIconValue || W.value.sufText) ? { name: "append", fn: f(() => [Q.value ? (r(), c(s(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
52
+ if (K) {
53
+ const e5 = { type: "scan", componentId: A.value, systemCode: L.pageContext.systemCode };
54
+ window.parent.postMessage(JSON.stringify(e5), "*");
55
+ } else
56
+ oe.value = true;
57
+ }()) })) : x("", true), W.value.sufIconType && W.value.sufIconValue ? (r(), c(s(T), { key: 1, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => s(w)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : x("", true), g(" " + d(s(z)(W.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), oe.value ? (r(), c(o2, { key: 0, onClose: ue })) : x("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
58
+ };
59
+ } });
251
60
  export {
252
- _sfc_main as default
61
+ D as default
253
62
  };
@@ -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,37 @@
1
- import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, toDisplayString, createBlock, 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, openBlock as i, createElementBlock as o, normalizeClass as p, unref as s, normalizeStyle as r, createElementVNode as f, toDisplayString as c, createBlock 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)
13
+ if (A.value.hasOptions) {
14
+ let t2 = null;
15
+ B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
16
+ } else if ("custom" === G) {
17
+ const t2 = w(R.pageContext, A.value.formatFunc);
18
+ t2 && (e3 = t2.apply(t2, [{ pageContext: R.pageContext, configureObj: R.configure, value: e3 }]));
19
+ } else
20
+ 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 });
59
27
  });
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
- });
28
+ }), j2({ updateOptions: function(e3) {
29
+ B.value = e3 || [];
30
+ } }), (e3, t2) => {
31
+ const l2 = n("el-form-item");
32
+ return A.value.whetherTittle ? (i(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: p(s(z)), style: r(s(O)) }, [f("div", I, c(A.value.title), 1)], 6)) : A.value.tittleShow ? (i(), v(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: p(s(z)), "label-width": A.value.labelWidth, style: r(s(O)) }, { label: y(() => [A.value.tittleShow ? (i(), o("div", { key: 0, ref_key: "titleRef", ref: L, style: r({ ...s(D), ...s(W) }) }, c(s(_)(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) => s(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", b, [A.value.preIconValue || A.value.preText ? (i(), o("span", { key: 0, class: p({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: r(s(F)) }, [A.value.preIconType && A.value.preIconValue ? (i(), v(s(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + c(s(_)(A.value.preText)), 1)], 6)) : g("", true), x("  " + c(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (i(), o("span", { key: 0, class: p({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (i(), v(s(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), f("span", null, " " + c(s(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (i(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => s(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, c(A.value.prefixIcon) + " " + c(H.value), 9, V), A.value.suffixTxt ? (i(), o("span", { key: 0, class: p(s(E)), style: r(s(F)) }, c(A.value.suffixTxt), 7)) : g("", true)]));
33
+ };
34
+ } });
175
35
  export {
176
- _sfc_main as default
36
+ j as default
177
37
  };
@@ -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
  };