super-page-runtime 2.2.29-tmp2 → 2.2.32

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 (167) 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/utils/api/api-util.js +4 -7
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +135 -443
  7. package/dist/es/components/runtime/utils/assemblys-config.js +13 -369
  8. package/dist/es/components/runtime/utils/barcode-util.js +9 -33
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +224 -522
  15. package/dist/es/components/runtime/utils/common-util.js +76 -156
  16. package/dist/es/components/runtime/utils/eventBus.js +3 -8
  17. package/dist/es/components/runtime/utils/events/event-util.js +362 -775
  18. package/dist/es/components/runtime/utils/events/print-label.js +72 -140
  19. package/dist/es/components/runtime/utils/events/standard-event.js +808 -2320
  20. package/dist/es/components/runtime/utils/events/validator-util.js +224 -560
  21. package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
  22. package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
  23. package/dist/es/components/runtime/utils/global-refs.js +53 -84
  24. package/dist/es/components/runtime/utils/i18n-util.js +11 -20
  25. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +6 -0
  26. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  27. package/dist/es/components/runtime/utils/page-helper-util.js +280 -660
  28. package/dist/es/components/runtime/utils/page-init-util.js +141 -406
  29. package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
  30. package/dist/es/components/runtime/utils/page-store.js +23 -68
  31. package/dist/es/components/runtime/utils/store-util.js +9 -13
  32. package/dist/es/components/runtime/utils/store.js +2 -2
  33. package/dist/es/components/runtime/utils/table-utils.d.ts +4 -0
  34. package/dist/es/components/runtime/utils/table-utils.js +40 -81
  35. package/dist/es/components/runtime/utils/tree-utils.js +17 -37
  36. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +21 -83
  38. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
  40. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
  42. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
  44. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
  46. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -203
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  54. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
  55. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +46 -162
  56. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -109
  58. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -166
  60. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -117
  62. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -118
  64. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +246 -597
  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 +29 -160
  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 +212 -594
  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 +21 -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 +317 -810
  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 +262 -635
  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 +40 -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 +42 -154
  111. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -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 +52 -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 +68 -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 -109
  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 +21 -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 +56 -188
  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 +57 -245
  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 +32 -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 +4 -4
  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/radio/radio-runtime.vue.js +2 -2
  134. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +64 -194
  135. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  136. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +88 -249
  137. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  138. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +80 -263
  139. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  140. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  141. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  142. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  143. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  144. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
  145. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  146. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  147. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +89 -188
  148. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -272
  150. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  151. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  152. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
  153. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  154. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
  155. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  156. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
  157. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  158. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  159. package/dist/es/components/runtime/views/home-chart.vue.js +41 -160
  160. package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
  161. package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -139
  162. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  163. package/dist/es/components/runtime/views/super-page.vue.js +226 -754
  164. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  165. package/dist/es/i18n/langs/cn.js +2 -55
  166. package/dist/es/i18n/langs/en.js +2 -55
  167. package/package.json +2 -2
