super-page-runtime 2.1.933 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +5 -7
  2. package/dist/es/assets/chart-themes/theme1.js +2 -6
  3. package/dist/es/assets/chart-themes/theme2.js +2 -6
  4. package/dist/es/assets/chart-themes/theme3.js +2 -6
  5. package/dist/es/components/runtime/index.d.ts +2 -1
  6. package/dist/es/components/runtime/utils/api/api-util.js +4 -7
  7. package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -435
  8. package/dist/es/components/runtime/utils/assemblys-config.js +11 -367
  9. package/dist/es/components/runtime/utils/barcode-util.js +9 -33
  10. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
  11. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
  12. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
  13. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
  14. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
  15. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  16. package/dist/es/components/runtime/utils/charts/chart-util.js +226 -485
  17. package/dist/es/components/runtime/utils/common-util.js +76 -153
  18. package/dist/es/components/runtime/utils/eventBus.js +3 -9
  19. package/dist/es/components/runtime/utils/events/event-util.js +343 -727
  20. package/dist/es/components/runtime/utils/events/print-label.js +72 -140
  21. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
  22. package/dist/es/components/runtime/utils/events/standard-event.js +810 -2299
  23. package/dist/es/components/runtime/utils/events/validator-util.js +222 -552
  24. package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
  25. package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
  26. package/dist/es/components/runtime/utils/global-refs.js +53 -84
  27. package/dist/es/components/runtime/utils/i18n-util.js +11 -20
  28. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  29. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  30. package/dist/es/components/runtime/utils/page-helper-util.js +278 -658
  31. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  32. package/dist/es/components/runtime/utils/page-init-util.js +132 -370
  33. package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
  34. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  35. package/dist/es/components/runtime/utils/page-store.js +8 -12
  36. package/dist/es/components/runtime/utils/store-util.js +9 -13
  37. package/dist/es/components/runtime/utils/store.js +2 -2
  38. package/dist/es/components/runtime/utils/table-utils.js +45 -84
  39. package/dist/es/components/runtime/utils/tree-utils.js +17 -37
  40. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
  42. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
  44. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
  46. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
  48. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
  50. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  51. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  54. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
  55. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  56. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -169
  57. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  59. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  60. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
  62. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
  64. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
  66. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
  68. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
  69. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +253 -449
  70. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
  71. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  72. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
  73. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +37 -231
  75. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  76. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
  77. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  78. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +197 -510
  80. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  81. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
  82. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  83. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  84. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +21 -125
  85. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  87. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
  88. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  89. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
  91. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
  93. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
  95. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  96. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
  97. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  98. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
  99. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  100. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
  101. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  102. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
  103. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  104. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
  105. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  106. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
  107. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +302 -803
  108. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +249 -594
  110. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  111. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +40 -115
  113. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
  115. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  116. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
  117. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  119. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +42 -154
  120. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
  121. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  123. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +52 -200
  124. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  125. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +66 -239
  126. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  127. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -104
  128. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  129. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -59
  130. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  131. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +51 -173
  132. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  133. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
  134. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  135. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -249
  136. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  137. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -174
  138. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  139. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
  140. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  141. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
  142. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  143. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +61 -189
  144. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  145. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +87 -244
  146. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  147. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +77 -261
  148. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  150. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  151. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  152. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  153. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
  154. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  155. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  156. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  157. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  158. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  159. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  160. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +125 -254
  161. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  162. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  163. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
  164. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  165. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
  166. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  167. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
  168. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  169. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  170. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  171. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  172. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  173. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  174. package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -134
  175. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  176. package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
  177. package/dist/es/components/runtime/views/super-page.vue.js +222 -708
  178. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  179. package/dist/es/i18n/langs/cn.js +2 -55
  180. package/dist/es/i18n/langs/en.js +2 -55
  181. package/dist/es/index.d.ts +2 -2
  182. package/dist/es/index.js +6 -4
  183. package/package.json +3 -2
