super-page-runtime 2.3.0 → 2.3.2-sit1

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.
@@ -1,35 +1,51 @@
1
- import { defineComponent as e, ref as t, onMounted as l, nextTick as a, computed as o, resolveComponent as i, createBlock as u, openBlock as n, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as f, createVNode as g, createElementBlock as m, createCommentVNode as d, Fragment as c, createTextVNode as v, toDisplayString as y } from "vue";
2
- import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { handleAfterInitEvent as C, handleFormEvent as h } from "../../../../utils/events/event-util.js";
4
- import b from "../common/title-suffix-element.vue.js";
5
- import { $t as k } from "../../../../utils/i18n-util.js";
6
- import { setVariableValue as S, getVariableValue as R } from "../../../../utils/page-helper-util.js";
7
- const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
8
- const _2 = e2, j = _2.pageContext.entity ? _2.pageContext.entity : {};
9
- j.data || (j.data = {});
10
- const T = j.data, w = j.page;
11
- let z = x(_2.pageContext, _2.configure);
12
- const q = z.length > 0 ? z[z.length - 1] : _2.configure.uuid, I = _2.configure.runtime ? _2.configure.runtime : {}, F = t(I.props ? I.props : {}), M = I.style, D = I.class, E = I.headerStyle, O = I.titleExceedStyle, V = t(null), W = t(null), A = t(null);
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as p, watch as i, resolveComponent as n, createBlock as a, openBlock as r, normalizeStyle as u, normalizeClass as s, unref as d, withCtx as f, createVNode as c, createElementBlock as m, createCommentVNode as g, Fragment as v, createTextVNode as y, toDisplayString as x } from "vue";
2
+ import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
+ import { handleAfterInitEvent as S, handleFormEvent as h } from "../../../../utils/events/event-util.js";
4
+ import F from "../common/title-suffix-element.vue.js";
5
+ import { $t as b } from "../../../../utils/i18n-util.js";
6
+ import { setVariableValue as k, getVariableValue as R, getValueFromVariable as _ } from "../../../../utils/page-helper-util.js";
7
+ const j = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
8
+ const j2 = e2, I = t([]), T = j2.pageContext.entity ? j2.pageContext.entity : {};
9
+ T.data || (T.data = {});
10
+ const w = T.data, z = T.page;
11
+ let q = C(j2.pageContext, j2.configure);
12
+ const M = q.length > 0 ? q[q.length - 1] : j2.configure.uuid, O = j2.configure.runtime ? j2.configure.runtime : {}, $ = t(O.props ? O.props : {}), D = O.style, E = O.class, V = O.headerStyle, W = O.titleExceedStyle;
13
+ O.props.deptScope && ("field" == O.props.deptScope && O.props.deptScopeField ? (N(), function(e3, t2) {
14
+ if (0 === e3.indexOf("${fixed.")) return;
15
+ const l2 = e3.match(/\${(.*?)}/);
16
+ if (!l2) return;
17
+ const o2 = l2 ? l2[1].split(".") : [];
18
+ o2 && o2.length > 0 && i(() => o2.reduce((e4, t3) => e4[t3], j2.pageContext.entity), (e4, l3) => {
19
+ t2(e4, l3);
20
+ });
21
+ }(O.props.deptScopeField, (e3, t2) => {
22
+ N();
23
+ })) : "depts" == O.props.deptScope && O.props.deptScopeCodes && (I.value = O.props.deptScopeCodes.split(",")));
24
+ const A = t(null), B = t(null), G = t(null);
13
25
  l(() => {
14
- a(() => {
15
- const e3 = T ? T[q] : null;
16
- C(e3, _2.pageContext, _2.configure, { formItemRef: V.value, componentRef: W.value, titleRef: A.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
26
+ o(() => {
27
+ const e3 = w ? w[M] : null;
28
+ S(e3, j2.pageContext, j2.configure, { formItemRef: A.value, componentRef: B.value, titleRef: G.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
17
29
  });
18
30
  });
19
- const B = o({ get: () => R(j, z), set(e3) {
20
- S(j, z, e3);
21
- } }), G = F.value.autoSetFields ? F.value.autoSetFields : [];
22
- function H(e3, t2) {
23
- e3 === q && h(t2, _2.pageContext, _2.configure, "change");
31
+ const H = p({ get: () => R(T, q), set(e3) {
32
+ k(T, q, e3);
33
+ } }), J = $.value.autoSetFields ? $.value.autoSetFields : [];
34
+ function K(e3, t2) {
35
+ e3 === M && h(t2, j2.pageContext, j2.configure, "change");
36
+ }
37
+ function L() {
38
+ h(null, j2.pageContext, j2.configure, "click");
24
39
  }
25
- function J() {
26
- h(null, _2.pageContext, _2.configure, "click");
40
+ function N() {
41
+ const e3 = _(j2.pageContext.entity, O.props.deptScopeField);
42
+ I.value = e3 ? e3.split(",") : [];
27
43
  }
28
44
  return (e3, t2) => {
29
- const l2 = i("OrganizationInput"), a2 = i("el-form-item");
30
- return n(), u(a2, { ref_key: "formItemRef", ref: V, required: F.value.required, class: p(s(D)), "label-width": F.value.labelWidth, style: r(s(M)) }, { label: f(() => [F.value.tittleShow ? (n(), m("div", { key: 0, ref_key: "titleRef", ref: A, style: r({ ...s(E), ...s(O) }) }, [F.value.prefixType ? (n(), u(b, { key: 0, pageContext: e3.pageContext, property: F.value }, null, 8, ["pageContext", "property"])) : (n(), m(c, { key: 1 }, [v(y(s(k)(F.value.title)), 1)], 64))], 4)) : d("", true)]), default: f(() => [g(l2, { ref_key: "componentRef", ref: W, disabled: "disabled" == F.value.state, multiple: F.value.multiple, treeType: F.value.treeType, value: B.value, models: s(T), pageModels: s(w), fields: s(G), size: F.value.size, separator: F.value.separator, onSetValue: H, onShowTree: J }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
45
+ const l2 = n("OrganizationInput"), o2 = n("el-form-item");
46
+ return r(), a(o2, { ref_key: "formItemRef", ref: A, required: $.value.required, class: s(d(E)), "label-width": $.value.labelWidth, style: u(d(D)) }, { label: f(() => [$.value.tittleShow ? (r(), m("div", { key: 0, ref_key: "titleRef", ref: G, style: u({ ...d(V), ...d(W) }) }, [$.value.prefixType ? (r(), a(F, { key: 0, pageContext: e3.pageContext, property: $.value }, null, 8, ["pageContext", "property"])) : (r(), m(v, { key: 1 }, [y(x(d(b)($.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [c(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" == $.value.state, multiple: $.value.multiple, treeType: $.value.treeType, value: H.value, models: d(w), departmentInfo: I.value, limitFilterColumn: $.value.limitFilterColumn, pageModels: d(z), fields: d(J), size: $.value.size, separator: $.value.separator, onSetValue: K, onShowTree: L }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
31
47
  };
32
48
  } });
33
49
  export {
34
- _ as default
50
+ j as default
35
51
  };
@@ -1,75 +1,75 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as c, normalizeClass as s, unref as v, withCtx as f, createVNode as y, createCommentVNode as g, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
1
+ import { defineComponent as e, ref as t, computed as o, onMounted as l, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as v, withCtx as f, createVNode as y, createCommentVNode as g, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
2
  import { SuperIcon as T } from "agilebuilder-ui";
3
3
  import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
- import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as w, getVariableValue as b } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
5
  import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as R, analysisScanValue as D, setScanAnalysisValue as O } from "../../../../utils/form/scan-util.js";
7
- import P from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
9
- import z from "../../../../utils/eventBus.js";
10
- import { $t as L } from "../../../../utils/i18n-util.js";
11
- const M = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: M2 }) {
6
+ import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as D } from "../../../../utils/form/scan-util.js";
7
+ import M from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as N } from "agilebuilder-ui/src/utils/common-util";
9
+ import P from "../../../../utils/eventBus.js";
10
+ import { $t as q } from "../../../../utils/i18n-util.js";
11
+ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
12
12
  var _a, _b, _c;
13
- const N = e2, B = N.pageContext.entity ? N.pageContext.entity : {}, F = t("text");
14
- let J = k(N.pageContext, N.configure);
15
- if (N.pageContext.modelFieldsMap) {
16
- const e3 = V(J, N.pageContext);
17
- e3 && (F.value = h(e3.dataType) ? "number" : "text");
13
+ const J = e2, L = J.pageContext.entity ? J.pageContext.entity : {}, B = t("text");
14
+ let F = k(J.pageContext, J.configure);
15
+ if (J.pageContext.modelFieldsMap) {
16
+ const e3 = w(F, J.pageContext);
17
+ e3 && (B.value = V(e3.dataType) ? "number" : "text");
18
18
  }
19
- const $ = t(q()), A = N.pageContext.code, E = t(J && J.length > 0 ? A + "__" + J.join("__") : null), U = l({ get: () => b(B, J), set(e3) {
20
- e3 = e3.trim(), w(B, J, e3);
21
- } }), W = t(null), G = t(null), H = t(null), K = N.configure.runtime ? N.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
19
+ const $ = t(N()), A = J.pageContext.code, E = t(F && F.length > 0 ? A + "__" + F.join("__") : null), U = o({ get: () => b(L, F), set(e3) {
20
+ e3 = e3.trim(), h(L, F, e3);
21
+ } }), W = t(null), G = t(null), H = t(null), K = J.configure.runtime ? J.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
22
22
  let Y = false;
23
23
  const Z = window.localStorage.getItem("auth_source");
24
24
  Z && "dingtalk" === Z && (Y = true);
25
25
  let ee = "";
26
26
  ee = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
27
- const te = !(!$.value || !ee || "app" !== ee), le = t(!!((te || Y) && X.value || $.value && X.value && "https:" === window.location.protocol));
28
- let oe = {};
27
+ const te = !(!$.value || !ee || "app" !== ee), oe = t(!!((te || Y) && X.value || $.value && X.value && "https:" === window.location.protocol));
28
+ let le = {};
29
29
  ((_b = Q.value.scan) == null ? void 0 : _b.enable) && ((_c = Q.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Q.value.scan.ruleList).then((e3) => {
30
- oe = e3;
30
+ le = e3;
31
31
  }), u(() => U.value, (e3) => {
32
32
  e3 = e3.trim();
33
- const t2 = D(e3, oe);
34
- t2 && O(N.pageContext, t2.scanSet, t2.params);
33
+ const t2 = O(e3, le);
34
+ t2 && D(J.pageContext, t2.scanSet, t2.params);
35
35
  }));
36
36
  const ne = K.style, ae = K.class, ue = K.headerStyle, ie = K.titleExceedStyle;
37
37
  function re(e3) {
38
- return w(B, J, e3);
38
+ return h(L, F, e3);
39
39
  }
40
- o(() => {
41
- z.$on(E.value + "-scanDone", (e3) => {
42
- re(e3.result), _(e3.result, N.pageContext, N.configure, "afterScanDone");
40
+ l(() => {
41
+ P.$on(E.value + "-scanDone", (e3) => {
42
+ re(e3.result), _(e3.result, J.pageContext, J.configure, "afterScanDone");
43
43
  }), n(() => {
44
44
  var _a2;
45
45
  const e3 = U.value;
46
- S(e3, N.pageContext, N.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page }), le.value && ((_a2 = Q.value.scan) == null ? void 0 : _a2.autoOpen) && ce();
46
+ S(e3, J.pageContext, J.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: J.pageContext.entity.data, pageData: J.pageContext.entity.page }), oe.value && ((_a2 = Q.value.scan) == null ? void 0 : _a2.autoOpen) && se();
47
47
  });
48
48
  }), a(() => {
49
- z.$off(E.value + "-scanDone");
49
+ P.$off(E.value + "-scanDone");
50
50
  });
51
51
  const pe = t(false);
52
- function ce() {
52
+ function se() {
53
53
  if (te || Y) {
54
- const e3 = { type: "scan", componentId: E.value, systemCode: N.pageContext.systemCode };
55
- Y && (e3.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e3), "*");
54
+ const e3 = { type: "scan", componentId: E.value, systemCode: J.pageContext.systemCode };
55
+ Y && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
56
56
  } else if ($.value) if ("https:" === window.location.protocol) pe.value = true;
57
57
  else {
58
- const e3 = { type: "scan", componentId: E.value, systemCode: N.pageContext.systemCode };
58
+ const e3 = { type: "scan", componentId: E.value, systemCode: J.pageContext.systemCode };
59
59
  window.parent.postMessage(JSON.stringify(e3), "*");
60
60
  }
61
61
  else pe.value = true;
62
62
  }
63
- function se(e3) {
63
+ function ce(e3) {
64
64
  pe.value = false, re(e3);
65
65
  }
66
- return M2({ getValue: function() {
67
- return b(B, J);
68
- }, setValue: re, scanClick: ce }), (e3, t2) => {
69
- const l2 = i("el-input"), o2 = i("scan-code-input-browser"), n2 = i("el-form-item");
70
- return p(), r(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: s(v(ae)), "label-width": Q.value.labelWidth, style: c(v(ne)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: c({ ...v(ue), ...v(ie) }) }, [Q.value.prefixType ? (p(), r(P, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(L)(Q.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: F.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "2" } : void 0, le.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [le.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ce()) })) : g("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), pe.value ? (p(), r(o2, { key: 0, onClose: se })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
66
+ return z2({ getValue: function() {
67
+ return b(L, F);
68
+ }, setValue: re, scanClick: se }), (e3, t2) => {
69
+ const o2 = i("el-input"), l2 = i("scan-code-input-browser"), n2 = i("el-form-item");
70
+ return p(), r(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: c(v(ae)), "label-width": Q.value.labelWidth, style: s(v(ne)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: s({ ...v(ue), ...v(ie) }) }, [Q.value.prefixType ? (p(), r(M, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(q)(Q.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(o2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: B.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(q)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(q)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(q)(Q.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => se()) })) : g("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(q)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), pe.value ? (p(), r(l2, { key: 0, onClose: ce })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
71
71
  };
72
72
  } });
73
73
  export {
74
- M as default
74
+ z as default
75
75
  };
@@ -1,27 +1,27 @@
1
1
  import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as v, createVNode as g, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
2
- import { setVariableValue as _, getVariableValue as k, getOptionDatasFromPage as w, queryOptionDatasources as S, autoSetAfterSelect as T } from "../../../../utils/page-helper-util.js";
2
+ import { setVariableValue as k, getVariableValue as w, getOptionDatasFromPage as _, queryOptionDatasources as S, autoSetAfterSelect as T } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent as R, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
5
5
  import z from "../common/title-suffix-element.vue.js";
6
6
  import { $t as I } from "../../../../utils/i18n-util.js";
7
- const M = { style: { float: "left" } }, q = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, O = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
8
- const P = e2, A = P.pageContext.entity ? P.pageContext.entity : {};
9
- let D = j(P.pageContext, P.configure);
10
- const W = P.configure.runtime ? P.configure.runtime : {}, E = W.style, F = W.class, U = W.headerStyle, $ = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = l({ get() {
11
- let e3 = k(A, D);
7
+ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, A = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
8
+ const O = e2, P = O.pageContext.entity ? O.pageContext.entity : {};
9
+ let D = j(O.pageContext, O.configure);
10
+ const W = O.configure.runtime ? O.configure.runtime : {}, E = W.style, F = W.class, U = W.headerStyle, $ = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = l({ get() {
11
+ let e3 = w(P, D);
12
12
  return null != e3 && (e3 += ""), B.value.multiple && (e3 = e3 ? e3.split(",") : []), e3;
13
13
  }, set(e3) {
14
- B.value.multiple && e3 && e3.length > 0 && !B.value.arrayValue && (e3 = e3.join(",")), _(A, D, e3);
15
- } }), H = t(B.value.options ? B.value.options : []), J = w(P.pageContext, P.configure);
14
+ B.value.multiple && e3 && e3.length > 0 && !B.value.arrayValue && (e3 = e3.join(",")), k(P, D, e3);
15
+ } }), H = t(B.value.options ? B.value.options : []), J = _(O.pageContext, O.configure);
16
16
  J.length > 0 && (H.value = J);
17
- const K = t(false), L = P.configure.props && P.configure.props.dataOrigin ? P.configure.props.dataOrigin : {}, N = L.optionValueSetType;
17
+ const K = t(false), L = O.configure.props && O.configure.props.dataOrigin ? O.configure.props.dataOrigin : {}, N = L.optionValueSetType;
18
18
  let Q = [];
19
19
  const X = B.value.optionconfigInfo ? B.value.optionconfigInfo : {};
20
20
  if ("dynamicData" == N || "dataTable" == N || "service" == N) {
21
21
  if ("remote" == L.filterType) {
22
22
  let e3;
23
23
  B.value.filterable = true, B.value.remote = true, B.value.remoteShowSuffix = true, B.value.remoteMethod = function(t2) {
24
- e3 !== t2 && (e3 = t2, K.value = true, S(P.pageContext, X, t2).then((e4) => {
24
+ e3 !== t2 && (e3 = t2, K.value = true, S(O.pageContext, X, t2).then((e4) => {
25
25
  K.value = false;
26
26
  }).then((e4) => {
27
27
  K.value = false;
@@ -30,14 +30,14 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
30
30
  }
31
31
  if (L.autoSets) for (let e3 of L.autoSets) e3.source && Q.push(e3);
32
32
  }
33
- P.configure && P.configure.props && P.configure.props.base && P.configure.props.base.optionProp && Q.push({ source: "label", target: P.configure.props.base.optionProp }), B.value.changeMethod = function(e3) {
33
+ O.configure && O.configure.props && O.configure.props.base && O.configure.props.base.optionProp && Q.push({ source: "label", target: O.configure.props.base.optionProp }), B.value.changeMethod = function(e3) {
34
34
  let t2, l2 = null;
35
35
  H.value && null != e3 && null != e3 && (l2 = H.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
36
- Q.length > 0 && T(P.configure, P.pageContext, Q, l2);
36
+ Q.length > 0 && T(O.configure, O.pageContext, Q, l2, [B.value.prop]);
37
37
  l2 && l2.length > 0 && (t2 = l2[0]);
38
38
  let o2 = {};
39
39
  t2 && (o2 = { extendParams: t2 });
40
- R(e3, P.pageContext, P.configure, "change", o2);
40
+ R(e3, O.pageContext, O.configure, "change", o2);
41
41
  };
42
42
  const Y = B.value.monitorFields, Z = [];
43
43
  if (Y) {
@@ -47,20 +47,20 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
47
47
  const l2 = t2.split(".");
48
48
  "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (Z.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
49
49
  }
50
- for (let t2 of e3) o(A[t2], () => {
50
+ for (let t2 of e3) o(P[t2], () => {
51
51
  oe();
52
52
  });
53
53
  }
54
54
  function ee() {
55
- let e3 = "";
56
- for (let t2 of Z) e3 += "_" + k(A, t2);
57
- return e3;
55
+ let e3 = [];
56
+ for (let t2 of Z) e3.push(w(P, t2));
57
+ return e3.join(",");
58
58
  }
59
59
  let te = ee(), le = false;
60
60
  function oe() {
61
61
  le && clearTimeout(le), le = setTimeout(function() {
62
62
  const e3 = ee();
63
- e3 != te && (te = e3, S(P.pageContext, X, void 0).then((e4) => {
63
+ e3 != te && (te = e3, X.watchAttrValue = e3, S(O.pageContext, X, void 0).then((e4) => {
64
64
  K.value = false;
65
65
  }));
66
66
  }, 200);
@@ -72,9 +72,9 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
72
72
  return u(() => {
73
73
  n(() => {
74
74
  const e3 = G.value;
75
- V(e3, P.pageContext, P.configure, { formItemRef: ae.value, componentRef: ue.value, titleRef: ne.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
75
+ V(e3, O.pageContext, O.configure, { formItemRef: ae.value, componentRef: ue.value, titleRef: ne.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
76
76
  });
77
- }), O2({ updateOptions: function(e3) {
77
+ }), A2({ updateOptions: function(e3) {
78
78
  H.value = e3 || [];
79
79
  } }), (e3, t2) => {
80
80
  const l2 = i("el-option"), o2 = i("el-select"), a2 = i("el-form-item");
@@ -82,5 +82,5 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
82
82
  };
83
83
  } });
84
84
  export {
85
- O as default
85
+ A as default
86
86
  };
package/dist/es/style.css CHANGED
@@ -442,7 +442,13 @@
442
442
  max-width: none;
443
443
  flex: auto;
444
444
  }
445
- }.runtime-page-container-tabs-view[data-v-9d724974] > .el-tabs__content > .el-tab-pane {
445
+ }.runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__header > .el-tabs__new-tab {
446
+ border: 0px !important;
447
+ }
448
+ .runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__header .el-tabs__item:has(.tab-hidden) {
449
+ display: none !important;
450
+ }
451
+ .runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__content > .el-tab-pane {
446
452
  display: flex;
447
453
  flex-direction: row;
448
454
  align-items: flex-start;
@@ -450,16 +456,16 @@
450
456
  flex-wrap: wrap;
451
457
  gap: var(--runtime-page-container-view-gap, 15px);
452
458
  }
453
- .runtime-page-container-tabs-view[data-v-9d724974] > .el-tabs__content > .el-tab-pane > div {
459
+ .runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__content > .el-tab-pane > div {
454
460
  width: 100%;
455
461
  }
456
- .runtime-page-container-tabs-view[data-v-9d724974] > .el-tabs__content > .el-tab-pane > div[style*="display: inline-block"] {
462
+ .runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__content > .el-tab-pane > div[style*="display: inline-block"] {
457
463
  width: auto;
458
464
  }
459
- .runtime-page-container-tabs-view[data-v-9d724974] > .el-tabs__content > .el-tab-pane > [style*="display: inline-block"] {
465
+ .runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__content > .el-tab-pane > [style*="display: inline-block"] {
460
466
  width: auto;
461
467
  }
462
- .runtime-page-container-tabs-view[data-v-9d724974] > .el-tabs__content > .el-tab-pane > .amb-design-item-default {
468
+ .runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__content > .el-tab-pane > .amb-design-item-default {
463
469
  display: flex;
464
470
  flex-direction: row;
465
471
  align-items: flex-start;
@@ -467,14 +473,17 @@
467
473
  flex-wrap: wrap;
468
474
  gap: var(--runtime-page-container-view-gap, 15px);
469
475
  }
470
- .runtime-page-container-tabs-view[data-v-9d724974] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div {
476
+ .runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div {
471
477
  width: 100%;
472
478
  }
473
- .runtime-page-container-tabs-view[data-v-9d724974] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[style*="display: inline-block"] {
479
+ .runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[style*="display: inline-block"] {
474
480
  width: auto;
475
481
  }
476
- .runtime-page-container-tabs-view[data-v-9d724974] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > [style*="display: inline-block"] {
482
+ .runtime-page-container-tabs-view[data-v-50669d0c] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > [style*="display: inline-block"] {
477
483
  width: auto;
484
+ }
485
+ .tab-hidden[data-v-50669d0c] {
486
+ display: none !important;
478
487
  }.yx-fixed-box-main[data-v-9b488f43]:has(.yx-fixed-box-container:empty) {
479
488
  display: none;
480
489
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.0",
3
+ "version": "2.3.2-sit1",
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.36",
51
+ "agilebuilder-ui": "1.1.37-sit1",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",