super-page-runtime 2.3.40 → 2.3.41

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,8 +1,8 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as h, formatValueByType as k } from "../../../../utils/page-helper-util.js";
4
- import { SuperIcon as w } from "agilebuilder-ui";
5
- import { getCustomFunc as T, handleAfterInitEvent as C, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
3
+ import { getVariableValue as h, formatValueByType as w } from "../../../../utils/page-helper-util.js";
4
+ import { SuperIcon as T } from "agilebuilder-ui";
5
+ import { getCustomFunc as k, handleAfterInitEvent as C, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
6
6
  import { $t as I } from "../../../../utils/i18n-util.js";
7
7
  const b = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, V = { style: { overflow: "hidden", "white-space": "nowrap" } }, j = ["title"], R = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: R2 }) {
8
8
  const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
@@ -16,9 +16,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
16
16
  let t2 = null;
17
17
  B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
18
18
  } else if ("custom" === G) {
19
- const t2 = T(S.pageContext, W.value.formatFunc);
19
+ const t2 = k(S.pageContext, W.value.formatFunc);
20
20
  t2 && (e3 = t2.apply(t2, [{ pageContext: S.pageContext, configureObj: S.configure, value: e3 }]));
21
- } else e3 = k(e3, G, W.value);
21
+ } else e3 = w(e3, G, W.value);
22
22
  return e3 = null == e3 ? "" : e3, e3;
23
23
  }), J = t(null), K = t(null), L = t(null);
24
24
  return n(() => {
@@ -30,7 +30,7 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
30
30
  B.value = e3 || [];
31
31
  } }), (t2, l2) => {
32
32
  const n2 = u("el-form-item");
33
- return W.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(W.value.title), 1)], 6)) : W.value.tittleShow ? (s(), i(n2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: l2[0] || (l2[0] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), i(f(w), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d("  " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), i(f(w), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), o("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(W.value.suffixTxt), 7)) : m("", true)]));
33
+ return W.value.whetherTitle || W.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(f(I)(W.value.title)), 1)], 6)) : W.value.tittleShow ? (s(), o(n2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: l2[0] || (l2[0] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), o(f(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d("  " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), o(f(T), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(f(I)(W.value.suffixTxt)), 7)) : m("", true)]));
34
34
  };
35
35
  } });
36
36
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as n, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, createSlots as f, withCtx as c, createVNode as m, createCommentVNode as d, createTextVNode as g, toDisplayString as v, createElementVNode as y } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as n, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, createSlots as f, withCtx as c, createVNode as m, createCommentVNode as d, createTextVNode as g, toDisplayString as v, createElementVNode as y } from "vue";
2
2
  import { getFormModelFields as b } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as x, handleEvent as C } from "../../../../utils/events/event-util.js";
@@ -28,14 +28,14 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
28
28
  return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
29
29
  }));
30
30
  const A = t(null), B = t(null), E = t(null);
31
- return i(() => {
32
- n(() => {
31
+ return a(() => {
32
+ i(() => {
33
33
  const e3 = J.value;
34
34
  x(e3, T2.pageContext, T2.configure, { formItemRef: A.value, componentRef: B.value, titleRef: E.value, value: e3, entity: T2.pageContext.entity.data, pageData: T2.pageContext.entity.page });
35
35
  });
36
36
  }), (t2, l2) => {
37
- const i2 = a("el-link"), n2 = a("el-tooltip"), b2 = a("el-form-item");
38
- return o(), u(b2, { ref_key: "formItemRef", ref: A, class: s(p(I)), "label-width": S.value.labelWidth, style: r(p(V)) }, f({ default: c(() => [m(n2, { disabled: !p(z), content: p(z) }, { default: c(() => [m(i2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(p(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), g(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...p(P) }), class: "amb-form-item-label" }, v(p(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
37
+ const a2 = n("el-link"), i2 = n("el-tooltip"), b2 = n("el-form-item");
38
+ return o(), u(b2, { ref_key: "formItemRef", ref: A, class: s(p(I)), "label-width": S.value.labelWidth, style: r(p(V)) }, f({ default: c(() => [m(i2, { disabled: !p(z), content: p(z) }, { default: c(() => [m(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type ? S.value.type : "primary", underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(p(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), g(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...p(P) }), class: "amb-form-item-label" }, v(p(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
39
39
  };
40
40
  } });
41
41
  export {
package/dist/es/style.css CHANGED
@@ -884,40 +884,40 @@
884
884
  }.el-form-item[data-v-96fc65d8] {
885
885
  margin-bottom: 0px;
886
886
  }
887
- .el-form-item[data-v-40f0b5f4] {
887
+ .el-form-item[data-v-c76703c3] {
888
888
  margin-bottom: 0px;
889
889
  }
890
890
 
891
891
  /* 整体对齐样式 - 靠左 */
892
- .form-item-align-flex-start[data-v-40f0b5f4] {
892
+ .form-item-align-flex-start[data-v-c76703c3] {
893
893
  justify-content: flex-start;
894
894
  }
895
- .form-item-align-flex-start[data-v-40f0b5f4] .el-form-item__label {
895
+ .form-item-align-flex-start[data-v-c76703c3] .el-form-item__label {
896
896
  flex: none;
897
897
  }
898
- .form-item-align-flex-start[data-v-40f0b5f4] .el-form-item__content {
898
+ .form-item-align-flex-start[data-v-c76703c3] .el-form-item__content {
899
899
  flex: none;
900
900
  }
901
901
 
902
902
  /* 整体对齐样式 - 居中 */
903
- .form-item-align-center[data-v-40f0b5f4] {
903
+ .form-item-align-center[data-v-c76703c3] {
904
904
  justify-content: center;
905
905
  }
906
- .form-item-align-center[data-v-40f0b5f4] .el-form-item__label {
906
+ .form-item-align-center[data-v-c76703c3] .el-form-item__label {
907
907
  flex: none;
908
908
  }
909
- .form-item-align-center[data-v-40f0b5f4] .el-form-item__content {
909
+ .form-item-align-center[data-v-c76703c3] .el-form-item__content {
910
910
  flex: none;
911
911
  }
912
912
 
913
913
  /* 整体对齐样式 - 靠右 */
914
- .form-item-align-flex-end[data-v-40f0b5f4] {
914
+ .form-item-align-flex-end[data-v-c76703c3] {
915
915
  justify-content: flex-end;
916
916
  }
917
- .form-item-align-flex-end[data-v-40f0b5f4] .el-form-item__label {
917
+ .form-item-align-flex-end[data-v-c76703c3] .el-form-item__label {
918
918
  flex: none;
919
919
  }
920
- .form-item-align-flex-end[data-v-40f0b5f4] .el-form-item__content {
920
+ .form-item-align-flex-end[data-v-c76703c3] .el-form-item__content {
921
921
  flex: none;
922
922
  }
923
923
  .amb-button-group-main[data-v-9d55ce0b] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.40",
3
+ "version": "2.3.41",
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.96",
52
+ "agilebuilder-ui": "1.1.97",
53
53
  "axios": "^1.6.8",
54
54
  "cypress": "^13.6.6",
55
55
  "element-plus": "^2.6.1",