super-page-runtime 2.1.93 → 2.1.97

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 -304
  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 +299 -602
  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,133 +1,45 @@
1
- import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, createTextVNode } 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 { $t } from "../../../../utils/i18n-util.js";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "tag-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 titleExceedStyle = runtimeInfo.titleExceedStyle;
20
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
21
- let formatting = designProperty.value.formatting;
22
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
23
- const dynamicValues = computed(() => {
24
- let resultValue = getVariableValue(entity, modelFields);
25
- if (resultValue === void 0 || resultValue === null) {
26
- resultValue = [];
27
- }
28
- if (!Array.isArray(resultValue)) {
29
- resultValue = (resultValue + "").split(",");
30
- }
31
- const options = [];
32
- let no = 1;
33
- for (const val of resultValue) {
34
- if (val === void 0 || val === null || val === "") {
35
- continue;
36
- }
37
- const o = {
38
- value: val,
39
- label: val
40
- };
41
- if (formatting) {
42
- o.label = formatting.replace(/\${value}/g, o.value).replace(/\${no}/g, no);
43
- }
44
- options.push(o);
45
- no++;
46
- }
47
- return options;
48
- });
49
- function closeTag($event, tag) {
50
- if (designProperty.value.closable) {
51
- let resultValue = getVariableValue(entity, modelFields);
52
- if (resultValue === void 0 || resultValue === null) {
53
- resultValue = [];
54
- }
55
- const isArray = Array.isArray(resultValue);
56
- if (!isArray) {
57
- resultValue = (resultValue + "").split(",");
58
- }
59
- const index = resultValue.indexOf(tag.value);
60
- if (index > -1) {
61
- resultValue.splice(index, 1);
62
- }
63
- if (!isArray) {
64
- resultValue = resultValue.join(",");
65
- }
66
- setVariableValue(entity, modelFields, resultValue);
67
- }
68
- handleFormEvent($event, props.pageContext, props.configure, "remove");
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o, openBlock as n, createBlock as r, normalizeClass as u, unref as s, normalizeStyle as p, withCtx as c, createElementBlock as f, toDisplayString as g, createCommentVNode as m, Fragment as v, renderList as y, createTextVNode as d } from "vue";
2
+ import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue as C, setVariableValue as b } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as h, handleFormEvent as k } from "../../../../utils/events/event-util.js";
5
+ import { $t as _ } from "../../../../utils/i18n-util.js";
6
+ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
+ const j2 = e2, A = x(j2.pageContext, j2.configure), R = j2.configure.runtime ? j2.configure.runtime : {}, q = R.style, w = R.class, z = R.headerStyle, S = R.titleExceedStyle, I = t(R.props ? R.props : {});
8
+ let $ = I.value.formatting;
9
+ const D = j2.pageContext.entity ? j2.pageContext.entity : {}, E = l(() => {
10
+ let e3 = C(D, A);
11
+ null == e3 && (e3 = []), Array.isArray(e3) || (e3 = (e3 + "").split(","));
12
+ const t2 = [];
13
+ let l2 = 1;
14
+ for (const a2 of e3) {
15
+ if (null == a2 || "" === a2)
16
+ continue;
17
+ const e4 = { value: a2, label: a2 };
18
+ $ && (e4.label = $.replace(/\${value}/g, e4.value).replace(/\${no}/g, l2)), t2.push(e4), l2++;
69
19
  }
70
- const formItemRef = ref(null);
71
- const titleRef = ref(null);
72
- onMounted(() => {
73
- nextTick(() => {
74
- const value = dynamicValues.value;
75
- handleAfterInitEvent(
76
- value,
77
- props.pageContext,
78
- props.configure,
79
- {
80
- formItemRef: formItemRef.value,
81
- titleRef: titleRef.value,
82
- value,
83
- entity: props.pageContext.entity.data,
84
- pageData: props.pageContext.entity.page
85
- }
86
- );
87
- });
20
+ return t2;
21
+ });
22
+ const O = t(null), W = t(null);
23
+ return a(() => {
24
+ i(() => {
25
+ const e3 = E.value;
26
+ h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
88
27
  });
89
- return (_ctx, _cache) => {
90
- const _component_el_tag = resolveComponent("el-tag");
91
- const _component_el_form_item = resolveComponent("el-form-item");
92
- return openBlock(), createBlock(_component_el_form_item, {
93
- ref_key: "formItemRef",
94
- ref: formItemRef,
95
- required: designProperty.value.required,
96
- class: normalizeClass(unref(runtimeClass)),
97
- "label-width": designProperty.value.labelWidth,
98
- style: normalizeStyle(unref(runtimeStyle))
99
- }, {
100
- label: withCtx(() => [
101
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
102
- key: 0,
103
- ref_key: "titleRef",
104
- ref: titleRef,
105
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
106
- }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
107
- ]),
108
- default: withCtx(() => [
109
- (openBlock(true), createElementBlock(Fragment, null, renderList(dynamicValues.value, (tag) => {
110
- return openBlock(), createBlock(_component_el_tag, {
111
- key: tag,
112
- size: designProperty.value.size,
113
- closable: designProperty.value.closable,
114
- type: designProperty.value.type,
115
- style: { "margin-right": "4px" },
116
- onClose: ($event) => closeTag($event, tag),
117
- onClick: _cache[0] || (_cache[0] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
118
- }, {
119
- default: withCtx(() => [
120
- createTextVNode(toDisplayString(tag.label), 1)
121
- ]),
122
- _: 2
123
- }, 1032, ["size", "closable", "type", "onClose"]);
124
- }), 128))
125
- ]),
126
- _: 1
127
- }, 8, ["required", "class", "label-width", "style"]);
128
- };
129
- }
130
- });
28
+ }), (e3, t2) => {
29
+ const l2 = o("el-tag"), a2 = o("el-form-item");
30
+ return n(), r(a2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: u(s(w)), "label-width": I.value.labelWidth, style: p(s(q)) }, { label: c(() => [I.value.tittleShow ? (n(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: p({ ...s(z), ...s(S) }) }, g(s(_)(I.value.title)), 5)) : m("", true)]), default: c(() => [(n(true), f(v, null, y(E.value, (a3) => (n(), r(l2, { key: a3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e4) => function(e5, t3) {
31
+ if (I.value.closable) {
32
+ let e6 = C(D, A);
33
+ null == e6 && (e6 = []);
34
+ const l3 = Array.isArray(e6);
35
+ l3 || (e6 = (e6 + "").split(","));
36
+ const a4 = e6.indexOf(t3.value);
37
+ a4 > -1 && e6.splice(a4, 1), l3 || (e6 = e6.join(",")), b(D, A, e6);
38
+ }
39
+ k(e5, j2.pageContext, j2.configure, "remove");
40
+ }(e4, a3), onClick: t2[0] || (t2[0] = (t3) => s(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: c(() => [d(g(a3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
41
+ };
42
+ } });
131
43
  export {
132
- _sfc_main as default
44
+ j as default
133
45
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./textarea-runtime.vue2.js";
1
+ import e from "./textarea-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,110 +1,25 @@
1
- import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } 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: "textarea-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 a, nextTick as o, resolveComponent as n, openBlock as r, createElementBlock as u, createVNode as i, normalizeClass as p, unref as s, normalizeStyle as f, withCtx as m, createBlock as g, Fragment as c, createTextVNode as d, toDisplayString as v, createCommentVNode as x } from "vue";
2
+ import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue as h, setVariableValue as C } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as w, handleFormEvent as b } from "../../../../utils/events/event-util.js";
5
+ import k from "../common/title-suffix-element.vue.js";
6
+ import { $t as R } from "../../../../utils/i18n-util.js";
7
+ const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
8
+ const _2 = e2, j = _2.pageContext.entity ? _2.pageContext.entity : {};
9
+ let I = y(_2.pageContext, _2.configure);
10
+ const q = t({ get: () => h(j, I), set(e3) {
11
+ C(j, I, e3);
12
+ } }), z = _2.configure.runtime ? _2.configure.runtime : {}, S = l(z.props ? z.props : {}), V = z.style, B = z.class, D = z.headerStyle, E = z.titleExceedStyle, F = l(null), L = l(null), N = l(null);
13
+ return a(() => {
14
+ o(() => {
15
+ const e3 = q.value;
16
+ w(e3, _2.pageContext, _2.configure, { formItemRef: F.value, componentRef: L.value, titleRef: N.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
24
17
  });
25
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
26
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
27
- const runtimeStyle = runtimeInfo.style;
28
- const runtimeClass = runtimeInfo.class;
29
- const headerStyle = runtimeInfo.headerStyle;
30
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
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 = resolveComponent("el-input");
54
- const _component_el_form_item = resolveComponent("el-form-item");
55
- return openBlock(), createElementBlock("div", null, [
56
- createVNode(_component_el_form_item, {
57
- ref_key: "formItemRef",
58
- ref: formItemRef,
59
- required: designProperty.value.required ? true : false,
60
- class: normalizeClass(unref(runtimeClass)),
61
- "label-width": designProperty.value.labelWidth,
62
- style: normalizeStyle(unref(runtimeStyle))
63
- }, {
64
- label: withCtx(() => [
65
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
66
- key: 0,
67
- ref_key: "titleRef",
68
- ref: titleRef,
69
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
70
- }, [
71
- designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
72
- key: 0,
73
- pageContext: _ctx.pageContext,
74
- property: designProperty.value
75
- }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
76
- createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
77
- ], 64))
78
- ], 4)) : createCommentVNode("", true)
79
- ]),
80
- default: withCtx(() => [
81
- createVNode(_component_el_input, {
82
- ref_key: "componentRef",
83
- ref: componentRef,
84
- disabled: designProperty.value.state === "disabled",
85
- readonly: designProperty.value.state === "readonly",
86
- size: designProperty.value.size,
87
- clearable: designProperty.value.clearable,
88
- placeholder: designProperty.value.placeholder,
89
- modelValue: dynamicModelMethod.value,
90
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
91
- rows: designProperty.value.rows ? designProperty.value.rows : 2,
92
- maxlength: designProperty.value.maxLength,
93
- "show-word-limit": designProperty.value.showInputNum,
94
- type: "textarea",
95
- onInput: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
96
- onChange: _cache[2] || (_cache[2] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
97
- onBlur: _cache[3] || (_cache[3] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
98
- onFocus: _cache[4] || (_cache[4] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
99
- onClick: _cache[5] || (_cache[5] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
100
- }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])
101
- ]),
102
- _: 1
103
- }, 8, ["required", "class", "label-width", "style"])
104
- ]);
105
- };
106
- }
107
- });
18
+ }), (e3, t2) => {
19
+ const l2 = n("el-input"), a2 = n("el-form-item");
20
+ return r(), u("div", null, [i(a2, { ref_key: "formItemRef", ref: F, required: !!S.value.required, class: p(s(B)), "label-width": S.value.labelWidth, style: f(s(V)) }, { label: m(() => [S.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: N, style: f({ ...s(D), ...s(E) }) }, [S.value.prefixType ? (r(), g(k, { key: 0, pageContext: e3.pageContext, property: S.value }, null, 8, ["pageContext", "property"])) : (r(), u(c, { key: 1 }, [d(v(s(R)(S.value.title)), 1)], 64))], 4)) : x("", true)]), default: m(() => [i(l2, { ref_key: "componentRef", ref: L, disabled: "disabled" === S.value.state, readonly: "readonly" === S.value.state, size: S.value.size, clearable: S.value.clearable, placeholder: S.value.placeholder, modelValue: q.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => q.value = e4), rows: S.value.rows ? S.value.rows : 2, maxlength: S.value.maxLength, "show-word-limit": S.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => s(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => s(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => s(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => s(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => s(b)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
21
+ };
22
+ } });
108
23
  export {
109
- _sfc_main as default
24
+ _ as default
110
25
  };