@@ -1,110 +1,31 @@
1
- import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
2
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent, handleEvent } from "../../../../utils/events/event-util.js";
5
- import { $t } from "../../../../utils/i18n-util.js";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "link-runtime",
8
- props: {
9
- pageContext: {},
10
- configure: {}
11
- },
12
- setup(__props) {
13
- const props = __props;
14
- const modelFields = getFormModelFields(props.pageContext, props.configure);
15
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
16
- const runtimeStyle = runtimeInfo.style;
17
- const runtimeClass = runtimeInfo.class;
18
- const headerStyle = runtimeInfo.headerStyle;
19
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
20
- console.log("designProperty", designProperty.value);
21
- let formatting = designProperty.value.formatting;
22
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
23
- const dynamicValue = computed(() => {
24
- let resultValue = getVariableValue(entity, modelFields);
25
- resultValue = resultValue == void 0 || resultValue == null ? "" : resultValue;
26
- if (formatting) {
27
- resultValue = formatting.replace(/\${value}/g, resultValue);
28
- }
29
- return resultValue;
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as m, createElementBlock as g, createCommentVNode as v } from "vue";
2
+ import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
5
+ import { $t as C } from "../../../../utils/i18n-util.js";
6
+ const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
+ const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
8
+ let $ = S.value.formatting;
9
+ const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
10
+ let e3 = b(D, h);
11
+ return e3 = null == e3 || null == e3 ? "" : e3, $ && (e3 = $.replace(/\${value}/g, e3)), e3;
12
+ });
13
+ let W = S.value.tooltip, q = null;
14
+ W && (q = l(() => {
15
+ let e3 = b(D, h);
16
+ return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
17
+ }));
18
+ const z = t(null), A = t(null), B = t(null);
19
+ return n(() => {
20
+ a(() => {
21
+ const e3 = V.value;
22
+ k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
30
23
  });
31
- let tooltipVariable = designProperty.value.tooltip;
32
- let tooltipValue = null;
33
- if (tooltipVariable) {
34
- tooltipValue = computed(() => {
35
- let resultValue = getVariableValue(entity, modelFields);
36
- resultValue = resultValue == void 0 || resultValue == null ? "" : resultValue;
37
- return tooltipVariable.replace(/\${value}/g, resultValue);
38
- });
39
- }
40
- const formItemRef = ref(null);
41
- const componentRef = ref(null);
42
- const titleRef = ref(null);
43
- onMounted(() => {
44
- nextTick(() => {
45
- const value = dynamicValue.value;
46
- handleAfterInitEvent(
47
- value,
48
- props.pageContext,
49
- props.configure,
50
- {
51
- formItemRef: formItemRef.value,
52
- componentRef: componentRef.value,
53
- titleRef: titleRef.value,
54
- value,
55
- entity: props.pageContext.entity.data,
56
- pageData: props.pageContext.entity.page
57
- }
58
- );
59
- });
60
- });
61
- return (_ctx, _cache) => {
62
- const _component_el_link = resolveComponent("el-link");
63
- const _component_el_tooltip = resolveComponent("el-tooltip");
64
- const _component_el_form_item = resolveComponent("el-form-item");
65
- return openBlock(), createBlock(_component_el_form_item, {
66
- ref_key: "formItemRef",
67
- ref: formItemRef,
68
- class: normalizeClass(unref(runtimeClass)),
69
- "label-width": designProperty.value.labelWidth,
70
- style: normalizeStyle(unref(runtimeStyle))
71
- }, {
72
- label: withCtx(() => [
73
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
74
- key: 0,
75
- ref_key: "titleRef",
76
- ref: titleRef,
77
- style: normalizeStyle({ ...unref(headerStyle) })
78
- }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
79
- ]),
80
- default: withCtx(() => [
81
- createVNode(_component_el_tooltip, {
82
- disabled: !unref(tooltipValue),
83
- content: unref(tooltipValue)
84
- }, {
85
- default: withCtx(() => [
86
- createVNode(_component_el_link, {
87
- ref_key: "componentRef",
88
- ref: componentRef,
89
- disabled: designProperty.value.state === "disabled",
90
- type: designProperty.value.type,
91
- underline: designProperty.value.underline,
92
- onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click", { skipValidate: true }))
93
- }, {
94
- default: withCtx(() => [
95
- createTextVNode(toDisplayString(dynamicValue.value), 1)
96
- ]),
97
- _: 1
98
- }, 8, ["disabled", "type", "underline"])
99
- ]),
100
- _: 1
101
- }, 8, ["disabled", "content"])
102
- ]),
103
- _: 1
104
- }, 8, ["class", "label-width", "style"]);
105
- };
106
- }
107
- });
24
+ }), (e3, t2) => {
25
+ const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
26
+ return o(), u(a2, { ref_key: "formItemRef", ref: z, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(m(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
27
+ };
28
+ } });
108
29
  export {
109
- _sfc_main as default
30
+ _ as default
110
31
  };
@@ -1,7 +1,7 @@
1
- import _sfc_main from "./placeholder-runtime.vue2.js";
1
+ import e from "./placeholder-runtime.vue2.js";
2
2
  /* empty css */
3
- import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const placeholderRuntime = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-96fc65d8"]]);
3
+ import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const o = r(e, [["__scopeId", "data-v-96fc65d8"]]);
5
5
  export {
6
- placeholderRuntime as default
6
+ o as default
7
7
  };
@@ -1,53 +1,16 @@
1
- import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementVNode } from "vue";
2
- import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "placeholder-runtime",
5
- props: {
6
- pageContext: {},
7
- configure: {}
8
- },
9
- setup(__props) {
10
- const props = __props;
11
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
12
- const runtimeStyle = runtimeInfo.style;
13
- const runtimeClass = runtimeInfo.class;
14
- const formItemRef = ref(null);
15
- const componentRef = ref(null);
16
- onMounted(() => {
17
- nextTick(() => {
18
- handleAfterInitEvent(
19
- null,
20
- props.pageContext,
21
- props.configure,
22
- {
23
- formItemRef: formItemRef.value,
24
- componentRef: componentRef.value,
25
- entity: props.pageContext.entity.data,
26
- pageData: props.pageContext.entity.page
27
- }
28
- );
29
- });
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r, createBlock as l, openBlock as a, normalizeStyle as u, normalizeClass as f, unref as s, withCtx as i, createElementVNode as m } from "vue";
2
+ import { handleAfterInitEvent as p } from "../../../../utils/events/event-util.js";
3
+ const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
4
+ const c2 = e2, g = c2.configure.runtime ? c2.configure.runtime : {}, y = g.style, d = g.class, v = t(null), x = t(null);
5
+ return n(() => {
6
+ o(() => {
7
+ p(null, c2.pageContext, c2.configure, { formItemRef: v.value, componentRef: x.value, entity: c2.pageContext.entity.data, pageData: c2.pageContext.entity.page });
30
8
  });
31
- return (_ctx, _cache) => {
32
- const _component_el_form_item = resolveComponent("el-form-item");
33
- return openBlock(), createBlock(_component_el_form_item, {
34
- ref_key: "formItemRef",
35
- ref: formItemRef,
36
- class: normalizeClass(unref(runtimeClass)),
37
- style: normalizeStyle(unref(runtimeStyle))
38
- }, {
39
- default: withCtx(() => [
40
- createElementVNode("div", {
41
- ref_key: "componentRef",
42
- ref: componentRef,
43
- style: { "width": "100%", "height": "100%" }
44
- }, " ", 512)
45
- ]),
46
- _: 1
47
- }, 8, ["class", "style"]);
48
- };
49
- }
50
- });
9
+ }), (e3, t2) => {
10
+ const n2 = r("el-form-item");
11
+ return a(), l(n2, { ref_key: "formItemRef", ref: v, class: f(s(d)), style: u(s(y)) }, { default: i(() => [m("div", { ref_key: "componentRef", ref: x, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
12
+ };
13
+ } });
51
14
  export {
52
- _sfc_main as default
15
+ c as default
53
16
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./radio-runtime.vue2.js";
1
+ import r from "./radio-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ r as default
4
4
  };
@@ -1,195 +1,67 @@
1
- import { defineComponent, computed, ref, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList, createTextVNode } from "vue";
2
- import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent, handleAfterInitEvent } from "../../../../utils/events/event-util.js";
5
- import { $t } from "../../../../utils/i18n-util.js";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "radio-runtime",
8
- props: {
9
- pageContext: {},
10
- configure: {}
11
- },
12
- setup(__props, { expose: __expose }) {
13
- const props = __props;
14
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
15
- let dynamicFields = getFormModelFields(props.pageContext, props.configure);
16
- const dynamicModelMethod = computed({
17
- get() {
18
- let val = getVariableValue(entity, dynamicFields);
19
- if (val !== void 0 && val !== null) {
20
- val = val + "";
21
- }
22
- return val;
23
- },
24
- set(value) {
25
- setVariableValue(entity, dynamicFields, value);
26
- }
27
- });
28
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
29
- const runtimeStyle = runtimeInfo.style;
30
- const runtimeClass = runtimeInfo.class;
31
- const headerStyle = runtimeInfo.headerStyle;
32
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
33
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
34
- const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
35
- const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
36
- if (cacheOptions.length > 0) {
37
- listOptions.value = cacheOptions;
38
- }
39
- const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
40
- const valueType = dataOrigin.optionValueSetType;
41
- let autoSets = [];
42
- if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
43
- if (dataOrigin.autoSets) {
44
- for (let obj of dataOrigin.autoSets) {
45
- if (obj.source) {
46
- autoSets.push(obj);
47
- }
48
- }
49
- }
50
- }
51
- if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
52
- autoSets.push({
53
- source: "label",
54
- target: props.configure.props.base.optionProp
55
- });
56
- }
57
- designProperty.value.changeMethod = optionChange;
58
- const monitorFields = designProperty.value.monitorFields;
59
- const monitorFieldInfos = [];
60
- if (monitorFields) {
61
- const preFields = [];
62
- for (let propName of monitorFields) {
63
- if (propName.startsWith("${")) {
64
- propName = propName.substring(2, propName.length - 1);
65
- const fields = propName.split(".");
66
- if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
67
- monitorFieldInfos.push(fields);
68
- if (!preFields.includes(fields[0])) {
69
- preFields.push(fields[0]);
70
- }
71
- }
72
- }
73
- }
74
- for (let preField of preFields) {
75
- watch(entity[preField], () => {
76
- monitorFieldChange();
77
- });
78
- }
79
- }
80
- function getMonitorFieldValues() {
81
- let values = "";
82
- for (let fieldInfo of monitorFieldInfos) {
83
- values += "_" + getVariableValue(entity, fieldInfo);
84
- }
85
- return values;
86
- }
87
- let initMonitorValue = getMonitorFieldValues();
88
- let monitorTimeout = false;
89
- const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
90
- function monitorFieldChange() {
91
- if (monitorTimeout) {
92
- clearTimeout(monitorTimeout);
93
- }
94
- monitorTimeout = setTimeout(function() {
95
- const newValue = getMonitorFieldValues();
96
- if (newValue == initMonitorValue) {
97
- return;
98
- }
99
- initMonitorValue = newValue;
100
- queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
101
- console.log("查询失败!", error);
102
- });
103
- }, 200);
1
+ import { defineComponent as e, computed as t, ref as o, watch as l, onMounted as n, nextTick as a, resolveComponent as u, createBlock as i, openBlock as r, normalizeStyle as s, normalizeClass as p, unref as f, withCtx as c, createVNode as g, createElementBlock as d, Fragment as v, renderList as m, createTextVNode as h, toDisplayString as y, createCommentVNode as b } from "vue";
2
+ import { setVariableValue as C, getVariableValue as x, getOptionDatasFromPage as k, autoSetAfterSelect as _, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as S } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as j, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
5
+ import { $t as T } from "../../../../utils/i18n-util.js";
6
+ const V = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
7
+ const q = e2, w = q.pageContext.entity ? q.pageContext.entity : {};
8
+ let z = S(q.pageContext, q.configure);
9
+ const O = t({ get() {
10
+ let e3 = x(w, z);
11
+ return null != e3 && (e3 += ""), e3;
12
+ }, set(e3) {
13
+ C(w, z, e3);
14
+ } }), D = q.configure.runtime ? q.configure.runtime : {}, M = D.style, P = D.class, W = D.headerStyle, E = D.titleExceedStyle, F = o(D.props ? D.props : {}), U = o(F.value.options ? F.value.options : []), $ = k(q.pageContext, q.configure);
15
+ $.length > 0 && (U.value = $);
16
+ const A = q.configure.props && q.configure.props.dataOrigin ? q.configure.props.dataOrigin : {}, B = A.optionValueSetType;
17
+ let G = [];
18
+ if (("dynamicData" == B || "dataTable" == B || "service" == B) && A.autoSets) for (let e3 of A.autoSets) e3.source && G.push(e3);
19
+ q.configure && q.configure.props && q.configure.props.base && q.configure.props.base.optionProp && G.push({ source: "label", target: q.configure.props.base.optionProp }), F.value.changeMethod = function(e3) {
20
+ if (G.length > 0) {
21
+ let t2 = null;
22
+ U.value && null != e3 && null != e3 && (t2 = U.value.filter((t3) => e3 === t3.value)), _(q.configure, q.pageContext, G, t2);
104
23
  }
105
- function optionChange(value) {
106
- if (autoSets.length > 0) {
107
- let selItems = null;
108
- if (listOptions.value && value != void 0 && value != null) {
109
- selItems = listOptions.value.filter((item) => {
110
- return value === item.value;
111
- });
112
- }
113
- autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
114
- }
115
- handleFormEvent(value, props.pageContext, props.configure, "change");
24
+ j(e3, q.pageContext, q.configure, "change");
25
+ };
26
+ const H = F.value.monitorFields, J = [];
27
+ if (H) {
28
+ const e3 = [];
29
+ for (let t2 of H) if (t2.startsWith("${")) {
30
+ t2 = t2.substring(2, t2.length - 1);
31
+ const o2 = t2.split(".");
32
+ "page" !== o2[0] && "task" !== o2[0] && "data" !== o2[0] || (J.push(o2), e3.includes(o2[0]) || e3.push(o2[0]));
116
33
  }
117
- function updateOptions(newOptions) {
118
- listOptions.value = newOptions ? newOptions : [];
119
- }
120
- const formItemRef = ref(null);
121
- const componentRef = ref(null);
122
- const titleRef = ref(null);
123
- onMounted(() => {
124
- nextTick(() => {
125
- const value = dynamicModelMethod.value;
126
- handleAfterInitEvent(value, props.pageContext, props.configure, {
127
- formItemRef: formItemRef.value,
128
- componentRef: componentRef.value,
129
- titleRef: titleRef.value,
130
- value,
131
- entity: props.pageContext.entity.data,
132
- pageData: props.pageContext.entity.page
133
- });
134
- });
135
- });
136
- __expose({
137
- updateOptions
34
+ for (let t2 of e3) l(w[t2], () => {
35
+ X();
138
36
  });
139
- return (_ctx, _cache) => {
140
- const _component_el_radio = resolveComponent("el-radio");
141
- const _component_el_radio_group = resolveComponent("el-radio-group");
142
- const _component_el_form_item = resolveComponent("el-form-item");
143
- return openBlock(), createBlock(_component_el_form_item, {
144
- ref_key: "formItemRef",
145
- ref: formItemRef,
146
- required: designProperty.value.required,
147
- class: normalizeClass(unref(runtimeClass)),
148
- "label-width": designProperty.value.labelWidth,
149
- style: normalizeStyle(unref(runtimeStyle))
150
- }, {
151
- label: withCtx(() => [
152
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
153
- key: 0,
154
- ref_key: "titleRef",
155
- ref: titleRef,
156
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
157
- }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
158
- ]),
159
- default: withCtx(() => [
160
- createVNode(_component_el_radio_group, {
161
- ref_key: "componentRef",
162
- ref: componentRef,
163
- disabled: designProperty.value.state === "disabled",
164
- size: designProperty.value.size,
165
- onChange: designProperty.value.changeMethod,
166
- modelValue: dynamicModelMethod.value,
167
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
168
- }, {
169
- default: withCtx(() => [
170
- (openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
171
- return openBlock(), createBlock(_component_el_radio, {
172
- key: item.value,
173
- label: item.value,
174
- onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
175
- values: dynamicModelMethod.value
176
- })
177
- }, {
178
- default: withCtx(() => [
179
- createTextVNode(toDisplayString(item.label), 1)
180
- ]),
181
- _: 2
182
- }, 1032, ["label", "onClick"]);
183
- }), 128))
184
- ]),
185
- _: 1
186
- }, 8, ["disabled", "size", "onChange", "modelValue"])
187
- ]),
188
- _: 1
189
- }, 8, ["required", "class", "label-width", "style"]);
190
- };
191
37
  }
