super-page-runtime 2.3.4 → 2.3.5-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +60 -52
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +24 -26
  6. package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
  7. package/dist/es/components/runtime/utils/common-util.js +62 -47
  8. package/dist/es/components/runtime/utils/events/event-util.js +116 -116
  9. package/dist/es/components/runtime/utils/events/print-label.js +0 -1
  10. package/dist/es/components/runtime/utils/events/standard-event.js +465 -475
  11. package/dist/es/components/runtime/utils/events/validator-util.js +23 -23
  12. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  13. package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
  14. package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
  15. package/dist/es/components/runtime/utils/page-init-util.js +51 -43
  16. package/dist/es/components/runtime/utils/page-store.js +10 -10
  17. package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
  18. package/dist/es/components/runtime/utils/table-utils.js +62 -37
  19. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +20 -20
  23. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +14 -15
  24. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +11 -12
  25. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -18
  26. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +18 -19
  27. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +8 -1
  28. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
  30. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +20 -20
  31. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +23 -23
  33. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  35. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +35 -37
  36. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +116 -119
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +24 -15
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +69 -70
  40. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +35 -34
  42. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +17 -17
  43. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +30 -27
  44. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
  45. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  46. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
  47. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  48. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +63 -61
  50. package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
  51. package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -6
  52. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
  53. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  54. package/dist/es/components/runtime/views/super-page.vue2.js +138 -140
  55. package/dist/es/style.css +82 -82
  56. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as c, createElementVNode as f, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
2
2
  import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as m, formatValueByType as h } from "../../../../utils/page-helper-util.js";
4
4
  import { SuperIcon as k } from "agilebuilder-ui";
5
5
  import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
6
6
  import { $t as _ } from "../../../../utils/i18n-util.js";
7
7
  const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
8
- const R = e2, P = R.pageContext.entity ? R.pageContext.entity : {};
9
- let S = d(R.pageContext, R.configure);
8
+ const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
9
+ let P = d(R.pageContext, R.configure);
10
10
  const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType;
11
- console.log("designProperty.value", A.value);
11
+ A.value;
12
12
  const H = l(() => {
13
- let e3 = m(P, S);
13
+ let e3 = m(S, P);
14
14
  if (G) if (A.value.hasOptions) {
15
15
  let t2 = null;
16
16
  B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
@@ -29,7 +29,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
29
29
  B.value = e3 || [];
30
30
  } }), (e3, t2) => {
31
31
  const l2 = n("el-form-item");
32
- return A.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(c(z)), style: p(c(O)) }, [f("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (s(), i(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(c(z)), "label-width": A.value.labelWidth, style: p(c(O)) }, { label: y(() => [A.value.tittleShow ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...c(D), ...c(W) }) }, v(c(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [f("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", b, [A.value.preIconValue || A.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: p(c(F)) }, [A.value.preIconType && A.value.preIconValue ? (s(), i(c(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(c(_)(A.value.preText)), 1)], 6)) : g("", true), x("  " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (s(), i(c(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), f("span", null, " " + v(c(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (s(), o("span", { key: 0, class: r(c(E)), style: p(c(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
32
+ return A.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: p(f(O)) }, { label: y(() => [A.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(W) }) }, v(f(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [A.value.preIconValue || A.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: p(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(f(_)(A.value.preText)), 1)], 6)) : g("", true), x("  " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
33
33
  };
34
34
  } });
35
35
  export {
@@ -1,30 +1,30 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as g, createElementBlock as m, createCommentVNode as v } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as m, createElementBlock as g, createCommentVNode as v } from "vue";
2
2
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
5
5
  import { $t as C } from "../../../../utils/i18n-util.js";
6
6
  const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
7
  const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
8
- console.log("designProperty", S.value);
8
+ S.value;
9
9
  let $ = S.value.formatting;
10
- const D = _2.pageContext.entity ? _2.pageContext.entity : {}, P = l(() => {
10
+ const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
11
11
  let e3 = b(D, h);
12
12
  return e3 = null == e3 || null == e3 ? "" : e3, $ && (e3 = $.replace(/\${value}/g, e3)), e3;
13
13
  });