@@ -1,269 +1,86 @@
1
- import { defineComponent, ref, computed, watch, onUnmounted, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createVNode, createElementBlock, Fragment, renderList, createCommentVNode, createElementVNode, toDisplayString, createTextVNode } from "vue";
2
- import { setVariableValue, getVariableValue, getOptionDatasFromPage, queryOptionDatasources, autoSetAfterSelect } 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 _sfc_main$1 from "../common/title-suffix-element.vue.js";
6
- import { $t } from "../../../../utils/i18n-util.js";
7
- const _hoisted_1 = { style: { "float": "left" } };
8
- const _hoisted_2 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "select-runtime",
11
- props: {
12
- pageContext: {},
13
- configure: {}
14
- },
15
- setup(__props, { expose: __expose }) {
16
- const props = __props;
17
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
18
- let dynamicFields = getFormModelFields(props.pageContext, props.configure);
19
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
20
- const runtimeStyle = runtimeInfo.style;
21
- const runtimeClass = runtimeInfo.class;
22
- const headerStyle = runtimeInfo.headerStyle;
23
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
24
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
25
- const dynamicModelMethod = computed({
26
- get() {
27
- let val = getVariableValue(entity, dynamicFields);
28
- if (val !== void 0 && val !== null) {
29
- val = val + "";
30
- }
31
- if (designProperty.value.multiple) {
32
- if (val) {
33
- val = val.split(",");
34
- } else {
35
- val = [];
36
- }
37
- }
38
- return val;
39
- },
40
- set(value) {
41
- if (designProperty.value.multiple) {
42
- if (value && value.length > 0 && !designProperty.value.arrayValue) {
43
- value = value.join(",");
44
- }
45
- }
46
- setVariableValue(entity, dynamicFields, value);
47
- }
48
- });
49
- const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
50
- const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
51
- if (cacheOptions.length > 0) {
52
- listOptions.value = cacheOptions;
53
- }
54
- const queryLoadingFlag = ref(false);
55
- const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
56
- const valueType = dataOrigin.optionValueSetType;
57
- let autoSets = [];
58
- const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
59
- if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
60
- if (dataOrigin.filterType == "remote") {
61
- designProperty.value.filterable = true;
62
- designProperty.value.remote = true;
63
- designProperty.value.remoteShowSuffix = true;
64
- let hisQuery = void 0;
65
- designProperty.value.remoteMethod = function(query) {
66
- if (hisQuery === query) {
67
- return;
68
- }
69
- hisQuery = query;
70
- queryLoadingFlag.value = true;
71
- console.log("query", query);
72
- queryOptionDatasources(props.pageContext, optionconfigInfo, query).then((results) => {
73
- queryLoadingFlag.value = false;
74
- }).then((error) => {
75
- console.log("查询失败!", error);
76
- queryLoadingFlag.value = false;
77
- });
78
- };
79
- }
80
- if (dataOrigin.autoSets) {
81
- for (let obj of dataOrigin.autoSets) {
82
- if (obj.source) {
83
- autoSets.push(obj);
84
- }
85
- }
86
- }
87
- }
88
- if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
89
- autoSets.push({
90
- source: "label",
91
- target: props.configure.props.base.optionProp
92
- });
93
- }
94
- designProperty.value.changeMethod = optionChange;
95
- const monitorFields = designProperty.value.monitorFields;
96
- const monitorFieldInfos = [];
97
- if (monitorFields) {
98
- const preFields = [];
99
- for (let propName of monitorFields) {
100
- if (propName.startsWith("${")) {
101
- propName = propName.substring(2, propName.length - 1);
102
- const fields = propName.split(".");
103
- if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
104
- monitorFieldInfos.push(fields);
105
- if (!preFields.includes(fields[0])) {
106
- preFields.push(fields[0]);
107
- }
108
- }
109
- }
110
- }
111
- for (let preField of preFields) {
112
- watch(entity[preField], () => {
113
- monitorFieldChange();
114
- });
115
- }
1
+ import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as v, createVNode as g, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
2
+ import { setVariableValue as _, getVariableValue as k, getOptionDatasFromPage as w, queryOptionDatasources as S, autoSetAfterSelect as T } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as R, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
5
+ import z from "../common/title-suffix-element.vue.js";
6
+ import { $t as I } from "../../../../utils/i18n-util.js";
7
+ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, O = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
8
+ const P = e2, A = P.pageContext.entity ? P.pageContext.entity : {};
9
+ let D = j(P.pageContext, P.configure);
10
+ const W = P.configure.runtime ? P.configure.runtime : {}, E = W.style, F = W.class, U = W.headerStyle, $ = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = l({ get() {
11
+ let e3 = k(A, D);
12
+ return null != e3 && (e3 += ""), B.value.multiple && (e3 = e3 ? e3.split(",") : []), e3;
13
+ }, set(e3) {
14
+ B.value.multiple && e3 && e3.length > 0 && !B.value.arrayValue && (e3 = e3.join(",")), _(A, D, e3);
15
+ } }), H = t(B.value.options ? B.value.options : []), J = w(P.pageContext, P.configure);
16
+ J.length > 0 && (H.value = J);
17
+ const K = t(false), L = P.configure.props && P.configure.props.dataOrigin ? P.configure.props.dataOrigin : {}, N = L.optionValueSetType;
18
+ let Q = [];
19
+ const X = B.value.optionconfigInfo ? B.value.optionconfigInfo : {};
20
+ if ("dynamicData" == N || "dataTable" == N || "service" == N) {
21
+ if ("remote" == L.filterType) {
22
+ let e3;
23
+ B.value.filterable = true, B.value.remote = true, B.value.remoteShowSuffix = true, B.value.remoteMethod = function(t2) {
24
+ e3 !== t2 && (e3 = t2, K.value = true, S(P.pageContext, X, t2).then((e4) => {
25
+ K.value = false;
26
+ }).then((e4) => {
27
+ K.value = false;
28
+ }));
29
+ };
116
30
  }
117
- function getMonitorFieldValues() {
118
- let values = "";
119
- for (let fieldInfo of monitorFieldInfos) {
120
- values += "_" + getVariableValue(entity, fieldInfo);
121
- }
122
- return values;
123
- }
124
- let initMonitorValue = getMonitorFieldValues();
125
- let monitorTimeout = false;
126
- function monitorFieldChange() {
127
- if (monitorTimeout) {
128
- clearTimeout(monitorTimeout);
129
- }
130
- monitorTimeout = setTimeout(function() {
131
- const newValue = getMonitorFieldValues();
132
- if (newValue == initMonitorValue) {
133
- return;
134
- }
135
- initMonitorValue = newValue;
136
- queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
137
- console.log("查询失败!", error);
138
- queryLoadingFlag.value = false;
139
- });
140
- }, 200);
141
- }
142
- onUnmounted(() => {
143
- if (monitorTimeout) {
144
- clearTimeout(monitorTimeout);
145
- }
146
- });
147
- function optionChange(value) {
148
- let selItems = null;
149
- if (listOptions.value && value != void 0 && value != null) {
150
- selItems = listOptions.value.filter((item) => {
151
- return Array.isArray(value) ? value.includes(item.value) : value === item.value;
152
- });
153
- }
154
- if (autoSets.length > 0) {
155
- autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
156
- }
157
- let selectItem;
158
- if (selItems && selItems.length > 0) {
159
- selectItem = selItems[0];
160
- }
161
- let otherParams = {};
162
- if (selectItem) {
163
- otherParams = { extendParams: selectItem };
164
- }
165
- handleFormEvent(value, props.pageContext, props.configure, "change", otherParams);
166
- }
167
- function updateOptions(newOptions) {
168
- listOptions.value = newOptions ? newOptions : [];
31
+ if (L.autoSets) for (let e3 of L.autoSets) e3.source && Q.push(e3);
32
+ }
33
+ P.configure && P.configure.props && P.configure.props.base && P.configure.props.base.optionProp && Q.push({ source: "label", target: P.configure.props.base.optionProp }), B.value.changeMethod = function(e3) {
34
+ let t2, l2 = null;
35
+ H.value && null != e3 && null != e3 && (l2 = H.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
36
+ Q.length > 0 && T(P.configure, P.pageContext, Q, l2);
37
+ l2 && l2.length > 0 && (t2 = l2[0]);
38
+ let o2 = {};
39
+ t2 && (o2 = { extendParams: t2 });
40
+ R(e3, P.pageContext, P.configure, "change", o2);
41
+ };
42
+ const Y = B.value.monitorFields, Z = [];
43
+ if (Y) {
44
+ const e3 = [];
45
+ for (let t2 of Y) if (t2.startsWith("${")) {
46
+ t2 = t2.substring(2, t2.length - 1);
47
+ const l2 = t2.split(".");
48
+ "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (Z.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
169
49
  }
170
- const formItemRef = ref(null);
171
- const componentRef = ref(null);
172
- const titleRef = ref(null);
173
- onMounted(() => {
174
- nextTick(() => {
175
- const value = dynamicModelMethod.value;
176
- handleAfterInitEvent(value, props.pageContext, props.configure, {
177
- formItemRef: formItemRef.value,
178
- componentRef: componentRef.value,
179
- titleRef: titleRef.value,
180
- value,
181
- entity: props.pageContext.entity.data,
182
- pageData: props.pageContext.entity.page
183
- });
184
- });
185
- });
186
- __expose({
187
- updateOptions
50
+ for (let t2 of e3) o(A[t2], () => {
51
+ oe();
188
52
  });
189
- return (_ctx, _cache) => {
190
- const _component_el_option = resolveComponent("el-option");
191
- const _component_el_select = resolveComponent("el-select");
192
- const _component_el_form_item = resolveComponent("el-form-item");
193
- return openBlock(), createBlock(_component_el_form_item, {
194
- ref_key: "formItemRef",
195
- ref: formItemRef,
196
- required: designProperty.value.required ? true : false,
197
- class: normalizeClass(unref(runtimeClass)),
198
- "label-width": designProperty.value.labelWidth,
199
- style: normalizeStyle(unref(runtimeStyle))
200
- }, {
201
- label: withCtx(() => [
202
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
203
- key: 0,
204
- ref_key: "titleRef",
205
- ref: titleRef,
206
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
207
- }, [
208
- designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
209
- key: 0,
210
- pageContext: _ctx.pageContext,
211
- property: designProperty.value
212
- }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
213
- createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
214
- ], 64))
215
- ], 4)) : createCommentVNode("", true)
216
- ]),
217
- default: withCtx(() => [
218
- createVNode(_component_el_select, {
219
- ref_key: "componentRef",
220
- ref: componentRef,
221
- style: { "width": "100%" },
222
- disabled: designProperty.value.state === "disabled",
223
- size: designProperty.value.size,
224
- clearable: designProperty.value.clearable,
225
- multiple: designProperty.value.multiple,
226
- "collapse-tags": designProperty.value.collapseTags,
227
- "collapse-tags-tooltip": designProperty.value.collapseTagsTooltip,
228
- filterable: designProperty.value.filterable,
229
- "allow-create": designProperty.value.allowCreate,
230
- placeholder: designProperty.value.placeholder,
231
- "remote-show-suffix": designProperty.value.remoteShowSuffix,
232
- remote: designProperty.value.remote,
233
- "remote-method": designProperty.value.remoteMethod,
234
- loading: queryLoadingFlag.value,
235
- onChange: designProperty.value.changeMethod,
236
- modelValue: dynamicModelMethod.value,
237
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
238
- }, {
239
- default: withCtx(() => [
240
- (openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
241
- return openBlock(), createBlock(_component_el_option, {
242
- key: item.value,
243
- label: item.label,
244
- value: item.value,
245
- onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
246
- values: dynamicModelMethod.value
247
- })
248
- }, {
249
- default: withCtx(() => [
250
- item._description_ ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
251
- createElementVNode("span", _hoisted_1, toDisplayString(item.label), 1),
252
- createElementVNode("span", _hoisted_2, toDisplayString(item._description_), 1)
253
- ], 64)) : createCommentVNode("", true)
254
- ]),
255
- _: 2
256
- }, 1032, ["label", "value", "onClick"]);
257
- }), 128))
258
- ]),
259
- _: 1
260
- }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])
261
- ]),
262
- _: 1
263
- }, 8, ["required", "class", "label-width", "style"]);
264
- };
265
53
  }
