super-page-runtime 2.3.38-sit3 → 2.3.38-sit4

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.
@@ -353,7 +353,7 @@ function ne(e2, n2, t2) {
353
353
  return h(null, e2, n2, "header-click", t2);
354
354
  }
355
355
  function te(e2) {
356
- return N(null, e2.pageContext, e2.configureObj, "before-upload", e2);
356
+ return h(null, e2.pageContext, e2.configureObj, "before-upload", e2);
357
357
  }
358
358
  function ie(e2, n2, t2) {
359
359
  return h(null, e2, n2, "uploaded", t2);
@@ -1,15 +1,15 @@
1
- import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as s, normalizeStyle as p, normalizeClass as d, unref as f, createSlots as m, withCtx as v, createElementVNode as c, toDisplayString as g } from "vue";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as d, createSlots as m, withCtx as v, createElementVNode as c, toDisplayString as g } from "vue";
2
2
  import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
- import { handleAfterInitEvent as C, fileUploadBeforeUpload as w, fileUploadUploaded as b, fileUploadBeforeDelete as x, fileUploadDeleted as k } from "../../../../utils/events/event-util.js";
3
+ import { handleAfterInitEvent as C, fileUploadBeforeUpload as w, fileUploadBeforeDelete as b, fileUploadUploaded as x, fileUploadDeleted as k } from "../../../../utils/events/event-util.js";
4
4
  import I from "agilebuilder-ui/src/utils/request";
5
5
  import { FsUploadNew as P } from "agilebuilder-ui";
6
6
  import S from "../../../../utils/eventBus.js";
7
- import { $t as N } from "../../../../utils/i18n-util.js";
8
- import { addRequiredClassUtil as T } from "../../../../utils/common-util.js";
9
- import { getRelativeBaseUrl as _ } from "agilebuilder-ui/src/utils/common-util";
10
- const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
7
+ import { $t as j } from "../../../../utils/i18n-util.js";
8
+ import { addRequiredClassUtil as N } from "../../../../utils/common-util.js";
9
+ import { getRelativeBaseUrl as T } from "agilebuilder-ui/src/utils/common-util";
10
+ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
11
11
  var _a, _b, _c, _d, _e, _f, _g;
12
- const z = e2, R = l(null), F = z.configure.runtime ? z.configure.runtime : {}, D = l(F.props ? F.props : {}), O = F.style, q = F.class, W = F.headerStyle, $ = F.titleExceedStyle, A = z.pageContext.entity ? z.pageContext.entity : {}, E = z.configure.props.base ? z.configure.props.base : {}, U = Y(E.prop), B = Y(E.propName);
12
+ const z = e2, R = l(null), F = z.configure.runtime ? z.configure.runtime : {}, O = l(F.props ? F.props : {}), D = F.style, q = F.class, W = F.headerStyle, $ = F.titleExceedStyle, A = z.pageContext.entity ? z.pageContext.entity : {}, E = z.configure.props.base ? z.configure.props.base : {}, U = Y(E.prop), B = Y(E.propName);
13
13
  let G = l({});