192
- });
38
+ function K() {
39
+ let e3 = "";
40
+ for (let t2 of J) e3 += "_" + x(w, t2);
41
+ return e3;
42
+ }
43
+ let L = K(), N = false;
44
+ const Q = F.value.optionconfigInfo ? F.value.optionconfigInfo : {};
45
+ function X() {
46
+ N && clearTimeout(N), N = setTimeout(function() {
47
+ const e3 = K();
48
+ e3 != L && (L = e3, R(q.pageContext, Q, void 0).then((e4) => {
49
+ }));
50
+ }, 200);
51
+ }
52
+ const Y = o(null), Z = o(null), ee = o(null);
53
+ return n(() => {
54
+ a(() => {
55
+ const e3 = O.value;
56
+ I(e3, q.pageContext, q.configure, { formItemRef: Y.value, componentRef: Z.value, titleRef: ee.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
57
+ });
58
+ }), V2({ updateOptions: function(e3) {
59
+ U.value = e3 || [];
60
+ } }), (e3, t2) => {
61
+ const o2 = u("el-radio"), l2 = u("el-radio-group"), n2 = u("el-form-item");
62
+ return r(), i(n2, { ref_key: "formItemRef", ref: Y, required: F.value.required, class: p(f(P)), "label-width": F.value.labelWidth, style: s(f(M)) }, { label: c(() => [F.value.tittleShow ? (r(), d("div", { key: 0, ref_key: "titleRef", ref: ee, style: s({ ...f(W), ...f(E) }) }, y(f(T)(F.value.title)), 5)) : b("", true)]), default: c(() => [g(l2, { ref_key: "componentRef", ref: Z, disabled: "disabled" === F.value.state, size: F.value.size, onChange: F.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(r(true), d(v, null, m(U.value, (t3) => (r(), i(o2, { key: t3.value, label: t3.value, onClick: (o3) => f(j)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, { default: c(() => [h(y(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
63
+ };
64
+ } });
193
65
  export {
194
- _sfc_main as default
66
+ V as default
195
67
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./richtext-runtime.vue2.js";
1
+ import t from "./richtext-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ t as default
4
4
  };