super-page-runtime 2.1.37-temp6 → 2.1.38

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 (37) hide show
  1. package/dist/es/components/runtime/utils/api/api-util.js +2 -1
  2. package/dist/es/components/runtime/utils/assemblys-config.js +7 -0
  3. package/dist/es/components/runtime/utils/events/validator-util.js +26 -6
  4. package/dist/es/components/runtime/utils/i18n-util.js +23 -0
  5. package/dist/es/components/runtime/utils/page-helper-util.js +2 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +2 -1
  7. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -2
  8. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +4 -3
  9. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +5 -4
  10. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
  11. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +126 -0
  12. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -1
  13. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -1
  14. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  15. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +2 -1
  16. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -0
  17. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +10 -0
  18. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +7 -3
  19. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +42 -9
  20. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +4 -2
  21. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -7
  22. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +21 -10
  23. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +4 -2
  24. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +90 -19
  25. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
  26. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -1
  27. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
  29. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +7 -3
  30. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +4 -2
  31. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -2
  32. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -1
  33. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -2
  34. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -2
  35. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +4 -2
  36. package/dist/es/components/runtime/views/super-page.vue.js +45 -23
  37. package/package.json +4 -4
@@ -2,6 +2,7 @@ import { defineComponent, computed, ref, watch, resolveComponent, openBlock, cre
2
2
  import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent } from "../../../../utils/events/event-util.js";
5
+ import { $t } from "../../../../utils/i18n-util.js";
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "radio-runtime",
7
8
  props: {
@@ -28,6 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
29
  const runtimeStyle = runtimeInfo.style;
29
30
  const runtimeClass = runtimeInfo.class;
30
31
  const headerStyle = runtimeInfo.headerStyle;
32
+ const titleExceedStyle = runtimeInfo.titleExceedStyle;
31
33
  const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
32
34
  const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
33
35
  const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
@@ -131,8 +133,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
131
133
  label: withCtx(() => [
132
134
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
133
135
  key: 0,
134
- style: normalizeStyle({ ...unref(headerStyle) })
135
- }, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
136
+ style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
137
+ }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
136
138
  ]),
137
139
  default: withCtx(() => [
138
140
  createVNode(_component_el_radio_group, {
@@ -148,7 +150,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
148
150
  key: item.value,
149
151
  value: item.value,
150
152
  label: item.label,
151
- onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", { values: dynamicModelMethod.value })
153
+ onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
154
+ values: dynamicModelMethod.value
155
+ })
152
156
  }, null, 8, ["value", "label", "onClick"]);
153
157
  }), 128))
154
158
  ]),
@@ -5,6 +5,7 @@ import Quill from "quill";
5
5
  import "quill/dist/quill.snow.css";
6
6
  import { handleFormEvent } from "../../../../utils/events/event-util.js";
7
7
  import http from "agilebuilder-ui/src/utils/request";
8
+ import { $t } from "../../../../utils/i18n-util.js";
8
9
  const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
9
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
11
  __name: "richtext-runtime",
@@ -20,6 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
21
  const runtimeStyle = runtimeInfo.style;
21
22
  const runtimeClass = runtimeInfo.class;
22
23
  const headerStyle = runtimeInfo.headerStyle;
24
+ const titleExceedStyle = runtimeInfo.titleExceedStyle;
23
25
  const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
24
26
  let contentVariable = designProperty.value.value;
25
27
  const initValue = formatVariableValue(props.pageContext, contentVariable);
@@ -189,8 +191,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
189
191
  label: withCtx(() => [
190
192
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
191
193
  key: 0,
192
- style: normalizeStyle({ ...unref(headerStyle) })
193
- }, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
194
+ style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
195
+ }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
194
196
  ]),
195
197
  default: withCtx(() => [
196
198
  createElementVNode("div", _hoisted_1, [
@@ -3,6 +3,7 @@ import { getVariableValue, setVariableValue, getOptionDatasFromPage, queryOption
3
3
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent } from "../../../../utils/events/event-util.js";
5
5
  import _sfc_main$1 from "../common/title-suffix-element.vue.js";
6
+ import { $t } from "../../../../utils/i18n-util.js";
6
7
  const _hoisted_1 = { style: { "float": "left" } };
7
8
  const _hoisted_2 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
8
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -34,6 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
35
  const runtimeStyle = runtimeInfo.style;
35
36
  const runtimeClass = runtimeInfo.class;
36
37
  const headerStyle = runtimeInfo.headerStyle;
38
+ const titleExceedStyle = runtimeInfo.titleExceedStyle;
37
39
  const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
38
40
  const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
39
41
  const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
@@ -161,14 +163,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
161
163
  label: withCtx(() => [
162
164
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
163
165
  key: 0,
164
- style: normalizeStyle({ ...unref(headerStyle) })
166
+ style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
165
167
  }, [
166
168
  designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
167
169
  key: 0,
168
170
  pageContext: _ctx.pageContext,
169
171
  property: designProperty.value
170
172
  }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
171
- createTextVNode(toDisplayString(designProperty.value.title), 1)
173
+ createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
172
174
  ], 64))
173
175
  ], 4)) : createCommentVNode("", true)