266
- });
54
+ function ee() {
55
+ let e3 = "";
56
+ for (let t2 of Z) e3 += "_" + k(A, t2);
57
+ return e3;
58
+ }
59
+ let te = ee(), le = false;
60
+ function oe() {
61
+ le && clearTimeout(le), le = setTimeout(function() {
62
+ const e3 = ee();
63
+ e3 != te && (te = e3, S(P.pageContext, X, void 0).then((e4) => {
64
+ K.value = false;
65
+ }));
66
+ }, 200);
67
+ }
68
+ a(() => {
69
+ le && clearTimeout(le);
70
+ });
71
+ const ae = t(null), ue = t(null), ne = t(null);
72
+ return u(() => {
73
+ n(() => {
74
+ const e3 = G.value;
75
+ V(e3, P.pageContext, P.configure, { formItemRef: ae.value, componentRef: ue.value, titleRef: ne.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
76
+ });
77
+ }), O2({ updateOptions: function(e3) {
78
+ H.value = e3 || [];
79
+ } }), (e3, t2) => {
80
+ const l2 = i("el-option"), o2 = i("el-select"), a2 = i("el-form-item");
81
+ return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label: v(() => [B.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: ne, style: p({ ...c(U), ...c($) }) }, [B.value.prefixType ? (s(), r(z, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(I)(B.value.title)), 1)], 64))], 4)) : y("", true)]), default: v(() => [g(o2, { ref_key: "componentRef", ref: ue, style: { width: "100%" }, disabled: "disabled" === B.value.state, size: B.value.size, clearable: B.value.clearable, multiple: B.value.multiple, "collapse-tags": B.value.collapseTags, "collapse-tags-tooltip": B.value.collapseTagsTooltip, filterable: B.value.filterable, "allow-create": B.value.allowCreate, placeholder: B.value.placeholder, "remote-show-suffix": B.value.remoteShowSuffix, remote: B.value.remote, "remote-method": B.value.remoteMethod, loading: K.value, onChange: B.value.changeMethod, modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4) }, { default: v(() => [(s(true), m(d, null, h(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(R)(t3.value, e3.pageContext, e3.configure, "click", { values: G.value }) }, { default: v(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", M, b(t3.label), 1), x("span", q, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
82
+ };
83
+ } });
267
84
  export {
268
- _sfc_main as default
85
+ O as default
269
86
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./separatelabel-runtime.vue2.js";
1
+ import e from "./separatelabel-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,60 +1,16 @@
1
- import { defineComponent, ref, onMounted, nextTick, createElementBlock, openBlock, normalizeClass, normalizeStyle, unref, createElementVNode, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
- import { SuperIcon } from "agilebuilder-ui";
3
- import { $t } from "../../../../utils/i18n-util.js";
4
- import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
5
- const _sfc_main = /* @__PURE__ */ defineComponent({
6
- __name: "separatelabel-runtime",
7
- props: {
8
- pageContext: {},
9
- configure: {}
10
- },
11
- setup(__props, { expose: __expose }) {
12
- const props = __props;
13
- const thisRef = ref(null);
14
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
15
- const runtimeStyle = runtimeInfo.style;
16
- const runtimeClass = runtimeInfo.class;
17
- const headerStyle = runtimeInfo.headerStyle;
18
- onMounted(() => {
19
- nextTick(() => {
20
- const value = $t(props.configure.props.base.title);
21
- handleAfterInitEvent(
22
- value,
23
- props.pageContext,
24
- props.configure,
25
- {
26
- componentRef: thisRef.value,
27
- value,
28
- entity: props.pageContext.entity.data,
29
- pageData: props.pageContext.entity.page
30
- }
31
- );
32
- });
1
+ import { defineComponent as e, ref as t, onMounted as i, nextTick as o, createElementBlock as n, openBlock as r, normalizeClass as a, normalizeStyle as p, unref as l, createElementVNode as s, createBlock as u, createCommentVNode as c, createTextVNode as g, toDisplayString as f } from "vue";
2
+ import { SuperIcon as m } from "agilebuilder-ui";
3
+ import { $t as y } from "../../../../utils/i18n-util.js";
4
+ import { handleAfterInitEvent as b } from "../../../../utils/events/event-util.js";
5
+ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: d2 }) {
6
+ const v = e2, x = t(null), C = v.configure.runtime ? v.configure.runtime : {}, T = C.style, V = C.class, h = C.headerStyle;
7
+ return i(() => {
8
+ o(() => {
9
+ const e3 = y(v.configure.props.base.title);
10
+ b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
33
11
  });
34
- __expose({});
35
- return (_ctx, _cache) => {
36
- return openBlock(), createElementBlock("div", {
37
- style: normalizeStyle(unref(runtimeStyle)),
38
- class: normalizeClass([unref(runtimeClass), "amb-widget-separatelabel"]),
39
- ref_key: "thisRef",
40
- ref: thisRef
41
- }, [
42
- createElementVNode("div", {
43
- class: "label",
44
- style: normalizeStyle(unref(headerStyle))
45
- }, [
46
- _ctx.configure.props.iconType && _ctx.configure.props.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
47
- key: 0,
48
- iconType: _ctx.configure.props.iconType,
49
- iconValue: _ctx.configure.props.iconValue,
50
- style: { "margin-right": "2px" }
51
- }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
52
- createTextVNode(" " + toDisplayString(unref($t)(_ctx.configure.props.base.title)), 1)
53
- ], 4)
54
- ], 6);
55
- };
56
- }
57
- });
12
+ }), d2({}), (e3, t2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e3.configure.props.base.title)), 1)], 4)], 6));
13
+ } });
58
14
  export {
59
- _sfc_main as default
15
+ d as default
60
16
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./switch-runtime.vue2.js";
1
+ import t from "./switch-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ t as default
4
4
  };
@@ -1,158 +1,33 @@
1
- import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, createVNode, createElementBlock, createCommentVNode, toDisplayString } 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: "switch-runtime",
8
- props: {
9
- pageContext: {},
10
- configure: {}
11
- },
12
- setup(__props) {
13
- const props = __props;
14
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
15
- let dynamicFields = getFormModelFields(props.pageContext, props.configure);
16
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
17
- const runtimeStyle = runtimeInfo.style;
18
- const runtimeClass = runtimeInfo.class;
19
- const headerStyle = runtimeInfo.headerStyle;
20
- const titleExceedStyle = runtimeInfo.titleExceedStyle;
21
- const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
22
- let val = getVariableValue(entity, dynamicFields);
23
- if (val !== void 0 && val !== null && typeof val === "number" && (val + "" === "1" || val + "" === "0")) {
24
- if (!isHasActive("activeValue")) {
25
- designProperty.value.activeValue = 1;
26
- }
27
- if (!isHasActive("inactiveValue")) {
28
- designProperty.value.inactiveValue = 0;
29
- }
30
- }
31
- if (val !== void 0 && val !== null && typeof val === "boolean") {
32
- if (!isHasActive("activeValue")) {
33
- designProperty.value.activeValue = true;
34
- }
35
- if (!isHasActive("inactiveValue")) {
36
- designProperty.value.inactiveValue = false;
37
- }
38
- }
39
- if (!isHasActive("activeValue")) {
40
- designProperty.value.activeValue = true;
41
- }
42
- if (!isHasActive("inactiveValue")) {
43
- designProperty.value.inactiveValue = false;
44
- }
45
- function isHasActive(type) {
46
- if (designProperty.value[type] === void 0 || designProperty.value[type] === null || designProperty.value[type] === "") {
47
- return false;
48
- }
49
- return true;
50
- }
51
- const switchStyle = runtimeInfo.switchStyle;
52
- const dynamicModelMethod = computed({
53
- get() {
54
- let val2 = getVariableValue(entity, dynamicFields);
55
- if (val2 !== void 0 && val2 !== null) {
56
- if (designProperty.value.activeValue === true) {
57
- if (val2 + "" === "1") {
58
- val2 = true;
59
- }
60
- if (val2 + "" === "0") {
61
- val2 = false;
62
- }
63
- } else if (designProperty.value.activeValue === 1) {
64
- if (val2 + "" === "true") {
65
- val2 = 1;
66
- }
67
- if (val2 + "" === "false") {
68
- val2 = 0;
69
- }
70
- } else {
71
- val2 = val2 + "";
72
- }
73
- }
74
- return val2;
75
- },
76
- set(value) {
77
- if (value !== void 0 && value !== null) {
78
- if (designProperty.value.activeValue === true) {
79
- if (value + "" === "1") {
80
- value = true;
81
- }
82
- if (value + "" === "0") {
83
- value = false;
84
- }
85
- } else if (designProperty.value.activeValue === 1) {
86
- if (value + "" === "true") {
87
- value = 1;
88
- }
89
- if (value + "" === "false") {
90
- value = 0;
91
- }
92
- } else {
93
- value = value + "";
94
- }
95
- }
96
- setVariableValue(entity, dynamicFields, value);
97
- }
98
- });
99
- const formItemRef = ref(null);
100
- const componentRef = ref(null);
101
- const titleRef = ref(null);
102
- onMounted(() => {
103
- nextTick(() => {
104
- const value = dynamicModelMethod.value;
105
- handleAfterInitEvent(value, props.pageContext, props.configure, {
106
- formItemRef: formItemRef.value,
107
- componentRef: componentRef.value,
108
- titleRef: titleRef.value,
109
- value,
110
- entity: props.pageContext.entity.data,
111
- pageData: props.pageContext.entity.page
112
- });
113
- });
114
- });
115
- return (_ctx, _cache) => {
116
- const _component_el_switch = resolveComponent("el-switch");
117
- const _component_el_form_item = resolveComponent("el-form-item");
118
- return openBlock(), createBlock(_component_el_form_item, {
119
- ref_key: "formItemRef",
120
- ref: formItemRef,
121
- required: designProperty.value.required,
122
- class: normalizeClass(unref(runtimeClass)),
123
- "label-width": designProperty.value.labelWidth,
124
- style: normalizeStyle(unref(runtimeStyle))
125
- }, {
126
- label: withCtx(() => [
127
- designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
128
- key: 0,
129
- ref_key: "titleRef",
130
- ref: titleRef,
131
- style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
132
- }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
133
- ]),
134
- default: withCtx(() => [
135
- createVNode(_component_el_switch, {
136
- ref_key: "componentRef",
137
- ref: componentRef,
138
- disabled: designProperty.value.state === "disabled",
139
- "active-value": designProperty.value.activeValue,
140
- "active-text": designProperty.value.activeText,
141
- "inactive-value": designProperty.value.inactiveValue,
142
- "inactive-text": designProperty.value.inactiveText,
143
- width: designProperty.value.offOnWidth,
144
- size: designProperty.value.size,
145
- style: normalizeStyle(unref(switchStyle)),
146
- modelValue: dynamicModelMethod.value,
147
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
148
- onChange: _cache[1] || (_cache[1] = ($event) => unref(handleFormEvent)($event, _ctx.pageContext, _ctx.configure, "change"))
149
- }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])
150
- ]),
151
- _: 1
152
- }, 8, ["required", "class", "label-width", "style"]);
153
- };
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as u, createBlock as n, openBlock as v, normalizeStyle as o, normalizeClass as c, unref as r, withCtx as s, createVNode as f, createElementBlock as p, createCommentVNode as d, toDisplayString as m } from "vue";
2
+ import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue as V, setVariableValue as y } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as x, handleFormEvent as h } from "../../../../utils/events/event-util.js";
5
+ import { $t as b } from "../../../../utils/i18n-util.js";
6
+ const C = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
+ const C2 = e2, w = C2.pageContext.entity ? C2.pageContext.entity : {};
8
+ let R = g(C2.pageContext, C2.configure);
9
+ const _ = C2.configure.runtime ? C2.configure.runtime : {}, j = _.style, k = _.class, S = _.headerStyle, q = _.titleExceedStyle, z = t(_.props ? _.props : {});
10
+ let I = V(w, R);
11
+ function T(e3) {
12
+ return void 0 !== z.value[e3] && null !== z.value[e3] && "" !== z.value[e3];
154
13
  }
