super-page-runtime 2.0.19 → 2.0.25

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 (195) hide show
  1. package/dist/es/components/runtime/utils/api/api-util.js +18 -16
  2. package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +206 -0
  4. package/dist/es/components/runtime/utils/assemblys-config.js +16 -7
  5. package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
  6. package/dist/es/components/runtime/utils/common-util.js +8 -12
  7. package/dist/es/components/runtime/utils/events/event-util.d.ts +14 -0
  8. package/dist/es/components/runtime/utils/events/event-util.js +101 -32
  9. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -0
  10. package/dist/es/components/runtime/utils/events/standard-event.js +189 -133
  11. package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
  12. package/dist/es/components/runtime/utils/form/scan-util.js +191 -0
  13. package/dist/es/components/runtime/utils/global-refs.js +12 -0
  14. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  15. package/dist/es/components/runtime/utils/page-helper-util.js +20 -4
  16. package/dist/es/components/runtime/utils/page-init-util.js +9 -15
  17. package/dist/es/components/runtime/utils/table-utils.js +4 -5
  18. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
  19. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
  20. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
  21. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
  22. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
  23. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  24. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +207 -0
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +99 -68
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -2
  27. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
  28. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
  29. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
  30. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
  31. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
  32. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
  33. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +24 -1
  34. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
  35. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  36. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
  37. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +96 -26
  38. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  39. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
  40. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
  41. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
  42. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -2
  43. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
  44. package/dist/es/components/runtime/views/super-page.vue.js +18 -7
  45. package/package.json +3 -2
  46. package/dist/lib/_virtual/AttributeMap.js +0 -4
  47. package/dist/lib/_virtual/Delta.js +0 -4
  48. package/dist/lib/_virtual/Op.js +0 -4
  49. package/dist/lib/_virtual/OpIterator.js +0 -4
  50. package/dist/lib/_virtual/__vite-browser-external.js +0 -3
  51. package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
  52. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  53. package/dist/lib/_virtual/dayjs.min.js +0 -4
  54. package/dist/lib/_virtual/index.js +0 -4
  55. package/dist/lib/_virtual/index2.js +0 -4
  56. package/dist/lib/_virtual/index3.js +0 -4
  57. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  58. package/dist/lib/assets/chart-themes/theme1.js +0 -7
  59. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  60. package/dist/lib/assets/chart-themes/theme2.js +0 -7
  61. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  62. package/dist/lib/assets/chart-themes/theme3.js +0 -7
  63. package/dist/lib/components/runtime/index.d.ts +0 -4
  64. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
  65. package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
  66. package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
  67. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
  68. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
  69. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
  70. package/dist/lib/components/runtime/utils/common-util.js +0 -94
  71. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  72. package/dist/lib/components/runtime/utils/eventBus.js +0 -10
  73. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
  74. package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
  75. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
  76. package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
  77. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
  78. package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
  79. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  80. package/dist/lib/components/runtime/utils/global-refs.js +0 -65
  81. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
  82. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
  83. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
  84. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
  85. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
  86. package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
  87. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  88. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  89. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  90. package/dist/lib/components/runtime/utils/store-util.js +0 -17
  91. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  92. package/dist/lib/components/runtime/utils/store.js +0 -3
  93. package/dist/lib/components/runtime/utils/table-utils.js +0 -24
  94. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  95. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  96. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  97. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  98. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  99. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  100. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  101. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
  102. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  103. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  104. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  105. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  106. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
  107. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
  108. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  109. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
  110. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  111. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
  112. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  113. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
  114. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  115. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
  116. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  117. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
  118. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  119. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  120. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  121. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  122. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  123. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  124. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  125. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  126. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  127. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  128. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  129. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  130. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  131. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  132. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
  133. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  134. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
  135. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  136. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  137. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  138. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
  139. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  140. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  141. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
  142. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  143. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
  144. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  145. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  146. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  147. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  148. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
  149. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
  150. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  151. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  152. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  153. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  154. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  155. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
  156. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  157. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  158. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  159. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  160. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  161. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  162. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  163. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  164. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  165. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
  166. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  167. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  168. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  169. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  170. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  171. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  172. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  173. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
  174. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  175. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  176. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  177. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  178. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  179. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  180. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  181. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  182. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  183. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
  184. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
  185. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  186. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  187. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
  188. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
  189. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
  190. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
  191. package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
  192. package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
  193. package/dist/lib/favicon.ico +0 -0
  194. package/dist/lib/index.d.ts +0 -8
  195. package/dist/lib/index.js +0 -15
