super-page-runtime 2.1.933 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +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 -300
  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.d.ts +2 -2
  20. package/dist/es/components/runtime/utils/events/standard-event.js +846 -2285
  21. package/dist/es/components/runtime/utils/events/validator-util.js +237 -536
  22. package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
  23. package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
  24. package/dist/es/components/runtime/utils/global-refs.js +45 -69
  25. package/dist/es/components/runtime/utils/i18n-util.js +12 -20
  26. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  27. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  28. package/dist/es/components/runtime/utils/page-helper-util.js +296 -630
  29. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  30. package/dist/es/components/runtime/utils/page-init-util.js +137 -368
  31. package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
  32. package/dist/es/components/runtime/utils/page-store.js +8 -12
  33. package/dist/es/components/runtime/utils/store-util.js +9 -13
  34. package/dist/es/components/runtime/utils/store.js +2 -2
  35. package/dist/es/components/runtime/utils/table-utils.js +49 -84
  36. package/dist/es/components/runtime/utils/tree-utils.js +18 -36
  37. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  38. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
  39. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  40. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
  41. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  42. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +37 -132
  43. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  44. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
  45. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  46. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
  47. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +54 -198
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -169
  54. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  56. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
  57. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
  59. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
  61. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
  63. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
  64. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +242 -439
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
  68. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +37 -231
  70. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  73. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +191 -511
  75. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
  76. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  77. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +23 -125
  78. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
  80. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  81. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
  83. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
  85. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
  87. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
  89. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
  91. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
  93. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
  95. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  96. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
  97. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  98. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
  99. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +310 -800
  100. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  101. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +255 -592
  102. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  103. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  104. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +43 -115
  105. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  106. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
  107. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
  108. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  110. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +44 -154
  111. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -98
  112. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  113. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +54 -200
  115. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +69 -239
  117. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -104
  119. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +22 -59
  121. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +52 -173
  123. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
  125. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  126. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -249
  127. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  128. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +34 -174
  129. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  130. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
  131. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -5
  132. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
  133. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
  134. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  135. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +66 -189
  136. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  137. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -243
  138. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  139. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +82 -261
  140. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  141. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  142. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  143. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  144. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  145. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +41 -129
  146. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  147. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  148. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -252
  149. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  150. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  151. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +19 -46
  152. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  153. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +22 -49
  154. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  155. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +21 -58
  156. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  157. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  158. package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -134
  159. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  160. package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
  161. package/dist/es/components/runtime/views/super-page.vue.js +235 -708
  162. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  163. package/dist/es/i18n/langs/cn.js +2 -55
  164. package/dist/es/i18n/langs/en.js +2 -55
  165. package/package.json +74 -73
@@ -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, openBlock as u, createBlock as o, normalizeClass as r, unref as s, normalizeStyle as p, withCtx as f, createElementBlock as c, toDisplayString as d, createCommentVNode as m, createVNode as g, createTextVNode 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 u(), o(a2, { ref_key: "formItemRef", ref: z, class: r(s(w)), "label-width": S.value.labelWidth, style: p(s(j)) }, { label: f(() => [S.value.tittleShow ? (u(), c("div", { key: 0, ref_key: "titleRef", ref: B, style: p({ ...s(I) }) }, d(s(C)(S.value.title)), 5)) : m("", true)]), default: f(() => [g(n2, { disabled: !s(q), content: s(q) }, { default: f(() => [g(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) => s(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [v(d(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";
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"]]);
1
+ import e from "./placeholder-runtime.vue2.js";
2
+ import "./placeholder-runtime.vue3.js";
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, openBlock as l, createBlock as a, normalizeClass as u, unref as f, normalizeStyle 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 l(), a(n2, { ref_key: "formItemRef", ref: v, class: u(f(d)), style: s(f(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,72 @@
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, openBlock as i, createBlock as r, normalizeClass as s, unref as p, normalizeStyle as f, withCtx as c, createElementBlock as g, toDisplayString as d, createCommentVNode as v, createVNode as m, Fragment as h, renderList as y, createTextVNode as b } from "vue";
2
+ import { getVariableValue as C, setVariableValue 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 = C(w, z);
11
+ return null != e3 && (e3 += ""), e3;
12
+ }, set(e3) {
13
+ x(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)
19
+ for (let e3 of A.autoSets)
20
+ e3.source && G.push(e3);
21
+ 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) {
22
+ if (G.length > 0) {
23
+ let t2 = null;
24
+ U.value && null != e3 && null != e3 && (t2 = U.value.filter((t3) => e3 === t3.value)), _(q.configure, q.pageContext, G, t2);
104
25
  }
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);
26
+ j(e3, q.pageContext, q.configure, "change");
27
+ };
28
+ const H = F.value.monitorFields, J = [];
29
+ if (H) {
30
+ const e3 = [];
31
+ for (let t2 of H)
32
+ if (t2.startsWith("${")) {
33
+ t2 = t2.substring(2, t2.length - 1);
34
+ const o2 = t2.split(".");
35
+ "page" !== o2[0] && "task" !== o2[0] && "data" !== o2[0] || (J.push(o2), e3.includes(o2[0]) || e3.push(o2[0]));
114
36
  }
115
- handleFormEvent(value, props.pageContext, props.configure, "change");
116
- }
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
- });
37
+ for (let t2 of e3)
38
+ l(w[t2], () => {
39
+ X();
134
40
  });
135
- });
136
- __expose({
137
- updateOptions
138
- });
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
41
  }
192
- });
42
+ function K() {
43
+ let e3 = "";
44
+ for (let t2 of J)
45
+ e3 += "_" + C(w, t2);
46
+ return e3;
47
+ }
48
+ let L = K(), N = false;
49
+ const Q = F.value.optionconfigInfo ? F.value.optionconfigInfo : {};
50
+ function X() {
51
+ N && clearTimeout(N), N = setTimeout(function() {
52
+ const e3 = K();
53
+ e3 != L && (L = e3, R(q.pageContext, Q, void 0).then((e4) => {
54
+ }));
55
+ }, 200);
56
+ }
57
+ const Y = o(null), Z = o(null), ee = o(null);
58
+ return n(() => {
59
+ a(() => {
60
+ const e3 = O.value;
61
+ 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 });
62
+ });
63
+ }), V2({ updateOptions: function(e3) {
64
+ U.value = e3 || [];
65
+ } }), (e3, t2) => {
66
+ const o2 = u("el-radio"), l2 = u("el-radio-group"), n2 = u("el-form-item");
67
+ return i(), r(n2, { ref_key: "formItemRef", ref: Y, required: F.value.required, class: s(p(P)), "label-width": F.value.labelWidth, style: f(p(M)) }, { label: c(() => [F.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: ee, style: f({ ...p(W), ...p(E) }) }, d(p(T)(F.value.title)), 5)) : v("", true)]), default: c(() => [m(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(() => [(i(true), g(h, null, y(U.value, (t3) => (i(), r(o2, { key: t3.value, label: t3.value, onClick: (o3) => p(j)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, { default: c(() => [b(d(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
68
+ };
69
+ } });
193
70
  export {
194
- _sfc_main as default
71
+ V as default
195
72
  };
@@ -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
  };