155
- });
14
+ null == I || "number" != typeof I || I + "" != "1" && I + "" != "0" || (T("activeValue") || (z.value.activeValue = 1), T("inactiveValue") || (z.value.inactiveValue = 0)), null != I && "boolean" == typeof I && (T("activeValue") || (z.value.activeValue = true), T("inactiveValue") || (z.value.inactiveValue = false)), T("activeValue") || (z.value.activeValue = true), T("inactiveValue") || (z.value.inactiveValue = false);
15
+ const W = _.switchStyle, D = l({ get() {
16
+ let e3 = V(w, R);
17
+ return null != e3 && (true === z.value.activeValue ? (e3 + "" == "1" && (e3 = true), e3 + "" == "0" && (e3 = false)) : 1 === z.value.activeValue ? (e3 + "" == "true" && (e3 = 1), e3 + "" == "false" && (e3 = 0)) : e3 += ""), e3;
18
+ }, set(e3) {
19
+ null != e3 && (true === z.value.activeValue ? (e3 + "" == "1" && (e3 = true), e3 + "" == "0" && (e3 = false)) : 1 === z.value.activeValue ? (e3 + "" == "true" && (e3 = 1), e3 + "" == "false" && (e3 = 0)) : e3 += ""), y(w, R, e3);
20
+ } }), E = t(null), O = t(null), U = t(null);
21
+ return a(() => {
22
+ i(() => {
23
+ const e3 = D.value;
24
+ x(e3, C2.pageContext, C2.configure, { formItemRef: E.value, componentRef: O.value, titleRef: U.value, value: e3, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
25
+ });
26
+ }), (e3, t2) => {
27
+ const l2 = u("el-switch"), a2 = u("el-form-item");
28
+ return v(), n(a2, { ref_key: "formItemRef", ref: E, required: z.value.required, class: c(r(k)), "label-width": z.value.labelWidth, style: o(r(j)) }, { label: s(() => [z.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: U, style: o({ ...r(S), ...r(q) }) }, m(r(b)(z.value.title)), 5)) : d("", true)]), default: s(() => [f(l2, { ref_key: "componentRef", ref: O, disabled: "disabled" === z.value.state, "active-value": z.value.activeValue, "active-text": z.value.activeText, "inactive-value": z.value.inactiveValue, "inactive-text": z.value.inactiveText, width: z.value.offOnWidth, size: z.value.size, style: o(r(W)), modelValue: D.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => D.value = e4), onChange: t2[1] || (t2[1] = (t3) => r(h)(t3, e3.pageContext, e3.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
29
+ };
30
+ } });
156
31
  export {
157
- _sfc_main as default
32
+ C as default
158
33
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./tag-runtime.vue2.js";
1
+ import t from "./tag-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ t as default
4
4
  };