174
176
  ]),
@@ -1,5 +1,6 @@
1
1
  import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createElementVNode, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
2
  import { SuperIcon } from "agilebuilder-ui";
3
+ import { $t } from "../../../../utils/i18n-util.js";
3
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
5
  __name: "separatelabel-runtime",
5
6
  props: {
@@ -31,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
32
  iconValue: _ctx.configure.props.iconValue,
32
33
  style: { "margin-right": "2px" }
33
34
  }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
34
- createTextVNode(" " + toDisplayString(_ctx.configure.props.base.title), 1)
35
+ createTextVNode(" " + toDisplayString(unref($t)(_ctx.configure.props.base.title)), 1)
35
36
  ], 4)
36
37
  ], 6);
37
38
  };
@@ -2,6 +2,7 @@ import { defineComponent, ref, computed, resolveComponent, openBlock, createBloc
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
4
  import { handleFormEvent } from "../../../../utils/events/event-util.js";
5
+ import { $t } from "../../../../utils/i18n-util.js";
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "switch-runtime",
7
8
  props: {
@@ -16,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
17
  const runtimeStyle = runtimeInfo.style;
17
18
  const runtimeClass = runtimeInfo.class;
18
19
  const headerStyle = runtimeInfo.headerStyle;
20
+ const titleExceedStyle = runtimeInfo.titleExceedStyle;
19
21
  const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
20
22
  if (designProperty.value.activeValue === void 0 || designProperty.value.activeValue === null) {
21
23
  designProperty.value.activeValue = "1";
@@ -50,8 +52,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
52
  label: withCtx(() => [
51
53
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
52
54
  key: 0,
53
- style: normalizeStyle({ ...unref(headerStyle) })
54
- }, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
55
+ style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
56
+ }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
55
57
  ]),
56
58
  default: withCtx(() => [
57
59
  createVNode(_component_el_switch, {
@@ -2,6 +2,7 @@ import { defineComponent, ref, computed, resolveComponent, openBlock, createBloc
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
4
  import { handleFormEvent } from "../../../../utils/events/event-util.js";
5
+ import { $t } from "../../../../utils/i18n-util.js";
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "tag-runtime",
7
8
  props: {
@@ -15,6 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
16
  const runtimeStyle = runtimeInfo.style;
16
17
  const runtimeClass = runtimeInfo.class;
17
18
  const headerStyle = runtimeInfo.headerStyle;
19
+ const titleExceedStyle = runtimeInfo.titleExceedStyle;
18
20
  const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
19
21
  let formatting = designProperty.value.formatting;
20
22
  const entity = props.pageContext.entity ? props.pageContext.entity : {};
@@ -77,8 +79,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
77
79
  label: withCtx(() => [
78
80
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
79
81
  key: 0,
80
- style: normalizeStyle({ ...unref(headerStyle) })
81
- }, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
82
+ style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
83
+ }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
82
84
  ]),
83
85
  default: withCtx(() => [
84
86
  (openBlock(true), createElementBlock(Fragment, null, renderList(dynamicValues.value, (tag) => {
@@ -3,6 +3,7 @@ import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
4
  import { handleFormEvent } from "../../../../utils/events/event-util.js";
5
5
  import _sfc_main$1 from "../common/title-suffix-element.vue.js";
6
+ import { $t } from "../../../../utils/i18n-util.js";
6
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
8
  __name: "textarea-runtime",
8
9
  props: {
@@ -26,6 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
27
  const runtimeStyle = runtimeInfo.style;
27
28
  const runtimeClass = runtimeInfo.class;
28
29
  const headerStyle = runtimeInfo.headerStyle;
30
+ const titleExceedStyle = runtimeInfo.titleExceedStyle;
29
31
  return (_ctx, _cache) => {
30
32
  const _component_el_input = resolveComponent("el-input");
31
33
  const _component_el_form_item = resolveComponent("el-form-item");
@@ -39,14 +41,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
41
  label: withCtx(() => [
40
42
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
41
43
  key: 0,
42
- style: normalizeStyle({ ...unref(headerStyle) })
44
+ style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
43
45
  }, [
44
46
  designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
45
47
  key: 0,
46
48
  pageContext: _ctx.pageContext,
47
49
  property: designProperty.value
48
50
  }, null, 8, ["pageContext", "property"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
49
- createTextVNode(toDisplayString(designProperty.value.title), 1)
51
+ createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
50
52
  ], 64))
51
53
  ], 4)) : createCommentVNode("", true)
52
54
  ]),
@@ -82,8 +82,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
82
  },
83
83
  emits: ["open", "opened", "close", "closed"],
84
84
  setup(__props, { expose: __expose, emit: __emit }) {
85
+ const pageContextUtil = usePageContextStore();
85
86
  const { t } = useI18n();
86
- usePageContextStore();
87
87
  const props = __props;
88
88
  const thisRef = ref(null);
89
89
  const pageItems = ref([]);
@@ -142,6 +142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
142
142
  i18nValidateRulesMessage(pageContext.value.rules);
143
143
  handleEvent(null, pageContext.value, pageDesign, "beforeload");
144
144
  const myPageCode = pageContext.value.code;
145
+ pageContextUtil.setPageContext(pageContext.value);
145
146
  eventPageInfo.value = myPageCode + "_";
146
147
  eventBus.$on(eventPageInfo.value + "export-form-report", (params) => {
147
148
  buttonParams.value = params;
@@ -358,7 +359,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
358
359
  if (!_selectFile_.value) {
359
360
  return;
360
361
  }
361
- if (_selectFile_.value.value === "" || _selectFile_.value.value === null) return;
362
+ if (_selectFile_.value.value === "" || _selectFile_.value.value === null)
363
+ return;
362
364
  const fileObj = _selectFile_.value.files[0];
363
365
  if (fileObj) {
364
366
  _selectFile_.value.value = null;
@@ -445,12 +447,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
445
447
  function openDialog(configureObj, eventParams, myJumpPageSetting) {
446
448
  getPopPageSetting(configureObj, eventParams, myJumpPageSetting).then((openPageParams) => {
447
449
  if (openPageParams) {
448
- const openPageParamsResult = deepCopy(openPageParams);
449
450
  const myJumpPageSettingOrg = configureObj && configureObj["props"] && configureObj["props"].linkPage ? configureObj["props"].linkPage : null;
450
451
  if (myJumpPageSettingOrg) {
451
452
  Object.assign(openPageParams, deepCopy(myJumpPageSettingOrg));
452
453
  }
453
454
  refreshMobileDialogType(openPageParams, isMobile);
455
+ console.log(
456
+ "getPopPageSetting33-----openPageParams=",
457
+ openPageParams,
458
+ "configureObj=",
459
+ configureObj
460
+ );
454
461
  const jumpMode = openPageParams.jumpMode;
455
462
  const popPageSetting = openPageParams;
456
463
  if (!parentEventParams.value) {
@@ -462,23 +469,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
462
469
  popPageSetting.isNewPage = true;
463
470
  if (jumpMode === "popup" || jumpMode === "refresh") {
464
471
  const linkType = popPageSetting.linkType;
465
- if (parentPageContext.value.systemCode !== popPageSetting.customSystem || linkType && linkType === "url") {
472
+ if (isMobile && (parentPageContext.value.systemCode !== popPageSetting.customSystem || linkType && linkType === "url")) {
473
+ popPageSetting._isIframe = true;
466
474
  if (jumpMode === "refresh") {
467
475
  popPageSetting.dialogType = "drawer";
468
476
  popPageSetting.jumpPageWidth = "100%";
469
477
  }
470
- popPageSetting._isIframe = true;
471
478
  jumpPageSetting.value = popPageSetting;
472
479
  isShowDialog.value = true;
473
480
  } else {
474
481
  popPageSetting._isIframe = false;
475
- if (jumpMode === "popup") {
482
+ if (jumpMode === "popup" || isMobile && jumpMode === "refresh") {
483
+ if (jumpMode === "refresh") {
484
+ popPageSetting.dialogType = "drawer";
485
+ popPageSetting.jumpPageWidth = "100%";
486
+ }
476
487
  jumpPageSetting.value = popPageSetting;
477
488
  isShowDialog.value = true;
478
489
  } else if (jumpMode === "refresh") {
479
490
  router.push({
480
491
  path: "/dsc/page",
481
- query: openPageParamsResult
492
+ query: popPageSetting
482
493
  });
483
494
  }
484
495
  }
@@ -493,7 +504,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
493
504
  }
494
505
  function closeFunc(params) {
495
506
  const jumpMode = params.jumpMode;
496
- if (jumpMode && jumpMode === "popup") {
507
+ if (jumpMode && jumpMode === "popup" || isMobile && jumpMode === "refresh") {
497
508
  closeDialog(params);
498
509
  } else {
499
510
  router.go(-1);
@@ -532,37 +543,48 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
532
543
  }
533
544
  function pickFileDone(data) {
534
545
  let componentId = data.componentId;
546
+ let listCode = data.listCode;
535
547
  console.log("superPage1111---pickFileDone--componentId=", componentId, "data=", data);
536
- if (!componentId) {
548
+ if (!componentId && !listCode) {
537
549
  console.log("superPage2222---pickFileDone--componentId=", componentId, "data=", data);
538
550
  return;
539
551
  }
540
552
  console.log("superPage333---pickFileDone--componentId=", componentId, "data=", data);
541
- eventBus.$emit(componentId + "-pickFileDone", data);
553
+ if (listCode) {
554
+ eventBus.$emit(listCode + "-pickFileDone", data);
555
+ } else {
556
+ eventBus.$emit(componentId + "-pickFileDone", data);
557
+ }
542
558
  }
543
559
  function uploadFileDone(data) {
544
560
  let componentId = data.componentId;
561
+ let listCode = data.listCode;
545
562
  console.log("superPage1111---uploadFileDone--componentId=", componentId, "data=", data);
546
- if (!componentId) {
563
+ if (!componentId && !listCode) {
547
564
  console.log("superPage2222---uploadFileDone--componentId=", componentId, "data=", data);
548
565
  return;
549
566
  }
550
567
  console.log("superPage333---uploadFileDone--componentId=", componentId, "data=", data);
551
- eventBus.$emit(componentId + "-uploadFileDone", data);
568
+ if (listCode) {
569
+ eventBus.$emit(listCode + "-uploadFileDone", data);
570
+ } else {
571
+ eventBus.$emit(componentId + "-uploadFileDone", data);
572
+ }
552
573
  }
553
574
  function scanDone(data) {
554
- let pageCode = data.pageCode;
555
- if (!pageCode) {
556
- pageCode = props.pageCode;
575
+ let componentId = data.componentId;
576
+ let listCode = data.listCode;
577
+ console.log("superPage1111---scanDone--componentId=", componentId, "data=", data);
578
+ if (!componentId && !listCode) {
579
+ console.log("superPage2222---scanDone--componentId=", componentId, "data=", data);
580
+ return;
581
+ }
582
+ console.log("superPage3333---scanDone--componentId=", componentId, "data=", data);
583
+ if (listCode) {
584
+ eventBus.$emit(listCode + "-scanDone", data);
585
+ } else {
586
+ eventBus.$emit(componentId + "-scanDone", data);
557
587
  }
558
- console.log(
559
- "super-page-scanDone===data=",
560
- JSON.stringify(data),
561
- "pageCode=",
562
- pageCode,
563
- props.pageCode + "-scan"
564
- );
565
- eventBus.$emit(pageCode + "-scan", data);
566
588
  }
567
589
  __expose({
568
590
  pickFileDone,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.1.37-temp6",
3
+ "version": "2.1.38",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -48,7 +48,7 @@
48
48
  "@vitejs/plugin-vue-jsx": "^3.1.0",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/test-utils": "^2.4.4",
51
- "agilebuilder-ui": "1.0.72",
51
+ "agilebuilder-ui": "1.0.76",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",
@@ -58,6 +58,7 @@
58
58
  "js-cookie": "^3.0.5",
59
59
  "jsdom": "^24.0.0",
60
60
  "mitt": "^3.0.1",
61
+ "pinia": "^2.1.7",
61
62
  "saas": "^1.0.0",
62
63
  "sass": "^1.72.0",
63
64
  "start-server-and-test": "^2.0.3",
@@ -67,7 +68,6 @@
67
68
  "vue": "^3.4.21",
68
69
  "vue-i18n": "^9.10.2",
69
70
  "vue-router": "^4.3.0",
70
- "vuex": "^4.1.0",
71
- "pinia": "^2.1.7"
71
+ "vuex": "^4.1.0"
72
72
  }
73
73
  }