14
14
  G.value.isShowWatermark = void 0 === ((_b = (_a = z.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = z.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", G.value.content = ((_e = (_d = z.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = z.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", U && U.length > 1 && t(() => z.pageContext.entity[U[0]][U[1]], (e3) => {
15
15
  X(h(A, U));
@@ -19,7 +19,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
19
19
  if (e3) {
20
20
  const l2 = e3.split(",");
21
21
  if (l2.length > 0) {
22
- const e4 = _(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
22
+ const e4 = T(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
23
23
  I.post(e4, l2).then((e5) => {
24
24
  Q.value = [];
25
25
  const t2 = [], o2 = {};
@@ -30,7 +30,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
30
30
  const i2 = l2[e6];
31
31
  t2.push(o2[i2].fileName), Q.value.push({ showName: o2[i2].fileName, serverPath: i2, fileSize: o2[i2].fileSize });
32
32
  }
33
- "input" === D.value.displayType && (V.value.showName = t2.join(","), V.value.serverPath = l2.join(","));
33
+ "input" === O.value.displayType && (V.value.showName = t2.join(","), V.value.serverPath = l2.join(","));
34
34
  }).finally(() => {
35
35
  M.value = true;
36
36
  });
@@ -42,7 +42,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
42
42
  }
43
43
  function Z(e3) {
44
44
  z.pageContext.fileuploadInfo || (z.pageContext.fileuploadInfo = []);
45
- return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: N(D.value.title) }), w(e3);
45
+ return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: j(O.value.title) }), e3.pageContext || (e3.pageContext = z.pageContext), e3.configure || (e3.configureObj = z.configure), w(e3);
46
46
  }
47
47
  function ee() {
48
48
  if (z.pageContext.fileuploadInfo && z.configure.uuid) {
@@ -53,41 +53,41 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
53
53
  function le(e3) {
54
54
  ee();
55
55
  }
56
+ function te(e3) {
57
+ return b(z.pageContext, z.configure, e3);
58
+ }
56
59
  X(K);
57
- const te = (e3, l2, t2) => {
60
+ const oe = (e3, l2, t2) => {
58
61
  var o2;
59
- ee(), ie(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, b(z.pageContext, z.configure, o2);
60
- }, oe = (e3) => {
61
- const l2 = (t2 = { file: e3 }, x(z.pageContext, z.configure, t2));
62
- var t2;
63
- (l2 || void 0 === l2) && (ie(), function(e4) {
64
- k(z.pageContext, z.configure, e4);
65
- }({ file: e3 }));
66
- }, ie = () => {
62
+ ee(), ae(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, x(z.pageContext, z.configure, o2);
63
+ }, ie = (e3) => {
64
+ var l2;
65
+ ae(), l2 = { file: e3 }, k(z.pageContext, z.configure, l2);
66
+ }, ae = () => {
67
67
  const e3 = [], l2 = [];
68
- if (D.value.limit && Q.value.length > D.value.limit) {
69
- const e4 = Q.value.length - D.value.limit;
68
+ if (O.value.limit && Q.value.length > O.value.limit) {
69
+ const e4 = Q.value.length - O.value.limit;
70
70
  for (let l3 = 0; l3 < e4; l3++) Q.value.shift();
71
71
  }
72
72
  for (let t2 = 0; t2 < Q.value.length; t2++) e3.push(Q.value[t2].showName), l2.push(Q.value[t2].serverPath);
73
73
  y(z.pageContext.entity, U, l2.join(",")), y(z.pageContext.entity, B, e3.join(",")), l2.length > 0 && (R.value = "");
74
- }, ae = l(null), ne = l(null);
74
+ }, ne = l(null), ue = l(null);
75
75
  return o(() => {
76
76
  S.$on(J.value + "-pickFileDone", (e3) => {
77
77
  L.value.pickFileDone(e3);
78
78
  }), i(() => {
79
79
  const e3 = h(A, U), l2 = { showName: h(A, B), serverPath: e3 };
80
- C(l2, z.pageContext, z.configure, { formItemRef: ae.value, componentRef: L.value, titleRef: ne.value, value: l2, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
80
+ C(l2, z.pageContext, z.configure, { formItemRef: ne.value, componentRef: L.value, titleRef: ue.value, value: l2, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
81
81
  });
82
82
  }), a(() => {
83
83
  S.$off(J.value + "-pickFileDone");
84
- }), j2({ addRequiredClass: function() {
85
- R.value = T();
84
+ }), _2({ addRequiredClass: function() {
85
+ R.value = N();
86
86
  } }), (e3, l2) => {
87
87
  const t2 = n("el-form-item");
88
- return D.value.tittleShow ? (s(), u(t2, { key: 0, ref_key: "formItemRef", ref: ae, required: D.value.required, class: d(f(q) + (R.value ? " " + R.value : "")), "label-width": D.value.labelWidth, style: p(f(O)) }, m({ default: v(() => [M.value ? (s(), u(f(P), { key: 0, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === D.value.state, displayType: D.value.displayType, accept: D.value.accept, multiple: D.value.multiple, placeholder: D.value.placeholder, limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "disabled-no-preview": D.value.disabledNoPreview, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: f(G), "on-success": te, "on-remove": oe, "before-upload": Z, "on-error": le, pageContext: e3.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 2 }, [D.value.tittleShow ? { name: "label", fn: v(() => [c("div", { ref_key: "titleRef", ref: ne, style: p({ ...f(W), ...f($) }), class: "amb-form-item-label" }, g(f(N)(D.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : M.value ? (s(), u(f(P), { key: 1, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === D.value.state, displayType: D.value.displayType, accept: D.value.accept, multiple: D.value.multiple, placeholder: D.value.placeholder, limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "disabled-no-preview": D.value.disabledNoPreview, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: f(G), "on-success": te, "on-remove": oe, "before-upload": Z, "on-error": le, pageContext: e3.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
88
+ return O.value.tittleShow ? (s(), u(t2, { key: 0, ref_key: "formItemRef", ref: ne, required: O.value.required, class: f(d(q) + (R.value ? " " + R.value : "")), "label-width": O.value.labelWidth, style: p(d(D)) }, m({ default: v(() => [M.value ? (s(), u(d(P), { key: 0, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: O.value.placeholder, limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: d(G), "on-success": oe, "on-remove": ie, "before-upload": Z, "on-error": le, "before-remove": te, pageContext: e3.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 2 }, [O.value.tittleShow ? { name: "label", fn: v(() => [c("div", { ref_key: "titleRef", ref: ue, style: p({ ...d(W), ...d($) }), class: "amb-form-item-label" }, g(d(j)(O.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : M.value ? (s(), u(d(P), { key: 1, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: O.value.placeholder, limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: d(G), "on-success": oe, "on-remove": ie, "before-upload": Z, "on-error": le, "before-remove": te, pageContext: e3.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
89
89
  };
90
90
  } });
91
91
  export {
92
- j as default
92
+ _ as default
93
93
  };
@@ -1,24 +1,24 @@
1
- import { defineComponent as e, ref as l, onMounted as t, nextTick as o, onUnmounted as a, resolveComponent as i, createBlock as u, createCommentVNode as n, openBlock as r, normalizeStyle as s, normalizeClass as p, unref as f, createSlots as d, withCtx as m, createElementVNode as c, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as a, resolveComponent as i, createBlock as n, createCommentVNode as u, openBlock as r, normalizeStyle as p, normalizeClass as s, unref as f, createSlots as d, withCtx as c, createElementVNode as m, toDisplayString as v } from "vue";
2
2
  import { getVariableValue as g, setVariableValue as h } from "../../../../utils/page-helper-util.js";
3
- import { handleAfterInitEvent as y, fileUploadBeforeUpload as C, fileUploadUploaded as w, fileUploadBeforeDelete as x, fileUploadDeleted as b } from "../../../../utils/events/event-util.js";
3
+ import { handleAfterInitEvent as y, fileUploadBeforeUpload as C, fileUploadBeforeDelete as x, fileUploadUploaded as w, fileUploadDeleted as b } from "../../../../utils/events/event-util.js";
4
4
  import k from "agilebuilder-ui/src/utils/request";
5
5
  import { FsImageUpload as I } from "agilebuilder-ui";
6
- import S from "../../../../utils/eventBus.js";
7
- import { $t as P } from "../../../../utils/i18n-util.js";
8
- import { addRequiredClassUtil as j } from "../../../../utils/common-util.js";
6
+ import j from "../../../../utils/eventBus.js";
7
+ import { $t as S } from "../../../../utils/i18n-util.js";
8
+ import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
9
9
  import { getRelativeBaseUrl as T } from "agilebuilder-ui/src/utils/common-util";
10
10
  const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
11
11
  var _a, _b, _c, _d, _e, _f, _g;
12
- const N = e2, z = l(null), R = N.configure.runtime ? N.configure.runtime : {}, F = l(R.props ? R.props : {}), O = R.style, D = R.class, q = R.headerStyle, W = R.titleExceedStyle, $ = N.pageContext.entity ? N.pageContext.entity : {}, A = N.configure.props.base ? N.configure.props.base : {}, E = V(A.prop), U = V(A.propName);
13
- let B = l({});
12
+ const N = e2, O = t(null), z = N.configure.runtime ? N.configure.runtime : {}, R = t(z.props ? z.props : {}), D = z.style, F = z.class, q = z.headerStyle, W = z.titleExceedStyle, $ = N.pageContext.entity ? N.pageContext.entity : {}, A = N.configure.props.base ? N.configure.props.base : {}, E = V(A.prop), U = V(A.propName);
13
+ let B = t({});
14
14
  B.value.isShowWatermark = void 0 === ((_b = (_a = N.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = N.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", B.value.content = ((_e = (_d = N.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = N.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "";
15
- const G = N.pageContext.code, H = l(E ? G + "__" + E.join("__") : null), J = g($, E), K = l(null), L = l(false), M = l([]), Q = l({});
15
+ const G = N.pageContext.code, H = t(E ? G + "__" + E.join("__") : null), J = g($, E), K = t(null), L = t(false), M = t([]), Q = t({});
16
16
  function V(e3) {
17
17
  return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
18
18
  }
19
19
  function X(e3) {
20
20
  N.pageContext.fileuploadInfo || (N.pageContext.fileuploadInfo = []);
21
- return -1 === N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid) && N.pageContext.fileuploadInfo.push({ uuid: N.configure.uuid, label: P(F.value.title) }), C(e3);
21
+ return -1 === N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid) && N.pageContext.fileuploadInfo.push({ uuid: N.configure.uuid, label: S(R.value.title) }), e3.pageContext || (e3.pageContext = N.pageContext), e3.configure || (e3.configureObj = N.configure), C(e3);
22
22
  }
23
23
  function Y() {
24
24
  if (N.pageContext.fileuploadInfo && N.configure.uuid) {
@@ -29,60 +29,60 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
29
29
  function Z(e3) {
30
30
  Y();
31
31
  }
32
+ function ee(e3) {
33
+ return e3.pageContext || (e3.pageContext = N.pageContext), e3.configure || (e3.configureObj = N.configure), x(N.pageContext, N.configure, e3);
34
+ }
32
35
  !function(e3) {
33
36
  if (e3) {
34
- const l2 = e3.split(",");
35
- if (l2.length > 0) {
37
+ const t2 = e3.split(",");
38
+ if (t2.length > 0) {
36
39
  const e4 = T(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
37
- k.post(e4, l2).then((e5) => {
40
+ k.post(e4, t2).then((e5) => {
38
41
  M.value = [];
39
- const t2 = [], o2 = {};
42
+ const l2 = [], o2 = {};
40
43
  e5.forEach((e6) => {
41
44
  o2[e6.uuid] = e6;
42
45
  });
43
- for (let e6 = 0; e6 < l2.length; e6++) {
44
- const a2 = l2[e6];
45
- t2.push(o2[a2].fileName), M.value.push({ showName: o2[a2].fileName, serverPath: a2, fileSize: o2[a2].fileSize });
46
+ for (let e6 = 0; e6 < t2.length; e6++) {
47
+ const a2 = t2[e6];
48
+ l2.push(o2[a2].fileName), M.value.push({ showName: o2[a2].fileName, serverPath: a2, fileSize: o2[a2].fileSize });
46
49
  }
47
- "input" === F.value.displayType && (Q.value.showName = t2.join(","), Q.value.serverPath = l2.join(","));
50
+ "input" === R.value.displayType && (Q.value.showName = l2.join(","), Q.value.serverPath = t2.join(","));
48
51
  }).finally(() => {
49
52
  L.value = true;
50
53
  });
51
54
  } else L.value = true;
52
55
  } else M.value = [], Q.value = {}, L.value = true;
53
56
  }(J);
54
- const ee = (e3, l2, t2) => {
55
- var o2;
56
- Y(), te(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, w(N.pageContext, N.configure, o2);
57
+ const te = (e3, t2) => {
58
+ var l2;
59
+ Y(), oe(), l2 = { response: e3, uploadFile: t2 }, w(N.pageContext, N.configure, l2);
57
60
  }, le = (e3) => {
58
- const l2 = (t2 = { file: e3 }, x(N.pageContext, N.configure, t2));
59
61
  var t2;
60
- (l2 || void 0 === l2) && (te(), function(e4) {
61
- b(N.pageContext, N.configure, e4);
62
- }({ file: e3 }));
63
- }, te = () => {
64
- const e3 = [], l2 = [];
65
- if (F.value.limit && M.value.length > F.value.limit) {
66
- const e4 = M.value.length - F.value.limit;
67
- for (let l3 = 0; l3 < e4; l3++) M.value.shift();
62
+ oe(), t2 = { file: e3 }, b(N.pageContext, N.configure, t2);
63
+ }, oe = () => {
64
+ const e3 = [], t2 = [];
65
+ if (R.value.limit && M.value.length > R.value.limit) {
66
+ const e4 = M.value.length - R.value.limit;
67
+ for (let t3 = 0; t3 < e4; t3++) M.value.shift();
68
68
  }
69
- for (let t2 = 0; t2 < M.value.length; t2++) e3.push(M.value[t2].showName), l2.push(M.value[t2].serverPath);
70
- h(N.pageContext.entity, E, l2.join(",")), h(N.pageContext.entity, U, e3.join(",")), l2.length > 0 && (z.value = "");
71
- }, oe = l(null), ae = l(null);
72
- return t(() => {
73
- S.$on(H.value + "-pickFileDone", (e3) => {
69
+ for (let l2 = 0; l2 < M.value.length; l2++) e3.push(M.value[l2].showName), t2.push(M.value[l2].serverPath);
70
+ h(N.pageContext.entity, E, t2.join(",")), h(N.pageContext.entity, U, e3.join(",")), t2.length > 0 && (O.value = "");
71
+ }, ae = t(null), ie = t(null);
72
+ return l(() => {
73
+ j.$on(H.value + "-pickFileDone", (e3) => {
74
74
  K.value.pickFileDone(e3);
75
75
  }), o(() => {
76
- const e3 = g($, E), l2 = { showName: g($, U), serverPath: e3 };
77
- y(l2, N.pageContext, N.configure, { formItemRef: oe.value, componentRef: K.value, titleRef: ae.value, value: l2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
76
+ const e3 = g($, E), t2 = { showName: g($, U), serverPath: e3 };
77
+ y(t2, N.pageContext, N.configure, { formItemRef: ae.value, componentRef: K.value, titleRef: ie.value, value: t2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
78
78
  });
79
79
  }), a(() => {
80
- S.$off(H.value + "-pickFileDone");
80
+ j.$off(H.value + "-pickFileDone");
81
81
  }), _2({ addRequiredClass: function() {
82
- z.value = j();
83
- } }), (e3, l2) => {
84
- const t2 = i("el-form-item");
85
- return F.value.tittleShow ? (r(), u(t2, { key: 0, ref_key: "formItemRef", ref: oe, required: F.value.required, class: p(f(D) + (z.value ? " " + z.value : "")), "label-width": F.value.labelWidth, style: s(f(O)) }, d({ default: m(() => [L.value ? (r(), u(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: F.value.accept && Object.keys(F.value.accept).length > 0 ? F.value.accept : "image/*", disabled: "disabled" === F.value.state, displayType: F.value.displayType, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": ee, "on-remove": le, "before-upload": X, "on-error": Z, pageContext: e3.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : n("", true)]), _: 2 }, [F.value.tittleShow ? { name: "label", fn: m(() => [c("div", { ref_key: "titleRef", ref: ae, style: s({ ...f(q), ...f(W) }), class: "amb-form-item-label" }, v(f(P)(F.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : L.value ? (r(), u(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: F.value.accept, disabled: "disabled" === F.value.state, displayType: F.value.displayType, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": ee, "on-remove": le, "before-upload": X, "on-error": Z, pageContext: e3.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : n("", true);
82
+ O.value = P();
83
+ } }), (e3, t2) => {
84
+ const l2 = i("el-form-item");
85
+ return R.value.tittleShow ? (r(), n(l2, { key: 0, ref_key: "formItemRef", ref: ae, required: R.value.required, class: s(f(F) + (O.value ? " " + O.value : "")), "label-width": R.value.labelWidth, style: p(f(D)) }, d({ default: c(() => [L.value ? (r(), n(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: R.value.accept && Object.keys(R.value.accept).length > 0 ? R.value.accept : "image/*", disabled: "disabled" === R.value.state, displayType: R.value.displayType, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "sort-type": R.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e3.pageContext, "file-show-type": R.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true)]), _: 2 }, [R.value.tittleShow ? { name: "label", fn: c(() => [m("div", { ref_key: "titleRef", ref: ie, style: p({ ...f(q), ...f(W) }), class: "amb-form-item-label" }, v(f(S)(R.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : L.value ? (r(), n(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: R.value.accept, disabled: "disabled" === R.value.state, displayType: R.value.displayType, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "sort-type": R.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e3.pageContext, "file-show-type": R.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true);
86
86
  };
87
87
  } });
88
88
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.38-sit3",
3
+ "version": "2.3.38-sit4",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -49,7 +49,7 @@
49
49
  "@vitejs/plugin-vue-jsx": "^3.1.0",
50
50
  "@vue/eslint-config-prettier": "^8.0.0",
51
51
  "@vue/test-utils": "^2.4.4",
52
- "agilebuilder-ui": "1.1.94-sit3",
52
+ "agilebuilder-ui": "1.1.94-sit4",
53
53
  "axios": "^1.6.8",
54
54
  "cypress": "^13.6.6",
55
55
  "element-plus": "^2.6.1",