@@ -2,6 +2,7 @@ import Validator from "async-validator";
2
2
  import { ElMessage } from "element-plus";
3
3
  import { getComponentRef } from "../global-refs.js";
4
4
  import { getI18n } from "agilebuilder-ui/src/utils/util";
5
+ import { getAdditionalParamMap } from "./standard-event.js";
5
6
  function setObjectPropRule(prop, rules, leafRule) {
6
7
  const rule = {};
7
8
  if (!rules) {
@@ -169,7 +170,7 @@ function validateDataModelFunc(pageContext, configureObj, isEnableRequired) {
169
170
  const data = { ...pageModel, ...dataModel };
170
171
  const rules = pageContext.rules;
171
172
  if (isEnableRequired === void 0 || isEnableRequired === null) {
172
- isEnableRequired = configureObj.props.verification.required;
173
+ isEnableRequired = configureObj.props.verification ? configureObj.props.verification.required : false;
173
174
  if (typeof isEnableRequired === "undefined") {
174
175
  isEnableRequired = false;
175
176
  }
@@ -192,7 +193,7 @@ function validateDataModel(isEnableRequired, dataModel, rules, pageContext) {
192
193
  }
193
194
  function validateWorkflowFormDataModel(dataModel, pageContext) {
194
195
  return new Promise((resolve, reject) => {
195
- const additionalParamMap = pageContext.entity.request;
196
+ const additionalParamMap = getAdditionalParamMap(pageContext);
196
197
  const contextParameter = pageContext.entity.context;
197
198
  const taskParamMap = pageContext.entity.task;
198
199
  const isSql = true;
@@ -389,7 +390,7 @@ function getWorkflowRules(pageContext) {
389
390
  const dataModel = pageContext.entity.data;
390
391
  const pageModel = pageContext.entity.page;
391
392
  const data = { ...pageModel, ...dataModel };
392
- const additionalParamMap = pageContext.entity.request;
393
+ const additionalParamMap = getAdditionalParamMap(pageContext);
393
394
  const contextParameter = pageContext.entity.context;
394
395
  const taskParamMap = pageContext.entity.task;
395
396
  const isSql = true;
@@ -0,0 +1,191 @@
1
+ import http from "agilebuilder-ui/src/utils/request";
2
+ import { setValueForVariableName } from "../page-helper-util.js";
3
+ function formatScanRuleSets(ruleList) {
4
+ const scanRuleSets2 = {};
5
+ ruleList.forEach((ruleSet) => {
6
+ if (ruleSet.type === "group") {
7
+ ruleSet.outs.forEach((valueSet) => {
8
+ if (!scanRuleSets2[valueSet.ruleCode]) {
9
+ scanRuleSets2[valueSet.ruleCode] = { outs: [], adaptations: [] };
10
+ }
11
+ scanRuleSets2[valueSet.ruleCode].outs.push(valueSet);
12
+ });
13
+ } else {
14
+ scanRuleSets2[ruleSet.code] = { outs: ruleSet.outs, adaptations: [] };
15
+ }
16
+ });
17
+ return packageScanRuleSets(scanRuleSets2);
18
+ }
19
+ function packageScanRuleSets(scanRuleSets2) {
20
+ return new Promise((resolve, reject) => {
21
+ if (Object.keys(scanRuleSets2).length > 0) {
22
+ http.post("/dc/setting-barcode-analysis/by-codes", Object.keys(scanRuleSets2)).then((res2) => {
23
+ res2.forEach((rule) => {
24
+ const ruleOuts = JSON.parse(rule.barcodeAnalysisOuts);
25
+ const needOutsFields = /* @__PURE__ */ new Set();
26
+ const outsFiledsSet = {};
27
+ scanRuleSets2[rule.code].outs.forEach((valueSet) => {
28
+ needOutsFields.add(valueSet.returnedValue);
29
+ outsFiledsSet[valueSet.returnedValue] = valueSet.pageVariable;
30
+ });
31
+ const filteredOutsField = [];
32
+ ruleOuts.forEach((outFiled) => {
33
+ if (needOutsFields.has(outFiled.code)) {
34
+ outFiled.pageVariable = outsFiledsSet[outFiled.code];
35
+ filteredOutsField.push(outFiled);
36
+ }
37
+ });
38
+ scanRuleSets2[rule.code].outs = filteredOutsField;
39
+ scanRuleSets2[rule.code].adaptations = JSON.parse(rule.barcodeAnalysisAdaptations);
40
+ resolve(scanRuleSets2);
41
+ });
42
+ });
43
+ } else {
44
+ resolve(null);
45
+ }
46
+ });
47
+ }
48
+ function analysisScanValue(scanValue, scanRuleSets) {
49
+ if (!scanValue) {
50
+ return null;
51
+ }
52
+ const scanSets = Object.values(scanRuleSets);
53
+ for (let i = 0; i < scanSets.length; i++) {
54
+ const scanSet = scanSets[i];
55
+ const adaptations = scanSet.adaptations;
56
+ let validStr = "";
57
+ for (let k = 0; k < adaptations.length; k++) {
58
+ const adap = adaptations[k];
59
+ const indexs = _getScanIndexs(scanValue, adap.startIndex, adap.endIndex);
60
+ const startIndex = indexs[0];
61
+ const endIndex = indexs[1];
62
+ let paramValue = scanValue.substring(startIndex, endIndex);
63
+ let compareValue = adap.value;
64
+ let operate = adap.operate;
65
+ if (operate == "times") {
66
+ const realValue = paramValue.split(compareValue == void 0 ? "" : compareValue).length - 1;
67
+ compareValue = realValue;
68
+ paramValue = adap.times;
69
+ operate = "=";
70
+ }
71
+ if (isNaN(paramValue) || isNaN(compareValue)) {
72
+ paramValue = "'" + paramValue + "'";
73
+ compareValue = "'" + compareValue + "'";
74
+ }
75
+ if (adap.leftBracket) {
76
+ validStr += adap.leftBracket;
77
+ }
78
+ if (operate == "<>") {
79
+ operate = "!=";
80
+ } else if (operate == "=") {
81
+ operate = "==";
82
+ }
83
+ if (operate == "include" || operate == "notinclude") {
84
+ validStr += paramValue + ".indexOf(" + compareValue + ")";
85
+ if (operate == "include") {
86
+ validStr += ">-1";
87
+ } else {
88
+ validStr += "<0";
89
+ }
90
+ } else {
91
+ validStr += paramValue + operate + compareValue;
92
+ }
93
+ if (adap.rightBracket) {
94
+ validStr += adap.rightBracket;
95
+ }
96
+ if (adap.joinStr && k + 1 < adaptations.length) {
97
+ const joinStr = adap.joinStr == "and" ? "&&" : "||";
98
+ validStr += joinStr;
99
+ }
100
+ }
101
+ let res = false;
102
+ if (validStr) {
103
+ try {
104
+ console.log("validStr", validStr);
105
+ res = eval("(" + validStr + ")");
106
+ console.log("res", res);
107
+ } catch (e) {
108
+ console.log(e);
109
+ }
110
+ } else {
111
+ res = true;
112
+ }
113
+ if (res) {
114
+ return executeAnalysisForScan(scanValue, scanSet);
115
+ }
116
+ }
117
+ return null;
118
+ }
119
+ function executeAnalysisForScan(scanValue2, scanSet2) {
120
+ if (!scanSet2 || !scanValue2) {
121
+ return;
122
+ }
123
+ const outs = scanSet2.outs;
124
+ const params = {};
125
+ outs.forEach((outJson) => {
126
+ const fieldName = outJson.fieldName;
127
+ if (outJson.fixedValue != void 0) {
128
+ params[fieldName] = outJson.fixedValue;
129
+ } else {
130
+ let pValue = scanValue2;
131
+ if (outJson.splitChar && outJson.splitNum) {
132
+ const splitChar = outJson.splitChar == "|" ? outJson.splitChar : outJson.splitChar;
133
+ const strs = scanValue2.split(splitChar);
134
+ const splitNum = outJson.splitNum < 1 ? 1 : outJson.splitNum;
135
+ console.log(pValue, splitChar, strs, splitNum);
136
+ if (splitNum <= strs.length) {
137
+ pValue = strs[splitNum - 1];
138
+ } else {
139
+ pValue = "";
140
+ }
141
+ }
142
+ if (outJson.splitChar2 && outJson.splitNum2) {
143
+ const splitChar2 = outJson.splitChar2 == "|" ? outJson.splitChar2 : outJson.splitChar2;
144
+ const strs = pValue.split(splitChar2);
145
+ const splitNum2 = outJson.splitNum2 < 1 ? 1 : outJson.splitNum2;
146
+ console.log(pValue, splitChar2, strs, splitNum2);
147
+ if (splitNum2 <= strs.length) {
148
+ pValue = strs[splitNum2 - 1];
149
+ } else {
150
+ pValue = "";
151
+ }
152
+ }
153
+ if (pValue.length > 0) {
154
+ const indexs = _getScanIndexs(pValue, outJson.startIndex, outJson.endIndex);
155
+ const startIndex = indexs[0];
156
+ const endIndex = indexs[1];
157
+ pValue = pValue.substring(startIndex, endIndex);
158
+ }
159
+ params[fieldName] = pValue;
160
+ }
161
+ });
162
+ return { value: scanValue2, params, scanSet: scanSet2 };
163
+ }
164
+ function _getScanIndexs(value, startIndex, endIndex) {
165
+ startIndex = startIndex == void 0 ? 0 : startIndex - 1;
166
+ startIndex = startIndex < 0 ? 0 : startIndex;
167
+ startIndex = startIndex > value.length - 1 ? value.length - 1 : startIndex;
168
+ endIndex = endIndex == void 0 ? value.length : endIndex;
169
+ endIndex = endIndex > value.length ? value.length : endIndex;
170
+ endIndex = endIndex < 1 ? 1 : endIndex;
171
+ if (endIndex < startIndex) {
172
+ endIndex = startIndex;
173
+ }
174
+ return [startIndex, endIndex];
175
+ }
176
+ function setScanAnalysisValue(pageContext, scanSet2, params) {
177
+ if (!scanSet2) {
178
+ return;
179
+ }
180
+ const outs = scanSet2.outs;
181
+ outs.forEach((outField) => {
182
+ const fieldName = outField.fieldName;
183
+ const value = params[fieldName];
184
+ setValueForVariableName(pageContext.entity, outField.pageVariable, value);
185
+ });
186
+ }
187
+ export {
188
+ analysisScanValue,
189
+ formatScanRuleSets,
190
+ setScanAnalysisValue
191
+ };
@@ -36,6 +36,17 @@ function getComponentRef(pageContext, componentUuid) {
36
36
  const objRef = globalRefs[cacheKey][componentUuid];
37
37
  return objRef ? objRef.value : objRef;
38
38
  }
39
+ function getComponentRefByCode(pageContext, componentCode) {
40
+ if (!pageContext) {
41
+ return;
42
+ }
43
+ const cacheKey = getPageRefKeyByCode(pageContext.code, pageContext.version);
44
+ if (!globalRefs[cacheKey]) {
45
+ globalRefs[cacheKey] = {};
46
+ }
47
+ const objRef = globalRefs[cacheKey][componentCode];
48
+ return objRef ? objRef.value : objRef;
49
+ }
39
50
  function removePageAllRef(pageContext) {
40
51
  if (!pageContext) {
41
52
  return;
@@ -60,6 +71,7 @@ export {
60
71
  addComponentRef,
61
72
  addComponentRefByCode,
62
73
  getComponentRef,
74
+ getComponentRefByCode,
63
75
  initComponentRefState,
64
76
  removePageAllRef
65
77
  };
@@ -68,6 +68,7 @@ export interface PageDesign extends Component {
68
68
  notIdInitializationList?: Array<any>;
69
69
  subTablePageInfo?: object;
70
70
  customEvents?: Array<any>;
71
+ contextParam?: object;
71
72
  }
72
73
  /**
73
74
  * 运行时页面对象
@@ -76,6 +77,7 @@ export interface PageContext extends Component {
76
77
  isTest?: boolean;
77
78
  systemCode?: string;
78
79
  systemVersion?: number;
80
+ backendUrl?: string;
79
81
  code: string;
80
82
  version: number;
81
83
  dimensions: string;
@@ -156,7 +156,11 @@ function updateChartDatasources(pageContext2, dataSourceConfs, appendParams) {
156
156
  systemCode: pageContext2.systemCode,
157
157
  pageCode: pageContext2.code
158
158
  };
159
- const url = window["$vueApp"].config.globalProperties.baseAPI + "common/common-data/find-chart-datas";
159
+ let baseUrl = pageContext2.backendUrl;
160
+ if (!baseUrl) {
161
+ baseUrl = window["$vueApp"].config.globalProperties.baseURL;
162
+ }
163
+ const url = baseUrl + "/common/common-data/find-chart-datas";
160
164
  http.post(url, param).then((result) => {
161
165
  if (!pageContext2.chartDataSourceMap) {
162
166
  pageContext2.chartDataSourceMap = {};
@@ -198,7 +202,11 @@ function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
198
202
  systemCode: pageContext2.systemCode,
199
203
  query
200
204
  };
201
- const url = window["$vueApp"].config.globalProperties.baseAPI + "common/common-data/find-datas";
205
+ let baseUrl = pageContext2.backendUrl;
206
+ if (!baseUrl) {
207
+ baseUrl = window["$vueApp"].config.globalProperties.baseURL;
208
+ }
209
+ const url = baseUrl + "/common/common-data/find-datas";
202
210
  http.post(url, param).then((result) => {
203
211
  if (!pageContext2.optionSourceMap) {
204
212
  pageContext2.optionSourceMap = {};
@@ -589,7 +597,7 @@ function monitorFieldChange(pageContext2, monitorFields, triggerFunc) {
589
597
  const entity = pageContext2.entity;
590
598
  let firstValue = getMonitorFieldValues(monitorFieldInfos, entity);
591
599
  let monitorTimeout = false;
592
- for (let preField of preFields) {
600
+ for (const preField of preFields) {
593
601
  watch(entity[preField], () => {
594
602
  if (monitorTimeout) {
595
603
  clearTimeout(monitorTimeout);
@@ -606,11 +614,18 @@ function monitorFieldChange(pageContext2, monitorFields, triggerFunc) {
606
614
  }
607
615
  function getMonitorFieldValues(monitorFieldInfos, entity) {
608
616
  let values = "";
609
- for (let fieldInfo of monitorFieldInfos) {
617
+ for (const fieldInfo of monitorFieldInfos) {
610
618
  values += "_" + getVariableValue(entity, fieldInfo);
611
619
  }
612
620
  return values;
613
621
  }
622
+ function getFormPropName(prop) {
623
+ if (prop && prop.indexOf("${") >= 0) {
624
+ return prop.substring(prop.indexOf(".") + 1, prop.lastIndexOf("}"));
625
+ } else {
626
+ return prop;
627
+ }
628
+ }
614
629
  export {
615
630
  autoSetAfterSelect,
616
631
  caculateShowCondition,
@@ -618,6 +633,7 @@ export {
618
633
  formatVariableValue,
619
634
  getChartDatasFromPage,
620
635
  getComponentOptionConfigs,
636
+ getFormPropName,
621
637
  getOptionDatasFromPage,
622
638
  getValueFromSource,
623
639
  getVariableValue,
@@ -1,9 +1,10 @@
1
1
  import http from "agilebuilder-ui/src/utils/request";
2
2
  import { useRoute } from "vue-router";
3
+ import { getAdditionalParamMap } from "./events/standard-event.js";
3
4
  import { PageDimensions } from "./interfaces/page-design-types.js";
4
- import { formatVariableValue, setVariableValue } from "./page-helper-util.js";
5
+ import { formatVariableValue, setVariableValue, getFormPropName } from "./page-helper-util.js";
5
6
  function queryPageDesignByCode(pageCode) {
6
- return http.get("/component/super-page-design/runtime/" + pageCode);
7
+ return http.get(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + pageCode);
7
8
  }
8
9
  function convertToPageContext(pageDesign, pageRequest) {
9
10
  if (pageDesign == null) {
@@ -44,7 +45,7 @@ function convertToPageContext(pageDesign, pageRequest) {
44
45
  request: getRequestObject(pageRequest),
45
46
  //初始化request对象
46
47
  page: {},
47
- context: {},
48
+ context: pageDesign.contextParam,
48
49
  system: {}
49
50
  }
50
51
  };
@@ -147,8 +148,8 @@ function getFormModelFields(pageContext, formItemConfigure) {
147
148
  return fields;
148
149
  }
149
150
  function getPermissionCodes(configure, pageContext) {
150
- if (!pageContext || pageContext.isTest || !configure) {
151
- return "";
151
+ if (!pageContext || !configure) {
152
+ return "true";
152
153
  }
153
154
  const codes = [];
154
155
  if (configure.autoPermissions) {
@@ -177,13 +178,13 @@ function getPermissionCodes(configure, pageContext) {
177
178
  }
178
179
  function queryPageSuperGrids(pageDesign, pageContext, publishVersion) {
179
180
  const tableRuntimes = pageDesign.tableRuntimes;
180
- const additionalParamMap = pageContext.entity && pageContext.entity.request && Object.keys(pageContext.entity.request).length > 0 ? pageContext.entity.request : null;
181
+ const additionalParamMap = getAdditionalParamMap(pageContext);
181
182
  let additionalParamMapJson;
182
183
  const pageCode = pageContext.code;
183
- if (additionalParamMap) {
184
+ if (additionalParamMap && Object.keys(additionalParamMap) > 0) {
184
185
  additionalParamMapJson = JSON.stringify(additionalParamMap);
185
186
  }
186
- return http.post("/component/super-page-design/super-grids", {
187
+ return http.post(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/super-grids", {
187
188
  tableRuntimes,
188
189
  additionalParamMapJson,
189
190
  pageCode,
@@ -209,13 +210,6 @@ function packageFormRules(pageContext, configure) {
209
210
  pageContext.rules[propName] = configure.props.rules;
210
211
  }
211
212
  }
212
- function getFormPropName(prop) {
213
- if (prop && prop.indexOf("${") >= 0) {
214
- return prop.substring(prop.indexOf(".") + 1, prop.lastIndexOf("}"));
215
- } else {
216
- return prop;
217
- }
218
- }
219
213
  export {
220
214
  convertToPageContext,
221
215
  getFormModelFields,
@@ -1,17 +1,17 @@
1
1
  import { getBaseUrl } from "./common-util.js";
2
2
  import http from "agilebuilder-ui/src/utils/request";
3
3
  import eventBus from "./eventBus.js";
4
- function getDataTypeMap(system, tableName) {
4
+ function getDataTypeMap(backendUrl, tableName) {
5
5
  return new Promise((resolve, reject) => {
6
- getDataTypeMapRequest(system, tableName).then((dataTypeMap) => {
6
+ getDataTypeMapRequest(backendUrl, tableName).then((dataTypeMap) => {
7
7
  resolve(dataTypeMap);
8
8
  }).catch(() => {
9
9
  reject(new Error("获得数据表:" + tableName + "的字段类型集合失败"));
10
10
  });
11
11
  });
12
12
  }
13
- function getDataTypeMapRequest(system, tableName) {
14
- const baseUrl = getBaseUrl(system);
13
+ function getDataTypeMapRequest(backendUrl, tableName) {
14
+ const baseUrl = getBaseUrl(backendUrl);
15
15
  return http.get(baseUrl + "/dsc/commons/tables/" + tableName + "/data-types");
16
16
  }
17
17
  function popupToPage(params) {
@@ -19,6 +19,5 @@ function popupToPage(params) {
19
19
  }
20
20
  export {
21
21
  getDataTypeMap,
22
- getDataTypeMapRequest,
23
22
  popupToPage
24
23
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { SuperIcon } from "agilebuilder-ui";
3
3
  import { handleEvent } from "../../../../utils/events/event-util.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -10,39 +10,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  setup(__props) {
11
11
  const props = __props;
12
12
  const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
13
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
13
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
14
14
  const runtimeStyle = runtimeInfo.style;
15
15
  const runtimeClass = runtimeInfo.class;
16
16
  return (_ctx, _cache) => {
17
17
  const _component_el_button = resolveComponent("el-button");
18
18
  return openBlock(), createBlock(_component_el_button, {
19
- disabled: unref(designProperty).state === "disabled",
19
+ disabled: designProperty.value.state === "disabled",
20
20
  class: normalizeClass(unref(runtimeClass)),
21
21
  style: normalizeStyle(unref(runtimeStyle)),
22
- type: unref(designProperty).type,
23
- size: unref(designProperty).size,
24
- text: unref(designProperty).text,
25
- round: unref(designProperty).round,
26
- plain: unref(designProperty).plain,
22
+ type: designProperty.value.type,
23
+ size: designProperty.value.size,
24
+ text: designProperty.value.text,
25
+ round: designProperty.value.round,
26
+ plain: designProperty.value.plain,
27
27
  onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
28
28
  }, {
29
29
  default: withCtx(() => [
30
- unref(designProperty).title && unref(designProperty).iconPosition == "right" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31
- createTextVNode(toDisplayString(unref(designProperty).title) + " ", 1),
32
- unref(designProperty).iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
30
+ designProperty.value.title && designProperty.value.iconPosition == "right" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31
+ createTextVNode(toDisplayString(designProperty.value.title) + " ", 1),
32
+ designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
33
33
  createTextVNode("   ")
34
34
  ], 64)) : createCommentVNode("", true)
35
35
  ], 64)) : createCommentVNode("", true),
36
- unref(designProperty).iconType && unref(designProperty).iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
36
+ designProperty.value.iconType && designProperty.value.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
37
37
  key: 1,
38
- iconType: unref(designProperty).iconType,
39
- iconValue: unref(designProperty).iconValue
38
+ iconType: designProperty.value.iconType,
39
+ iconValue: designProperty.value.iconValue
40
40
  }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
41
- unref(designProperty).title && unref(designProperty).iconPosition != "right" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
42
- unref(designProperty).iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
41
+ designProperty.value.title && designProperty.value.iconPosition != "right" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
42
+ designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
43
43
  createTextVNode("   ")
44
44
  ], 64)) : createCommentVNode("", true),
45
- createTextVNode(" " + toDisplayString(unref(designProperty).title), 1)
45
+ createTextVNode(" " + toDisplayString(designProperty.value.title), 1)
46
46
  ], 64)) : createCommentVNode("", true)
47
47
  ]),
48
48
  _: 1
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
2
2
  import { ArrowDown } from "@element-plus/icons-vue";
3
3
  import { formatVariableValue } from "../../../../utils/page-helper-util.js";
4
4
  import { handleEvent } from "../../../../utils/events/event-util.js";
@@ -14,14 +14,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
15
15
  const runtimeStyle = runtimeInfo.style;
16
16
  const runtimeClass = runtimeInfo.class;
17
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
17
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
18
18
  let listOptions = null;
19
19
  const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
20
20
  const valueType = dataOrigin.optionValueSetType;
21
21
  if (valueType == "variable") {
22
22
  listOptions = computed(() => {
23
23
  let options;
24
- const menuValues = formatVariableValue(props.pageContext, designProperty.menuField);
24
+ const menuValues = formatVariableValue(props.pageContext, designProperty.value.menuField);
25
25
  if (menuValues && Array.isArray(menuValues)) {
26
26
  options = menuValues;
27
27
  for (let i = 0; i < options.length; i++) {
@@ -43,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  return options;
44
44
  });
45
45
  } else {
46
- listOptions = ref(designProperty.options ? designProperty.options : []);
46
+ listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
47
47
  }
48
48
  return (_ctx, _cache) => {
49
49
  const _component_el_button = resolveComponent("el-button");
@@ -55,12 +55,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  return openBlock(), createBlock(_component_el_dropdown, {
56
56
  class: normalizeClass(unref(runtimeClass)),
57
57
  style: normalizeStyle(unref(runtimeStyle)),
58
- placement: unref(designProperty).placement,
59
- "split-button": unref(designProperty).splitButton,
60
- disabled: unref(designProperty).state === "disabled",
61
- type: unref(designProperty).buttonType,
62
- size: unref(designProperty).size,
63
- trigger: unref(designProperty).trigger
58
+ placement: designProperty.value.placement,
59
+ "split-button": designProperty.value.splitButton,
60
+ disabled: designProperty.value.state === "disabled",
61
+ type: designProperty.value.buttonType,
62
+ size: designProperty.value.size,
63
+ trigger: designProperty.value.trigger
64
64
  }, {
65
65
  dropdown: withCtx(() => [
66
66
  createVNode(_component_el_dropdown_menu, null, {
@@ -81,21 +81,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
81
  })
82
82
  ]),
83
83
  default: withCtx(() => [
84
- unref(designProperty).triggerElement === "button" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
85
- !unref(designProperty).splitButton ? (openBlock(), createBlock(_component_el_button, {
84
+ designProperty.value.triggerElement === "button" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
85
+ !designProperty.value.splitButton ? (openBlock(), createBlock(_component_el_button, {
86
86
  key: 0,
87
- size: unref(designProperty).size,
88
- type: unref(designProperty).buttonType,
87
+ size: designProperty.value.size,
88
+ type: designProperty.value.buttonType,
89
89
  onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick"))
90
90
  }, {
91
91
  default: withCtx(() => [
92
- createTextVNode(toDisplayString(unref(designProperty).title), 1)
92
+ createTextVNode(toDisplayString(designProperty.value.title), 1)
93
93
  ]),
94
94
  _: 1
95
- }, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(unref(designProperty).title), 1))
95
+ }, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(designProperty.value.title), 1))
96
96
  ], 64)) : (openBlock(), createBlock(_component_el_text, { key: 1 }, {
97
97
  default: withCtx(() => [
98
- createTextVNode(toDisplayString(unref(designProperty).title) + " ", 1),
98
+ createTextVNode(toDisplayString(designProperty.value.title) + " ", 1),
99
99
  createVNode(_component_el_icon, null, {
100
100
  default: withCtx(() => [
101
101
  createVNode(unref(ArrowDown))
@@ -8,8 +8,8 @@ declare const _default: import('vue').DefineComponent<{
8
8
  default: any;
9
9
  };
10
10
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
- close: (...args: any[]) => void;
12
11
  result: (...args: any[]) => void;
12
+ close: (...args: any[]) => void;
13
13
  open: (...args: any[]) => void;
14
14
  opend: (...args: any[]) => void;
15
15
  closed: (...args: any[]) => void;
@@ -4,8 +4,8 @@ declare const _default: import('vue').DefineComponent<{
4
4
  default: any;
5
5
  };
6
6
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- close: (...args: any[]) => void;
8
7
  result: (...args: any[]) => void;
8
+ close: (...args: any[]) => void;
9
9
  open: (...args: any[]) => void;
10
10
  opend: (...args: any[]) => void;
11
11
  closed: (...args: any[]) => void;
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, unref, normalizeStyle, normalizeClass, withCtx, createElementBlock, Fragment, renderList } from "vue";
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeStyle, unref, normalizeClass, withCtx, createElementBlock, Fragment, renderList } from "vue";
2
2
  import _sfc_main$1 from "../../object-render.vue.js";
3
3
  import "../../../../utils/global-refs.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -13,15 +13,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
14
14
  const runtimeStyle = runtimeInfo.style;
15
15
  const runtimeClass = runtimeInfo.class;
16
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
16
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
17
17
  return (_ctx, _cache) => {
18
18
  const _component_el_row = resolveComponent("el-row");
19
19
  return openBlock(), createBlock(_component_el_row, {
20
20
  ref_key: "thisRef",
21
21
  ref: thisRef,
22
- justify: unref(designProperty).flexJustify,
23
- gutter: unref(designProperty).flexGutter,
24
- align: unref(designProperty).alignItems,
22
+ justify: designProperty.value.flexJustify,
23
+ gutter: designProperty.value.flexGutter,
24
+ align: designProperty.value.alignItems,
25
25
  style: normalizeStyle(unref(runtimeStyle)),
26
26
  class: normalizeClass(unref(runtimeClass))
27
27
  }, {
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./barcode-runtime.vue2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };