super-page-runtime 2.2.11 → 2.2.15

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.
@@ -328,7 +328,7 @@ function D(e2, t2) {
328
328
  }) : n2("保存时request不存在");
329
329
  });
330
330
  }
331
- function B(e2, n2, o2, i2, a2, r2, c2) {
331
+ function L(e2, n2, o2, i2, a2, r2, c2) {
332
332
  var _a;
333
333
  const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = P(n2, e2);
334
334
  let m2 = c2;
@@ -346,8 +346,8 @@ function B(e2, n2, o2, i2, a2, r2, c2) {
346
346
  const T2 = ee(e2);
347
347
  return f2.additionalParamMap = T2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
348
348
  }
349
- function L(e2, t2, s2, i2, a2, r2, u2, l2) {
350
- const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2, t2, i2, a2, r2, null, u2);
349
+ function B(e2, t2, s2, i2, a2, r2, u2, l2) {
350
+ const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = L(e2, t2, i2, a2, r2, null, u2);
351
351
  return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, i3, a3, r3) {
352
352
  const u3 = n(t3, r3);
353
353
  let l3, p3 = u3 + i3;
@@ -356,7 +356,7 @@ function L(e2, t2, s2, i2, a2, r2, u2, l2) {
356
356
  }(p2, d2, m2, s2, e2.entity.data, e2.isTest);
357
357
  }
358
358
  function V(e2, t2, s2, n2, o2, i2) {
359
- return L(e2, t2, s2, n2, o2, i2, null, null);
359
+ return B(e2, t2, s2, n2, o2, i2, null, null);
360
360
  }
361
361
  function W(t2, s2, n2, o2, i2) {
362
362
  const a2 = q(t2, s2, i2);
@@ -450,7 +450,7 @@ function J(e2, t2, s2, i2) {
450
450
  return new Promise((g3, C3) => {
451
451
  const b3 = t3.props.base.title, y3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
452
452
  p.confirm(u().t(y3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
453
- const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = B(e3, t3, i3, r3, l3, m3, null);
453
+ const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = L(e3, t3, i3, r3, l3, m3, null);
454
454
  p2.tableName = f3;
455
455
  let d4 = n(u2, e3.isTest) + s3;
456
456
  d4 = o(d4, a2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
@@ -835,7 +835,7 @@ function le(e2, s2, o2) {
835
835
  const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
836
836
  e3.rules = i4;
837
837
  const a3 = { runtime: { events: e3.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
838
- y(null, e3, a3, "load"), e3.canClick = true, o3(t3);
838
+ y(null, e3, a3, "afterFormLoad"), e3.canClick = true, o3(t3);
839
839
  }).catch((t3) => {
840
840
  e3.canClick = true, i3(t3);
841
841
  });
@@ -871,7 +871,7 @@ export {
871
871
  le as getFormData,
872
872
  ae as getRemoveSigner,
873
873
  V as getSaveFormRequest,
874
- L as getSaveFormRequestWithRow,
874
+ B as getSaveFormRequestWithRow,
875
875
  oe as getTaskInformitions,
876
876
  ce as isVisibleWorkflowButton,
877
877
  z as judgeDataNumber,
@@ -195,6 +195,7 @@ function formatVariableValue(t, e) {
195
195
  const o = t.entity ? t.entity : {}, n = getParamNames(e);
196
196
  for (const t2 in n) {
197
197
  const a = n[t2], r = getValueFromVariable(o, a);
198
+ if (r && "[object Date]" === Object.prototype.toString.call(r)) return dayjs(r).format("YYYY-MM-DD hh:mm:ss");
198
199
  e = e.replace(a, null == r ? "" : r);
199
200
  }
200
201
  return e;
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as i, nextTick as l, resolveComponent as o, createElementBlock as r, openBlock as u, createVNode as s, normalizeClass as n, normalizeStyle as a, unref as p, withCtx as c, createCommentVNode as m, toDisplayString as f, Fragment as g, renderList as d, createBlock as y } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as i, nextTick as l, resolveComponent as o, createElementBlock as r, openBlock as u, createVNode as s, normalizeClass as n, normalizeStyle as a, unref as m, withCtx as p, createCommentVNode as c, toDisplayString as f, Fragment as g, renderList as d, createBlock as y } from "vue";
2
2
  import b from "../../object-render.vue.js";
3
3
  import "../../../../utils/global-refs.js";
4
4
  import "agilebuilder-ui/src/utils/common-util";
@@ -6,18 +6,18 @@ import "agilebuilder-ui/src/utils/util";
6
6
  import "agilebuilder-ui/src/utils/request";
7
7
  import "dayjs";
8
8
  import "agilebuilder-ui/src/utils/calculator/calculator-util";
9
- import { handleAfterInitEvent as v } from "../../../../utils/events/event-util.js";
9
+ import { handleFormEvent as v } from "../../../../utils/events/event-util.js";
10
10
  const x = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
11
11
  const x2 = e2;
12
12
  x2.configure.items || (x2.configure.items = []);
13
13
  const C = x2.configure.runtime ? x2.configure.runtime : {}, j = C.props ? C.props : {}, h = t(C.style ? C.style : {}), _ = C.class, k = t(C.titleStyle ? C.titleStyle : {}), w = t(null);
14
14
  return i(() => {
15
15
  l(() => {
16
- v(null, x2.pageContext, x2.configure, { componentRef: w.value, entity: x2.pageContext.entity.data, pageData: x2.pageContext.entity.page });
16
+ v(null, x2.pageContext, x2.configure, "afterFormLoad", { componentRef: w.value, entity: x2.pageContext.entity.data, pageData: x2.pageContext.entity.page });
17
17
  });
18
18
  }), (e3, t2) => {
19
19
  const i2 = o("el-form");
20
- return u(), r("div", null, [s(i2, { ref_key: "thisRef", ref: w, "label-width": p(j).labelWidth, "label-position": p(j).labelPosition, size: p(j).componentSize, style: a(h.value), class: n(p(_)) }, { default: c(() => [p(j).formTitle ? (u(), r("div", { key: 0, class: "amb-widget-form-title", style: a(k.value) }, f(p(j).formTitle), 5)) : m("", true), (u(true), r(g, null, d(e3.configure.items, (t3, i3) => (u(), y(b, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
20
+ return u(), r("div", null, [s(i2, { ref_key: "thisRef", ref: w, "label-width": m(j).labelWidth, "label-position": m(j).labelPosition, size: m(j).componentSize, style: a(h.value), class: n(m(_)) }, { default: p(() => [m(j).formTitle ? (u(), r("div", { key: 0, class: "amb-widget-form-title", style: a(k.value) }, f(m(j).formTitle), 5)) : c("", true), (u(true), r(g, null, d(e3.configure.items, (t3, i3) => (u(), y(b, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
21
21
  };
22
22
  } });
23
23
  export {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, createVNode as u, unref as s } from "vue";
2
- import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as E } from "../../../../utils/events/event-util.js";
3
- import { getBaseUrl as D, getListCode as O, getRealRestApiPath as k, isWorkflowPage as I, isVariableInvalidValue as T } from "../../../../utils/common-util.js";
2
+ import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as y, getEventNameByType as C, getEventFuncByType as x, getHandleEvent as E } from "../../../../utils/events/event-util.js";
3
+ import { getBaseUrl as D, getListCode as k, getRealRestApiPath as O, isWorkflowPage as I, isVariableInvalidValue as T } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as R, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
6
6
  import { getOperationButtons as P, popupToPage as U } from "../../../../utils/table-utils.js";
@@ -21,15 +21,15 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
21
21
  const e3 = q.systemCode, t2 = q.code;
22
22
  let n2 = G.props && G.props.dataOrigin && "[]" !== G.props.dataOrigin.sqlFilterCondition ? G.props.dataOrigin.sqlFilterCondition : null;
23
23
  null == n2 && (n2 = []);
24
- const i2 = { isSql: true, rowKeyProp: G.props.dataOrigin.principalLinkage, extraParam: { beanName: q.beanName, functionCode: t2 + ".listData", tableName: Z, systemCode: e3, pageCode: q.code, pageVersion: q.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: me, esc: Se }, indexContinuous: !(!G.props || !G.props.otherSettings) && G.props.otherSettings.serialNumberContinuous, initSearch: !G.props || false !== G.props.dataOrigin.initializationQuery, resizeHeight: ke, pageCode: q.code, pageVersion: q.version, additionalParamMap: R(q), showOverflowTooltip: !(!G.props || !G.props.otherSettings || void 0 !== G.props.otherSettings.isBreakLine && false !== G.props.otherSettings.isBreakLine), isEnableEnterEvent: G.props && G.props.otherSettings && G.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(G.props && G.props.otherSettings && G.props.otherSettings.isWithDataPermission) && G.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: I(q), tableClass: K, tableStyle: J, pageContext: q, configureObj: G, backendUrl: ee, cellStyleRender: Ae, rowStyleRender: _e, titleStyleRender: He };
24
+ const i2 = { isSql: true, rowKeyProp: G.props.dataOrigin.principalLinkage, extraParam: { beanName: q.beanName, functionCode: t2 + ".listData", tableName: Z, systemCode: e3, pageCode: q.code, pageVersion: q.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: me, esc: Se }, indexContinuous: !(!G.props || !G.props.otherSettings) && G.props.otherSettings.serialNumberContinuous, initSearch: !G.props || false !== G.props.dataOrigin.initializationQuery, resizeHeight: Oe, pageCode: q.code, pageVersion: q.version, additionalParamMap: R(q), showOverflowTooltip: !(!G.props || !G.props.otherSettings || void 0 !== G.props.otherSettings.isBreakLine && false !== G.props.otherSettings.isBreakLine), isEnableEnterEvent: G.props && G.props.otherSettings && G.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(G.props && G.props.otherSettings && G.props.otherSettings.isWithDataPermission) && G.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: I(q), tableClass: K, tableStyle: J, pageContext: q, configureObj: G, backendUrl: ee, cellStyleRender: Ae, rowStyleRender: _e, titleStyleRender: He };
25
25
  (function(e4) {
26
26
  const t3 = [];
27
27
  e4.operations || (e4.operations = {});
28
28
  P(q, G, t3, he), e4.operations.operation = t3;
29
29
  })(i2), function(e4) {
30
- G.props && G.props.dataOrigin && G.props.dataOrigin.sortFields && (e4.initSortInfo = [], this.colSetting.options.sortFields.forEach((t3) => {
31
- const n3 = { order: t3.sortOrder };
32
- n3.prop = t3.propDbName, e4.initSortInfo.push(n3);
30
+ G.props && G.props.dataOrigin && G.props.dataOrigin.sortField && (e4.initSortInfo = [], G.props.dataOrigin.sortField.forEach((t3) => {
31
+ const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
32
+ n3.prop = t3.name, e4.initSortInfo.push(n3);
33
33
  }));
34
34
  }(i2), G.props.linkages && G.props.linkages.length > 0 && (G.props.linkages.forEach((e4) => {
35
35
  const t3 = $(e4.fieldName);
@@ -45,10 +45,10 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
45
45
  if (0 === e4.length) We();
46
46
  else {
47
47
  const t3 = ze();
48
- e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (Oe(t3), We()) : ne.forEach((t4) => {
48
+ e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (ke(t3), We()) : ne.forEach((t4) => {
49
49
  o(() => W.pageContext.entity.page[t4], () => {
50
50
  const t5 = ze();
51
- 0 === e4.length ? Oe(t5) : (e4 = e4.filter((e5) => T(t5, e5)), 0 === e4.length && Oe(t5));
51
+ 0 === e4.length ? ke(t5) : (e4 = e4.filter((e5) => T(t5, e5)), 0 === e4.length && ke(t5));
52
52
  }, { immediate: true });
53
53
  });
54
54
  }
@@ -58,7 +58,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
58
58
  if (t3.treeTable) {
59
59
  let n3;
60
60
  const o2 = t3.rowKey;
61
- if (n3 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e4.parentProp = n3, e4.parentProp) {
61
+ if (n3 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e4.parentProp = n3, t3.checkStrictly && (e4.checkStrictly = t3.checkStrictly), e4.parentProp) {
62
62
  const o3 = t3.lazy, i3 = t3.defaultExpandAll;
63
63
  e4.lazy = null == o3 || o3, e4.defaultExpandAll = null != i3 && i3;
64
64
  const a2 = { parentProp: n3, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
@@ -74,9 +74,9 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
74
74
  }();
75
75
  const ie = t(), ae = function() {
76
76
  let e3 = ee + "/dsc/commons/list";
77
- e3 && (e3 = k(e3, X, Y, q.isTest));
77
+ e3 && (e3 = O(e3, X, Y, q.isTest));
78
78
  return e3;
79
- }(), le = O(q.code, q.version, G.uuid), re = q.code + "_" + le, ue = t([]), se = q.entity.page, ce = t({ data: [] }), pe = q.superGridItems, de = pe ? pe[G.uuid] : null, fe = t(false), ge = z;
79
+ }(), le = k(q.code, q.version, G.uuid), re = q.code + "_" + le, ue = t([]), se = q.entity.page, ce = t({ data: [] }), pe = q.superGridItems, de = pe ? pe[G.uuid] : null, fe = t(false), ge = z;
80
80
  function me({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
81
81
  ve(null, null, n2, t2, e3);
82
82
  }
@@ -93,9 +93,9 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
93
93
  function he(e3) {
94
94
  if (!e3) return;
95
95
  let t2;
96
- const n2 = y(e3.events, "click");
96
+ const n2 = C(e3.events, "click");
97
97
  if (n2) {
98
- if (te.value[n2] = e3, "lineEditSave" === n2 ? t2 = ve : "restoreEdit" === n2 ? t2 = Ce : "lineEditUpdate" === n2 ? t2 = ye : "lineEditDelete" === n2 && (t2 = Ee), !t2) {
98
+ if (te.value[n2] = e3, "lineEditSave" === n2 ? t2 = ve : "restoreEdit" === n2 ? t2 = ye : "lineEditUpdate" === n2 ? t2 = Ce : "lineEditDelete" === n2 && (t2 = Ee), !t2) {
99
99
  t2 = x(q, e3.events, "click");
100
100
  }
101
101
  } else te.value[e3.uuid] = e3, t2 = Te;
@@ -118,9 +118,9 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
118
118
  });
119
119
  }
120
120
  function Se({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
121
- Ce(null, null, n2, t2, e3);
121
+ ye(null, null, n2, t2, e3);
122
122
  }
123
- function Ce(e3, t2, n2, o2, i2) {
123
+ function ye(e3, t2, n2, o2, i2) {
124
124
  const a2 = te.value.restoreEdit, l2 = G;
125
125
  a2.props.base.tableUuid = l2.uuid;
126
126
  const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
@@ -130,7 +130,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
130
130
  }) : ie.value.restoreRow(i2, le);
131
131
  d(q, G, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
132
132
  }
133
- function ye(e3, t2, n2, o2, i2) {
133
+ function Ce(e3, t2, n2, o2, i2) {
134
134
  const a2 = te.value.lineEditUpdate, l2 = G;
135
135
  a2.props.base.tableUuid = l2.uuid;
136
136
  const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
@@ -166,11 +166,11 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
166
166
  q.editData = null;
167
167
  });
168
168
  else {
169
- Ce(e3, t2, n2, o2, i2);
169
+ ye(e3, t2, n2, o2, i2);
170
170
  d(q, G, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
171
171
  }
172
172
  }
173
- function Oe(e3) {
173
+ function ke(e3) {
174
174
  if (!q.dataTypeMaps) return;
175
175
  const t2 = q.dataTypeMaps;
176
176
  let n2 = [];
@@ -192,7 +192,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
192
192
  }
193
193
  ie.value.toolbarRefresh(null, null, n2);
194
194
  }
195
- function ke(e3) {
195
+ function Oe(e3) {
196
196
  const t2 = Ie();
197
197
  if (t2) {
198
198
  let n2 = 0;
@@ -240,7 +240,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
240
240
  S(q, G, { row: e3, column: t2, event: n2 });
241
241
  }
242
242
  function $e(e3, t2) {
243
- C(q, G, { column: e3, event: t2 });
243
+ y(q, G, { column: e3, event: t2 });
244
244
  }
245
245
  function Fe() {
246
246
  ue.value = [];
@@ -267,7 +267,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
267
267
  function We() {
268
268
  ne.forEach((e3) => {
269
269
  o(() => W.pageContext.entity.page[e3], () => {
270
- Oe(ze());
270
+ ke(ze());
271
271
  });
272
272
  });
273
273
  }
@@ -284,7 +284,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
284
284
  }), o(() => W.pageContext.searchFormData, (e3) => {
285
285
  ce.value.data = e3;
286
286
  }), o(() => W.pageContext.entity.data, (e3) => {
287
- Oe(W.pageContext.entity.data);
287
+ ke(W.pageContext.entity.data);
288
288
  }), i(() => {
289
289
  B.$off(re + "-close-component-page-dialog"), B.$off(re + "_close-dialog-get-entity"), B.$off(le + "-pickFileDone"), B.$off(le + "-scanDone");
290
290
  }), H2({ refresh: function(e3, t2, n2, o2) {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as i, resolveComponent as a, createBlock as s, openBlock as n, normalizeStyle as p, normalizeClass as u, unref as r, withCtx as m, createVNode as f, createElementBlock as c, createCommentVNode as d, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as i, onUnmounted as o, resolveComponent as a, createBlock as s, openBlock as n, normalizeStyle as u, normalizeClass as p, unref as r, withCtx as m, createVNode as f, createElementBlock as c, createCommentVNode as d, toDisplayString as v } from "vue";
2
2
  import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
3
  import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
4
4
  import x from "agilebuilder-ui/src/utils/request";
@@ -13,9 +13,9 @@ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
13
13
  const t2 = w2.pageContext.backendUrl;
14
14
  x.post(t2 + "/common/fs-upload/search-file-names", e3).then((t3) => {
15
15
  const l2 = [];
16
- for (let o2 = 0; o2 < e3.length; o2++) {
17
- const i2 = e3[o2];
18
- l2.push(t3[i2]), W.value.push({ showName: t3[i2], serverPath: i2 });
16
+ for (let i2 = 0; i2 < e3.length; i2++) {
17
+ const o2 = e3[i2];
18
+ l2.push(t3[o2]), W.value.push({ showName: t3[o2], serverPath: o2 });
19
19
  }
20
20
  "input" === j.value.displayType && (B.value.showName = l2.join(","), B.value.serverPath = e3.join(","));
21
21
  });
@@ -33,21 +33,25 @@ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
33
33
  J();
34
34
  }, J = () => {
35
35
  const e3 = [], t2 = [];
36
+ if (j.value.limit && W.value.length > j.value.limit) {
37
+ const e4 = W.value.length - j.value.limit;
38
+ for (let t3 = 0; t3 < e4; t3++) W.value.shift();
39
+ }
36
40
  for (let l2 = 0; l2 < W.value.length; l2++) e3.push(W.value[l2].showName), t2.push(W.value[l2].serverPath);
37
41
  y(w2.pageContext.entity, F, t2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
38
42
  }, K = t(null), L = t(null);
39
43
  return l(() => {
40
44
  k.$on(D.value + "-pickFileDone", (e3) => {
41
45
  $.value.pickFileDone(e3);
42
- }), o(() => {
46
+ }), i(() => {
43
47
  const e3 = h(O, F), t2 = { showName: h(O, N), serverPath: e3 };
44
48
  g(t2, w2.pageContext, w2.configure, { formItemRef: K.value, componentRef: $.value, titleRef: L.value, value: t2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
45
49
  });
46
- }), i(() => {
50
+ }), o(() => {
47
51
  k.$off(D.value + "-pickFileDone");
48
52
  }), (e3, t2) => {
49
53
  const l2 = a("el-form-item");
50
- return j.value.tittleShow ? (n(), s(l2, { key: 0, ref_key: "formItemRef", ref: K, required: j.value.required, class: u(r(T)), "label-width": j.value.labelWidth, style: p(r(R)) }, { label: m(() => [j.value.tittleShow ? (n(), c("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...r(z), ...r(I) }) }, v(r(_)(j.value.title)), 5)) : d("", true)]), default: m(() => [f(r(b), { ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (n(), s(r(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"]));
54
+ return j.value.tittleShow ? (n(), s(l2, { key: 0, ref_key: "formItemRef", ref: K, required: j.value.required, class: p(r(T)), "label-width": j.value.labelWidth, style: u(r(R)) }, { label: m(() => [j.value.tittleShow ? (n(), c("div", { key: 0, ref_key: "titleRef", ref: L, style: u({ ...r(z), ...r(I) }) }, v(r(_)(j.value.title)), 5)) : d("", true)]), default: m(() => [f(r(b), { ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (n(), s(r(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"]));
51
55
  };
52
56
  } });
53
57
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.11",
3
+ "version": "2.2.15",
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.1.7",
51
+ "agilebuilder-ui": "1.1.8",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",