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,177 +1,56 @@
1
- import { defineComponent, ref, onMounted, nextTick, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
2
- import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
3
- import { handleAfterInitEvent, fileUploadBeforeUpload } from "../../../../utils/events/event-util.js";
4
- import http from "agilebuilder-ui/src/utils/request";
5
- import { FsUploadNew } from "agilebuilder-ui";
6
- import eventBus from "../../../../utils/eventBus.js";
7
- import { $t } from "../../../../utils/i18n-util.js";
8
- const _sfc_main = /* @__PURE__ */ defineComponent({
9
- __name: "fileupload-runtime",
10
- props: {
11
- pageContext: {},
12
- configure: {}
13
- },
14
- setup(__props) {
15
- const props = __props;
16
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
17
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
18
- const runtimeStyle = runtimeInfo.style;
19
- const runtimeClass = runtimeInfo.class;
20
- const headerStyle = runtimeInfo.headerStyle;
21
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
22
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
23
- const propsBase = props.configure.props.base ? props.configure.props.base : {};
24
- const pathFields = getFieldsByVariable(propsBase.prop);
25
- const nameFields = getFieldsByVariable(propsBase.propName);
26
- const pageCode = props.pageContext.code;
27
- const componentId = ref(pathFields ? pageCode + "__" + pathFields.join("__") : null);
28
- const initPaths = getVariableValue(entity, pathFields);
29
- const fileUploadRef = ref(null);
30
- const fileList = ref([]);
31
- const fileInfo = ref({});
32
- if (initPaths) {
33
- const uuids = initPaths.split(",");
34
- if (uuids.length > 0) {
35
- const backendUrl = props.pageContext.backendUrl;
36
- http.post(backendUrl + "/common/fs-upload/search-file-names", uuids).then((result) => {
37
- const names = [];
38
- for (let index = 0; index < uuids.length; index++) {
39
- const uuid = uuids[index];
40
- names.push(result[uuid]);
41
- fileList.value.push({ showName: result[uuid], serverPath: uuid });
42
- }
43
- if (designProperty.value.displayType === "input") {
44
- fileInfo.value.showName = names.join(",");
45
- fileInfo.value.serverPath = uuids.join(",");
46
- }
47
- });
48
- }
49
- }
50
- function getFieldsByVariable(variableName) {
51
- if (!variableName) {
52
- return [];
53
- }
54
- if (variableName.startsWith("${")) {
55
- variableName = variableName.substring(2, variableName.length - 1);
56
- }
57
- return variableName.split(".");
58
- }
59
- function beforeUpload(params) {
60
- return fileUploadBeforeUpload(params);
61
- }
62
- const onSuccess = (response, uploadFile, uploadFiles) => {
63
- updateValue();
64
- };
65
- const onRemove = (file) => {
66
- updateValue();
67
- };
68
- const updateValue = () => {
69
- const names = [];
70
- const uuids = [];
71
- for (let index = 0; index < fileList.value.length; index++) {
72
- names.push(fileList.value[index].showName);
73
- uuids.push(fileList.value[index].serverPath);
74
- }
75
- setVariableValue(props.pageContext.entity, pathFields, uuids.join(","));
76
- setVariableValue(props.pageContext.entity, nameFields, names.join(","));
77
- };
78
- const formItemRef = ref(null);
79
- const titleRef = ref(null);
80
- onMounted(() => {
81
- eventBus.$on(componentId.value + "-pickFileDone", (data) => {
82
- console.log("superPage4444---pickFileDone--componentId.value=", componentId.value, "data=", data);
83
- fileUploadRef.value.pickFileDone(data);
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as i, resolveComponent as a, openBlock as s, createBlock as n, normalizeClass as p, unref as u, normalizeStyle as r, withCtx as m, createElementBlock as f, toDisplayString as c, createCommentVNode as d, createVNode as v } from "vue";
2
+ import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
+ import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
4
+ import x from "agilebuilder-ui/src/utils/request";
5
+ import { FsUploadNew as b } from "agilebuilder-ui";
6
+ import k from "../../../../utils/eventBus.js";
7
+ import { $t as _ } from "../../../../utils/i18n-util.js";
8
+ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
+ const w2 = e2, P = w2.configure.runtime ? w2.configure.runtime : {}, j = t(P.props ? P.props : {}), R = P.style, T = P.class, z = P.headerStyle, I = P.titleExceedStyle, O = w2.pageContext.entity ? w2.pageContext.entity : {}, S = w2.configure.props.base ? w2.configure.props.base : {}, F = E(S.prop), N = E(S.propName), q = w2.pageContext.code, D = t(F ? q + "__" + F.join("__") : null), U = h(O, F), $ = t(null), W = t([]), B = t({});
10
+ if (U) {
11
+ const e3 = U.split(",");
12
+ if (e3.length > 0) {
13
+ const t2 = w2.pageContext.backendUrl;
14
+ x.post(t2 + "/common/fs-upload/search-file-names", e3).then((t3) => {
15
+ const l2 = [];
16
+ for (let o2 = 0; o2 < e3.length; o2++) {
17
+ const i2 = e3[o2];
18
+ l2.push(t3[i2]), W.value.push({ showName: t3[i2], serverPath: i2 });
19
+ }
20
+ "input" === j.value.displayType && (B.value.showName = l2.join(","), B.value.serverPath = e3.join(","));
84
21
  });
85
- nextTick(() => {
86
- const pathFieldsValue = getVariableValue(entity, pathFields);
87
- const nameFieldsValue = getVariableValue(entity, nameFields);
88
- const value = { showName: nameFieldsValue, serverPath: pathFieldsValue };
89
- handleAfterInitEvent(
90
- value,
91
- props.pageContext,
92
- props.configure,
93
- {
94
- formItemRef: formItemRef.value,
95
- componentRef: fileUploadRef.value,
96
- titleRef: titleRef.value,
97
- value,
98
- entity: props.pageContext.entity.data,
99
- pageData: props.pageContext.entity.page
100
- }
101
- );
102
- });
103
- });
104
- onUnmounted(() => {
105
- eventBus.$off(componentId.value + "-pickFileDone");
106
- });
107
- return (_ctx, _cache) => {
108
- const _component_el_form_item = resolveComponent("el-form-item");
109
- return designProperty.value.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
110
- key: 0,
111
- ref_key: "formItemRef",
112
- ref: formItemRef,
113
- required: designProperty.value.required,
114
- class: normalizeClass(unref(runtimeClass)),
115
- "label-width": designProperty.value.labelWidth,
116
- style: normalizeStyle(unref(runtimeStyle))
117
- }, {
118
- label: withCtx(() => [
119
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
120
- key: 0,
121
- ref_key: "titleRef",
122
- ref: titleRef,
123
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
124
- }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
125
- ]),
126
- default: withCtx(() => [
127
- createVNode(unref(FsUploadNew), {
128
- ref_key: "fileUploadRef",
129
- ref: fileUploadRef,
130
- style: { "width": "100%" },
131
- disabled: designProperty.value.state === "disabled",
132
- displayType: designProperty.value.displayType,
133
- accept: designProperty.value.accept,
134
- multiple: designProperty.value.multiple,
135
- placeholder: designProperty.value.placeholder,
136
- limit: designProperty.value.limit,
137
- "limit-file-size": designProperty.value.limitFileSize,
138
- openCameraOrChoosePhoto: designProperty.value.openCameraOrChoosePhoto,
139
- "file-info": fileInfo.value,
140
- "file-list": fileList.value,
141
- "system-code": _ctx.pageContext.systemCode,
142
- componentId: componentId.value,
143
- "on-success": onSuccess,
144
- "on-remove": onRemove,
145
- "before-upload": beforeUpload,
146
- pageContext: _ctx.pageContext
147
- }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])
148
- ]),
149
- _: 1
150
- }, 8, ["required", "class", "label-width", "style"])) : (openBlock(), createBlock(unref(FsUploadNew), {
151
- key: 1,
152
- ref_key: "fileUploadRef",
153
- ref: fileUploadRef,
154
- style: { "width": "100%" },
155
- disabled: designProperty.value.state === "disabled",
156
- displayType: designProperty.value.displayType,
157
- accept: designProperty.value.accept,
158
- multiple: designProperty.value.multiple,
159
- placeholder: designProperty.value.placeholder,
160
- limit: designProperty.value.limit,
161
- "limit-file-size": designProperty.value.limitFileSize,
162
- openCameraOrChoosePhoto: designProperty.value.openCameraOrChoosePhoto,
163
- "file-info": fileInfo.value,
164
- "file-list": fileList.value,
165
- "system-code": _ctx.pageContext.systemCode,
166
- componentId: componentId.value,
167
- "on-success": onSuccess,
168
- "on-remove": onRemove,
169
- "before-upload": beforeUpload,
170
- pageContext: _ctx.pageContext
171
- }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"]));
172
- };
22
+ }
23
+ }
24
+ function E(e3) {
25
+ return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
173
26
  }
174
- });
27
+ function A(e3) {
28
+ return C(e3);
29
+ }
30
+ const G = (e3, t2, l2) => {
31
+ J();
32
+ }, H = (e3) => {
33
+ J();
34
+ }, J = () => {
35
+ const e3 = [], t2 = [];
36
+ for (let l2 = 0; l2 < W.value.length; l2++)
37
+ e3.push(W.value[l2].showName), t2.push(W.value[l2].serverPath);
38
+ y(w2.pageContext.entity, F, t2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
39
+ }, K = t(null), L = t(null);
40
+ return l(() => {
41
+ k.$on(D.value + "-pickFileDone", (e3) => {
42
+ $.value.pickFileDone(e3);
43
+ }), o(() => {
44
+ const e3 = h(O, F), t2 = { showName: h(O, N), serverPath: e3 };
45
+ g(t2, w2.pageContext, w2.configure, { formItemRef: K.value, componentRef: $.value, titleRef: L.value, value: t2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
46
+ });
47
+ }), i(() => {
48
+ k.$off(D.value + "-pickFileDone");
49
+ }), (e3, t2) => {
50
+ const l2 = a("el-form-item");
51
+ return j.value.tittleShow ? (s(), n(l2, { key: 0, ref_key: "formItemRef", ref: K, required: j.value.required, class: p(u(T)), "label-width": j.value.labelWidth, style: r(u(R)) }, { label: m(() => [j.value.tittleShow ? (s(), f("div", { key: 0, ref_key: "titleRef", ref: L, style: r({ ...u(z), ...u(I) }) }, c(u(_)(j.value.title)), 5)) : d("", true)]), default: m(() => [v(u(b), { ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), n(u(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"]));
52
+ };
53
+ } });
175
54
  export {
176
- _sfc_main as default
55
+ w as default
177
56
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./input-number-runtime.vue2.js";
1
+ import e from "./input-number-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,106 +1,25 @@
1
- import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
2
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
5
- import _sfc_main$1 from "../common/title-suffix-element.vue.js";
6
- import { $t } from "../../../../utils/i18n-util.js";
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "input-number-runtime",
9
- props: {
10
- pageContext: {},
11
- configure: {}
12
- },
13
- setup(__props) {
14
- const props = __props;
15
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
16
- let dynamicFields = getFormModelFields(props.pageContext, props.configure);
17
- const dynamicModelMethod = computed({
18
- get() {
19
- return getVariableValue(entity, dynamicFields);
20
- },
21
- set(value) {
22
- setVariableValue(entity, dynamicFields, value);
23
- }
1
+ import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as a, resolveComponent as n, openBlock as u, createBlock as r, normalizeClass as i, unref as p, normalizeStyle as s, withCtx as m, createElementBlock as f, Fragment as c, createTextVNode as d, toDisplayString as g, createCommentVNode as v, createVNode as y } from "vue";
2
+ import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue as C, setVariableValue as h } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as b, handleFormEvent as k } from "../../../../utils/events/event-util.js";
5
+ import R from "../common/title-suffix-element.vue.js";
6
+ import { $t as _ } from "../../../../utils/i18n-util.js";
7
+ const j = e({ __name: "input-number-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
8
+ const j2 = e2, w = j2.pageContext.entity ? j2.pageContext.entity : {};
9
+ let q = x(j2.pageContext, j2.configure);
10
+ const z = t({ get: () => C(w, q), set(e3) {
11
+ h(w, q, e3);
12
+ } }), S = j2.configure.runtime ? j2.configure.runtime : {}, V = S.style, B = S.class, I = S.headerStyle, D = S.titleExceedStyle, E = l(S.props ? S.props : {}), F = l(null), T = l(null), U = l(null);
13
+ return o(() => {
14
+ a(() => {
15
+ const e3 = z.value;
16
+ b(e3, j2.pageContext, j2.configure, { formItemRef: F.value, componentRef: T.value, titleRef: U.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
24
17
  });
25
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
26
- const runtimeStyle = runtimeInfo.style;
27
- const runtimeClass = runtimeInfo.class;
28
- const headerStyle = runtimeInfo.headerStyle;
29
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
30
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
31
- const formItemRef = ref(null);
32
- const componentRef = ref(null);
33
- const titleRef = ref(null);
34
- onMounted(() => {
35
- nextTick(() => {
36
- const value = dynamicModelMethod.value;
37
- handleAfterInitEvent(
38
- value,
39
- props.pageContext,
40
- props.configure,
41
- {
42
- formItemRef: formItemRef.value,
43
- componentRef: componentRef.value,
44
- titleRef: titleRef.value,
45
- value,
46
- entity: props.pageContext.entity.data,
47
- pageData: props.pageContext.entity.page
48
- }
49
- );
50
- });
51
- });
52
- return (_ctx, _cache) => {
53
- const _component_el_input_number = resolveComponent("el-input-number");
54
- const _component_el_form_item = resolveComponent("el-form-item");
55
- return openBlock(), createBlock(_component_el_form_item, {
56
- ref_key: "formItemRef",
57
- ref: formItemRef,
58
- required: designProperty.value.required,
59
- class: normalizeClass(unref(runtimeClass)),
60
- "label-width": designProperty.value.labelWidth,
61
- style: normalizeStyle(unref(runtimeStyle))
62
- }, {
63
- label: withCtx(() => [
64
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
65
- key: 0,
66
- ref_key: "titleRef",
67
- ref: titleRef,
68
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
69
- }, [
70
- designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
71
- key: 0,
72
- pageContext: _ctx.pageContext,
73
- property: designProperty.value
74
- }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
75
- createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
76
- ], 64))
77
- ], 4)) : createCommentVNode("", true)
78
- ]),
79
- default: withCtx(() => [
80
- createVNode(_component_el_input_number, {
81
- ref_key: "componentRef",
82
- ref: componentRef,
83
- disabled: designProperty.value.state === "disabled",
84
- readonly: designProperty.value.state === "readonly",
85
- controls: designProperty.value.showButton,
86
- size: designProperty.value.size,
87
- placeholder: designProperty.value.placeholder,
88
- modelValue: dynamicModelMethod.value,
89
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
90
- precision: designProperty.value.precision,
91
- step: designProperty.value.step,
92
- min: designProperty.value.min,
93
- max: designProperty.value.max,
94
- onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
95
- onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
96
- onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus"))
97
- }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])
98
- ]),
99
- _: 1
100
- }, 8, ["required", "class", "label-width", "style"]);
101
- };
102
- }
103
- });
18
+ }), (e3, t2) => {
19
+ const l2 = n("el-input-number"), o2 = n("el-form-item");
20
+ return u(), r(o2, { ref_key: "formItemRef", ref: F, required: E.value.required, class: i(p(B)), "label-width": E.value.labelWidth, style: s(p(V)) }, { label: m(() => [E.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: U, style: s({ ...p(I), ...p(D) }) }, [E.value.prefixType ? (u(), r(R, { key: 0, pageContext: e3.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (u(), f(c, { key: 1 }, [d(g(p(_)(E.value.title)), 1)], 64))], 4)) : v("", true)]), default: m(() => [y(l2, { ref_key: "componentRef", ref: T, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, controls: E.value.showButton, size: E.value.size, placeholder: E.value.placeholder, modelValue: z.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => z.value = e4), precision: E.value.precision, step: E.value.step, min: E.value.min, max: E.value.max, onChange: t2[1] || (t2[1] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
21
+ };
22
+ } });
104
23
  export {
105
- _sfc_main as default
24
+ j as default
106
25
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./inputtext-runtime.vue2.js";
1
+ import t from "./inputtext-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ t as default
4
4
  };