14
- let V = S.value.tooltip, W = null;
15
- V && (W = l(() => {
14
+ let W = S.value.tooltip, q = null;
15
+ W && (q = l(() => {
16
16
  let e3 = b(D, h);
17
- return e3 = null == e3 || null == e3 ? "" : e3, V.replace(/\${value}/g, e3);
17
+ return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
18
18
  }));
19
- const q = t(null), z = t(null), A = t(null);
19
+ const z = t(null), A = t(null), B = t(null);
20
20
  return n(() => {
21
21
  a(() => {
22
- const e3 = P.value;
23
- k(e3, _2.pageContext, _2.configure, { formItemRef: q.value, componentRef: z.value, titleRef: A.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
22
+ const e3 = V.value;
23
+ k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
24
24
  });
25
25
  }), (e3, t2) => {
26
26
  const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
27
- return o(), u(a2, { ref_key: "formItemRef", ref: q, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), m("div", { key: 0, ref_key: "titleRef", ref: A, style: r({ ...p(I) }) }, g(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(W), content: p(W) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: z, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(g(P.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
27
+ return o(), u(a2, { ref_key: "formItemRef", ref: z, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(m(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
28
28
  };
29
29
  } });
30
30
  export {
@@ -46,7 +46,6 @@ const q = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
46
46
  Q && clearTimeout(Q), Q = setTimeout(function() {
47
47
  const e3 = L();
48
48
  e3 != N && (N = e3, S(w.pageContext, X, void 0).then((e4) => {
49
- console.log("查询失败!", e4);
50
49
  }));
51
50
  }, 200);
52
51
  }
@@ -1,10 +1,10 @@
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 g, createVNode as v, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
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
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
- import q from "../common/title-suffix-element.vue.js";
6
- import { $t as z } from "../../../../utils/i18n-util.js";
7
- const I = { style: { float: "left" } }, M = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, A = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
5
+ import z from "../common/title-suffix-element.vue.js";
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" } }, A = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
8
8
  const O = e2, P = O.pageContext.entity ? O.pageContext.entity : {};
9
9
  let D = j(O.pageContext, O.configure);
10
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() {
@@ -21,10 +21,10 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
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, console.log("query", t2), S(O.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
- console.log("查询失败!", e4), K.value = false;
27
+ K.value = false;
28
28
  }));
29
29
  };
30
30
  }
@@ -61,7 +61,7 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
61
61
  le && clearTimeout(le), le = setTimeout(function() {
62
62
  const e3 = ee();
63
63
  e3 != te && (te = e3, X.watchAttrValue = e3, S(O.pageContext, X, void 0).then((e4) => {
64
- console.log("查询失败!", e4), K.value = false;
64
+ K.value = false;
65
65
  }));
66
66
  }, 200);
67
67
  }
@@ -78,7 +78,7 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
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");
81
- return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label: g(() => [B.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: ne, style: p({ ...c(U), ...c($) }) }, [B.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(z)(B.value.title)), 1)], 64))], 4)) : y("", true)]), default: g(() => [v(o2, { ref_key: "componentRef", ref: ue, style: { width: "100%" }, disabled: "disabled" === B.value.state, size: B.value.size, clearable: B.value.clearable, multiple: B.value.multiple, "collapse-tags": B.value.collapseTags, "collapse-tags-tooltip": B.value.collapseTagsTooltip, filterable: B.value.filterable, "allow-create": B.value.allowCreate, placeholder: B.value.placeholder, "remote-show-suffix": B.value.remoteShowSuffix, remote: B.value.remote, "remote-method": B.value.remoteMethod, loading: K.value, onChange: B.value.changeMethod, modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4) }, { default: g(() => [(s(true), m(d, null, h(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(R)(t3.value, e3.pageContext, e3.configure, "click", { values: G.value }) }, { default: g(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", I, b(t3.label), 1), x("span", M, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
81
+ return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label: v(() => [B.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: ne, style: p({ ...c(U), ...c($) }) }, [B.value.prefixType ? (s(), r(z, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(I)(B.value.title)), 1)], 64))], 4)) : y("", true)]), default: v(() => [g(o2, { ref_key: "componentRef", ref: ue, style: { width: "100%" }, disabled: "disabled" === B.value.state, size: B.value.size, clearable: B.value.clearable, multiple: B.value.multiple, "collapse-tags": B.value.collapseTags, "collapse-tags-tooltip": B.value.collapseTagsTooltip, filterable: B.value.filterable, "allow-create": B.value.allowCreate, placeholder: B.value.placeholder, "remote-show-suffix": B.value.remoteShowSuffix, remote: B.value.remote, "remote-method": B.value.remoteMethod, loading: K.value, onChange: B.value.changeMethod, modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4) }, { default: v(() => [(s(true), m(d, null, h(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(R)(t3.value, e3.pageContext, e3.configure, "click", { values: G.value }) }, { default: v(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", M, b(t3.label), 1), x("span", q, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
82
82
  };
83
83
  } });
84
84
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, withDirectives as r, createCommentVNode as u, unref as s, createBlock as l, openBlock as c, resolveDynamicComponent as f, normalizeClass as g, normalizeStyle as a, vShow as p, nextTick as m } from "vue";
1
+ import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, withDirectives as r, createCommentVNode as s, unref as u, createBlock as l, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as a, vShow as p, nextTick as m } from "vue";
2
2
  import v from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
4
4
  import { PageDimensions as y } from "../../utils/interfaces/page-design-types.js";
@@ -75,7 +75,7 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
75
75
  };
76
76
  return (e3, o2) => {
77
77
  const t2 = i("permission");
78
- return s($)(e3.configure) ? r((c(), l(f(P.value), { key: 0, ref: D, style: a(W.value), class: g(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, s(B)], [t2, s(N) ? s(N) : "true"]]) : u("", true);
78
+ return u($)(e3.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [t2, { codes: u(N) ? u(N) : "true", systemCode: e3.pageContext.systemCode }]]) : s("", true);
79
79
  };
80
80
  } });
81
81
  export {
@@ -1,126 +1,128 @@
1
- import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as m, vShow as d, nextTick as v } from "vue";
1
+ import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as p, openBlock as a, resolveDynamicComponent as c, normalizeClass as g, normalizeStyle as f, vShow as m, nextTick as d } from "vue";
2
2
  import C from "./error-render.vue.js";
3
- import { getRuntimeComponentByName as b } from "../../utils/assemblys-config.js";
4
- import { PageDimensions as h } from "../../utils/interfaces/page-design-types.js";
5
- import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
6
- import { getPermissionCodes as w, packageFormRules as j, controlObjectRenderState as N } from "../../utils/page-init-util.js";
7
- import { caculateShowCondition as _, getFormPropName as L, getSizeConfig as O } from "../../utils/page-helper-util.js";
8
- import { isWorkflowPage as P, getPropClassName as S, isNumber as T } from "../../utils/common-util.js";
9
- import { isShowMobileEvent as $, isShowComponent as H } from "../../utils/events/event-util.js";
10
- import { usePageContextStore as M } from "../../utils/page-store.js";
3
+ import { getRuntimeComponentByName as v } from "../../utils/assemblys-config.js";
4
+ import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
5
+ import { addComponentRef as x, addComponentRefByCode as h } from "../../utils/global-refs.js";
6
+ import { getPermissionCodes as y, packageFormRules as j, controlObjectRenderState as w } from "../../utils/page-init-util.js";
7
+ import { caculateShowCondition as N, getFormPropName as _, getSizeConfig as P } from "../../utils/page-helper-util.js";
8
+ import { isWorkflowPage as L, getPropClassName as O, isNumber as S } from "../../utils/common-util.js";
9
+ import { isShowMobileEvent as H, isShowComponent as T } from "../../utils/events/event-util.js";
10
+ import { usePageContextStore as $ } from "../../utils/page-store.js";
11
+ import { isHasFieldAuth as F } from "../../utils/table-utils.js";
12
+ import { checkPermission as M } from "agilebuilder-ui/src/utils/permission.js";
11
13
  const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
12
14
  var _a, _b;
13
15
  const k2 = e2;
14
16
  null == k2.configure.style && (k2.configure.style = {});
15
- const B = w(k2.configure, k2.pageContext);
16
- k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = B), j(k2.pageContext, k2.configure);
17
- let E = o(null), F = o(true), J = o("");
17
+ const A = y(k2.configure, k2.pageContext);
18
+ k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = A);
19
+ const B = M(A || "true", k2.pageContext.systemCode), E = F(k2.pageContext, k2.configure), J = B && E;
20
+ k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.isHasFieldAuthPermission = J), j(k2.pageContext, k2.configure, J);
21
+ let R = o(null), W = o(true), q = o("");
18
22
  if (k2.configure && k2.configure.props) {
19
23
  let e3 = [];
20
- ((_a = k2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof k2.configure.props.base.showConditions ? JSON.parse(k2.configure.props.base.showConditions) : k2.configure.props.base.showConditions), F = t(() => {
24
+ ((_a = k2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof k2.configure.props.base.showConditions ? JSON.parse(k2.configure.props.base.showConditions) : k2.configure.props.base.showConditions), W = t(() => {
21
25
  var _a2;
22
26
  let o2 = true;
23
- if (E.value && null !== E.value) o2 = "show" === E.value;
24
- else if ($(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = _(k2.pageContext, e3);
27
+ if (J) if (R.value && null !== R.value) o2 = "show" === R.value;
28
+ else if (H(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = N(k2.pageContext, e3);
25
29
  else {
26
30
  const e4 = (_a2 = k2.configure.props.base) == null ? void 0 : _a2.state;
27
31
  e4 && "hidden" === e4 && (o2 = false);
28
32
  }
29
33
  else o2 = false;
34
+ else o2 = false;
30
35
  return o2;
31
36
  });
32
- if (k2.configure._dynamicShowFlag = F, (_b = k2.configure.props.base) == null ? void 0 : _b.editConditions) {
37
+ if (k2.configure._dynamicShowFlag = W, (_b = k2.configure.props.base) == null ? void 0 : _b.editConditions) {
33
38
  const e4 = k2.configure.props.base.editConditions;
34
39
  if (e4.length > 0) {
35
40
  const o2 = k2.configure.runtime ? k2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
36
- if (n2.rawSate = n2.state, P(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
41
+ if (n2.rawSate = n2.state, L(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
37
42
  const e5 = k2.configure.props.base;
38
43
  if (e5 && e5.prop) {
39
44
  let o3 = e5.prop;
40
- o3 = L(o3);
45
+ o3 = _(o3);
41
46
  const t2 = k2.pageContext.fieldPermissionMap.get(o3);
42
- t2 && false === t2.canEdit && (J.value = "disabled");
47
+ t2 && false === t2.canEdit && (q.value = "disabled");
43
48
  }
44
49
  }
45
50
  n2.state = t({ get() {
46
- if ("disabled" === J.value) return J.value;
47
- return _(k2.pageContext, e4) ? "" : "disabled";
51
+ if ("disabled" === q.value) return q.value;
52
+ return N(k2.pageContext, e4) ? "" : "disabled";
48
53
  }, set() {
49
54
  } });
50
55
  }
51
56
  }
52
57
  }
53
- const R = o({});
54
- R.value = n(b(k2.configure.name));
55
- const W = o(true);
56
- null == R.value && (R.value = C, W.value = false);
57
- const q = o(null), z = o({}), A = o(""), D = S(k2.configure);
58
- D && (A.value = D);
59
- const G = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
60
- if (G.class && (A.value += " " + G.class), G.style) {
61
- Object.assign(z.value, G.style);
62
- const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : h.PC, o2 = G.style[e3 + "_style"];
63
- o2 && Object.assign(z.value, o2);
64
- const t2 = G.style[e3 + "_class"];
65
- t2 && (A.value += " " + t2);
58
+ const z = o({});
59
+ z.value = n(v(k2.configure.name));
60
+ const D = o(true);
61
+ null == z.value && (z.value = C, D.value = false);
62
+ const G = o(null), I = o({}), K = o(""), Q = O(k2.configure);
63
+ Q && (K.value = Q);
64
+ const U = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
65
+ if (U.class && (K.value += " " + U.class), U.style) {
66
+ Object.assign(I.value, U.style);
67
+ const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : b.PC, o2 = U.style[e3 + "_style"];
68
+ o2 && Object.assign(I.value, o2);
69
+ const t2 = U.style[e3 + "_class"];
70
+ t2 && (K.value += " " + t2);
66
71
  }
67
- const I = M();
68
- function K(e3) {
69
- if (q.value = e3, e3 && !e3.show && (e3.show = function() {
70
- E.value = "show";
72
+ const V = $();
73
+ function X(e3) {
74
+ if (G.value = e3, e3 && !e3.show && (e3.show = function() {
75
+ R.value = "show";
71
76
  }), e3 && !e3.hide && (e3.hide = function() {
72
- E.value = "hide";
77
+ R.value = "hide";
73
78
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
74
79
  return k2.configure;
75
- }), k2.configure.uuid && x(k2.pageContext, k2.configure.uuid, q), k2.configure.code) y(k2.pageContext, k2.configure.code, q);
76
- else if ("table" === k2.configure.name) y(k2.pageContext, k2.configure.uuid, q);
80
+ }), k2.configure.uuid && x(k2.pageContext, k2.configure.uuid, G), k2.configure.code) h(k2.pageContext, k2.configure.code, G);
81
+ else if ("table" === k2.configure.name) h(k2.pageContext, k2.configure.uuid, G);
77
82
  else if (k2.configure.props && k2.configure.props.base) {
78
83
  const e4 = k2.configure.props.base;
79
84
  if (e4.prop) {
80
85
  let o3 = e4.prop;
81
- o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(k2.pageContext, o3, q);
86
+ o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), h(k2.pageContext, o3, G);
82
87
  }
83
88
  }
84
89
  const o2 = k2.configure.props ? k2.configure.props.base : null;
85
90
  if (o2 && o2.prop) {
86
91
  let e4 = o2.prop;
87
- e4 = L(e4), N(k2.pageContext, e4);
92
+ e4 = _(e4), w(k2.pageContext, e4);
88
93
  }
89
94
  !function() {
90
- if (!q.value) return;
91
- const e4 = O(k2.pageContext, k2.configure);
92
- "table" !== k2.configure.name && e4 && e4.isCalcHeight && v(() => {
93
- let e5 = q.value.$el;
94
- e5 || (e5 = q.value);
95
+ if (!G.value) return;
96
+ const e4 = P(k2.pageContext, k2.configure);
97
+ "table" !== k2.configure.name && e4 && e4.isCalcHeight && d(() => {
98
+ let e5 = G.value.$el;
99
+ e5 || (e5 = G.value);
95
100
  const o3 = e5.parentNode;
96
101
  if (!e5 || !o3) return;
97
102
  const t2 = e5.getBoundingClientRect();
98
103
  let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
99
- T(n2) && (i2 = n2 + "px"), z.value.height = i2, z.value["overflow-y"] = "auto", z.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
104
+ S(n2) && (i2 = n2 + "px"), I.value.height = i2, I.value["overflow-y"] = "auto", I.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
100
105
  });
101
106
  }();
102
107
  }
103
- let Q;
108
+ let Y;
104
109
  i(() => {
105
- U(), I.countComponentsLoadedNumber(), Q = setTimeout(() => {
106
- I.componentsTotalNmber !== I.componentsLoadedNumber || I.pageComponentsLoaded || I.setPageComponentsLoaded(true);
110
+ Z(), V.countComponentsLoadedNumber(), Y = setTimeout(() => {
111
+ V.componentsTotalNmber !== V.componentsLoadedNumber || V.pageComponentsLoaded || V.setPageComponentsLoaded(true);
107
112
  }, 30);
108
113
  }), s(() => {
109
- Q && clearTimeout(Q);
114
+ Y && clearTimeout(Y);
110
115
  });
111
- const U = () => {
112
- if (!q.value) return;
113
- let e3 = q.value.$el;
114
- e3 || (e3 = q.value);
116
+ const Z = () => {
117
+ if (!G.value) return;
118
+ let e3 = G.value.$el;
119
+ e3 || (e3 = G.value);
115
120
  const o2 = e3.parentNode;
116
121
  if (!e3 || !o2) return;
117
122
  const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
118
123
  "top" == i2 || "bottom" == i2 || n2.position;
119
124
  };
120
- return (e3, o2) => {
121
- const t2 = r("permission");
122
- return a(H)(e3.configure) ? u((c(), p(g(R.value), { key: 0, ref: K, style: m(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, a(F)], [t2, a(B) ? a(B) : "true"]]) : l("", true);
123
- };
125
+ return (e3, o2) => l(J) && l(T)(e3.configure) ? r((a(), p(c(z.value), { key: 0, ref: X, style: f(I.value), class: g(K.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
124
126
  } });
125
127
  export {
126
128
  k as default
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as o, openBlock as r, createBlock as s, createCommentVNode as l, unref as u, toDisplayString as m } from "vue";
1
+ import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as r, openBlock as o, createBlock as s, createCommentVNode as l, unref as u, toDisplayString as m } from "vue";
2
2
  import { deepCopy as h } from "../utils/common-util.js";
3
3
  import g from "./assemblys/home-chart-render.vue.js";
4
4
  import c from "agilebuilder-ui/src/utils/request";
@@ -20,7 +20,7 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
20
20
  e4[I.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[I.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[I.homeChartSettingUserId] });
21
21
  }
22
22
  const i2 = window.frameElement;
23
- w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (console.log(i2.clientHeight + "iframeElement.clientHeight"), w.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
23
+ w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (i2.clientHeight, w.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
24
24
  const n2 = { showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
25
25
  if (((_a = w.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = w.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
26
26
  const e4 = n2.entity.page;
@@ -28,7 +28,7 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
28
28
  }
29
29
  t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(w.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
30
30
  !function(e4, t3) {
31
- if (!t3 || 0 == t3.length) return void console.log("无需要初始化时统计的统计图数据");
31
+ if (!t3 || 0 == t3.length) return;
32
32
  e4.initChartData = {}, e4.initChartData.data = h(e4.entity.data), e4.initChartData.page = h(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
33
33
  }(A.value, [t2.initChartServiceConfigs]);
34
34
  }, 200);
@@ -39,7 +39,7 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
39
39
  x && clearTimeout(x);
40
40
  }), (e3, t2) => {
41
41
  const a2 = i("loading");
42
- return n((r(), o("div", y, [!U.value && w.value ? (r(), s(g, { key: 0, configure: w.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || w.value ? l("", true) : (r(), o("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
42
+ return n((o(), r("div", y, [!U.value && w.value ? (o(), s(g, { key: 0, configure: w.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || w.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
43
43
  };
44
44
  } });
45
45
  export {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as e, ref as a, resolveComponent as l, createBlock as u, openBlock as t, withCtx as n, createElementBlock as o, createCommentVNode as r } from "vue";
2
2
  import i from "./super-page.vue.js";
3
- const s = ["src"], g = { key: 1, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, d = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: d2 }) {
4
- const p = e2, v = d2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), S = a(null), V = a(true), x = a(false);
3
+ const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, g = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: g2 }) {
4
+ const p = e2, v = g2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), V = a(null), x = a(true), S = a(false);
5
5
  if (c) {
6
- V.value = (c == null ? void 0 : c.alignCenter) ?? true, x.value = (c == null ? void 0 : c.fullscreen) ?? false, console.log("弹出页面myJumpPageSetting=", c), _.value = !(!c || void 0 === c._isIframe) && c._isIframe, S.value = c && c._path ? c._path : null, j.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null;
6
+ x.value = (c == null ? void 0 : c.alignCenter) ?? true, S.value = (c == null ? void 0 : c.fullscreen) ?? false, _.value = !(!c || void 0 === c._isIframe) && c._isIframe, V.value = c && c._path ? c._path : null, j.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null;
7
7
  const e3 = !!c.isNeedId;
8
8
  if (p.parentPageEventParams) {
9
9
  try {
@@ -17,10 +17,10 @@ const s = ["src"], g = { key: 1, class: "amb-super-page-runtime-dialog-iframe",
17
17
  b.value.parentPageCode = c && c.parentPageCode ? c.parentPageCode : null, b.value.parentPageVersion = c && c.parentPageVersion ? c.parentPageVersion : null, b.value.jumpMode = c ? c.jumpMode : null, b.value.id = w.value, b.value.isNeedId = e3, b.value.taskId = C.value, p.customParams && Object.assign(b.value, p.customParams);
18
18
  }
19
19
  return (e3, a2) => {
20
- const d3 = l("el-drawer"), p2 = l("el-dialog");
21
- return j.value && "drawer" === j.value ? (t(), u(d3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: S.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(p2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, fullscreen: x.value, alignCenter: V.value, draggable: y.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), o("iframe", g)) : r("", true)]), _: 1 }, 8, ["title", "width", "fullscreen", "alignCenter", "draggable", "overflow"]));
20
+ const g3 = l("el-drawer"), p2 = l("el-dialog");
21
+ return j.value && "drawer" === j.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: V.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(p2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, fullscreen: S.value, alignCenter: x.value, draggable: y.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), o("iframe", d)) : r("", true)]), _: 1 }, 8, ["title", "width", "fullscreen", "alignCenter", "draggable", "overflow"]));
22
22
  };
23
23
  } });
24
24
  export {
25
- d as default
25
+ g as default
26
26
  };
@@ -46,7 +46,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
46
46
  required: false;
47
47
  };
48
48
  contentHeight: {
49
- type: (NumberConstructor | StringConstructor)[];
49
+ type: (StringConstructor | NumberConstructor)[];
50
50
  default: any;
51
51
  };
52
52
  isDialog: {
@@ -104,7 +104,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
104
104
  required: false;
105
105
  };
106
106
  contentHeight: {
107
- type: (NumberConstructor | StringConstructor)[];
107
+ type: (StringConstructor | NumberConstructor)[];
108
108
  default: any;
109
109
  };
110
110
  isDialog: {
@@ -1,7 +1,7 @@
1
1
  import e from "./super-page.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = p(e, [["__scopeId", "data-v-56a4a1b8"]]);
4
+ const r = p(e, [["__scopeId", "data-v-5ed222b6"]]);
5
5
  export {
6
6
  r as default
7
7
  };