super-page-runtime 2.3.37-sit4 → 2.3.37-sit5

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,6 +1,9 @@
1
- import { defineComponent as o, createBlock as t, openBlock as e } from "vue";
1
+ import { defineComponent as o, createBlock as e, createCommentVNode as t, openBlock as n } from "vue";
2
2
  import p from "./workflow/component/workflow-opinion-box.vue.js";
3
- const n = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (o3, n2) => (e(), t(p, { pageContext: o3.pageContext }, null, 8, ["pageContext"])) });
3
+ const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (o3, a2) => {
4
+ var _a;
5
+ return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (n(), e(p, { key: 0, pageContext: o3.pageContext }, null, 8, ["pageContext"])) : t("", true);
6
+ } });
4
7
  export {
5
- n as default
8
+ a as default
6
9
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./workflow-opinion-box.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = r(o, [["__scopeId", "data-v-39a9ecda"]]);
4
+ const p = r(o, [["__scopeId", "data-v-8f093cc2"]]);
5
5
  export {
6
- e as default
6
+ p as default
7
7
  };
@@ -1,38 +1,47 @@
1
- import { defineComponent as e, ref as o, onMounted as n, onUnmounted as l, watch as i, nextTick as t, resolveComponent as a, createElementBlock as s, openBlock as p, Fragment as u, createElementVNode as r, createCommentVNode as f, createBlock as c, normalizeStyle as v, Teleport as d, createTextVNode as w, normalizeClass as m, createVNode as x } from "vue";
2
- import { addRequiredClassUtil as k } from "../../../../utils/common-util.js";
3
- const y = { class: "opinion-box-table-wrapper" }, g = { class: "opinion-table" }, O = { class: "opinion-label" }, C = { key: 0, class: "required-star" }, b = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2) {
4
- const b2 = e2, h = o(""), R = o(), _ = o(""), B = o(null), I = o(null), S = o(null), V = o(0);
5
- let q = null;
6
- return n(() => {
1
+ import { defineComponent as e, ref as n, computed as o, onMounted as l, onUnmounted as i, watch as t, nextTick as a, resolveComponent as u, createElementBlock as r, openBlock as s, Fragment as p, createElementVNode as d, createCommentVNode as f, createBlock as v, normalizeStyle as w, Teleport as c, createTextVNode as m, normalizeClass as x, createVNode as g } from "vue";
2
+ import { addRequiredClassUtil as b } from "../../../../utils/common-util.js";
3
+ const h = { class: "opinion-box-table-wrapper" }, k = { class: "opinion-table" }, y = { class: "opinion-label" }, O = { key: 0, class: "required-star" }, C = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2) {
4
+ const C2 = e2, R = n(""), E = n(), z = n(""), L = n(null), _ = n(null), B = n(0), H = n(null), I = n(null);
5
+ let V = null, q = null;
6
+ const j = o(() => {
7
+ const e3 = I.value;
8
+ return e3 ? { left: e3.left + "px", right: window.innerWidth - e3.right + "px", bottom: window.innerHeight - e3.bottom + "px" } : { left: "0", right: "0", bottom: "0" };
9
+ });
10
+ function S() {
11
+ H.value && (I.value = H.value.getBoundingClientRect());
12
+ }
13
+ function U(e3) {
14
+ H.value = e3, S(), q = new ResizeObserver(S), q.observe(e3), window.addEventListener("scroll", S, true), window.addEventListener("resize", S);
15
+ }
16
+ return l(() => {
7
17
  var _a;
8
- let e3 = ((_a = B.value) == null ? void 0 : _a.parentElement) ?? null, o2 = null;
18
+ let e3 = ((_a = L.value) == null ? void 0 : _a.parentElement) ?? null;
9
19
  for (; e3; ) {
10
- if (e3.classList.contains("el-dialog")) return "static" === getComputedStyle(e3).position && (e3.style.position = "relative"), void (S.value = e3);
11
- e3.classList.contains("app-container") && (o2 = e3), e3 = e3.parentElement;
20
+ if (e3.classList.contains("el-dialog")) return void U(e3);
21
+ e3 = e3.parentElement;
12
22
  }
13
- o2 && ("static" === getComputedStyle(o2).position && (o2.style.position = "relative"), S.value = o2);
14
- }), l(() => {
15
- q == null ? void 0 : q.disconnect(), q = null;
16
- }), i(I, (e3) => {
17
- q == null ? void 0 : q.disconnect(), q = null, e3 ? (V.value = e3.offsetHeight, q = new ResizeObserver(() => {
18
- V.value = e3.offsetHeight;
19
- }), q.observe(e3)) : V.value = 0;
20
23
  }), i(() => {
24
+ V == null ? void 0 : V.disconnect(), V = null, q == null ? void 0 : q.disconnect(), q = null, window.removeEventListener("scroll", S, true), window.removeEventListener("resize", S), H.value = null, I.value = null;
25
+ }), t(_, (e3) => {
26
+ V == null ? void 0 : V.disconnect(), V = null, e3 ? (B.value = e3.offsetHeight, V = new ResizeObserver(() => {
27
+ B.value = e3.offsetHeight;
28
+ }), V.observe(e3)) : B.value = 0;
29
+ }), t(() => {
21
30
  var _a;
22
- return (_a = b2.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
31
+ return (_a = C2.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
23
32
  }, (e3) => {
24
- e3 ? (_.value = k(), t(() => {
33
+ e3 ? (z.value = b(), a(() => {
25
34
  var _a;
26
- ((_a = R.value) == null ? void 0 : _a.focus) && R.value.focus();
27
- })) : _.value = "";
28
- }, { immediate: true }), (e3, o2) => {
35
+ ((_a = E.value) == null ? void 0 : _a.focus) && E.value.focus();
36
+ })) : z.value = "";
37
+ }, { immediate: true }), (e3, n2) => {
29
38
  var _a, _b, _c;
30
- const n2 = a("el-input");
31
- return p(), s(u, null, [r("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" }, id: "sentinelRef" }, null, 512), ((_a = e3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) && S.value ? (p(), s("div", { key: 0, style: v({ height: V.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), S.value ? (p(), c(d, { key: 1, to: S.value }, [((_b = e3.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? (p(), s("div", { key: 0, ref_key: "opinionBarRef", ref: I, class: "opinion-fixed-bar" }, [r("div", y, [r("table", g, [r("tbody", null, [r("tr", null, [r("td", O, [((_c = e3.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (p(), s("span", C, "*")) : f("", true), o2[2] || (o2[2] = w(" 处理意见 "))]), r("td", { class: m(["opinion-input-cell", _.value]) }, [x(n2, { ref_key: "opinionInputRef", ref: R, modelValue: h.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e4) => h.value = e4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: o2[1] || (o2[1] = (e4) => {
32
- b2.pageContext.workflowOpinion && (b2.pageContext.workflowOpinion.opinion = h.value.trim(), b2.pageContext.workflowOpinion.focusOpinionInput = false);
33
- }), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 512)) : f("", true)], 8, ["to"])) : f("", true)], 64);
39
+ const o2 = u("el-input");
40
+ return s(), r(p, null, [d("div", { ref_key: "sentinelRef", ref: L, style: { display: "none" } }, null, 512), ((_a = e3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: w({ height: B.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (s(), v(c, { to: "body" }, [((_b = e3.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? (s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: _, class: "opinion-fixed-bar", style: w(j.value) }, [d("div", h, [d("table", k, [d("tbody", null, [d("tr", null, [d("td", y, [((_c = e3.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", O, "*")) : f("", true), n2[2] || (n2[2] = m(" 处理意见 "))]), d("td", { class: x(["opinion-input-cell", z.value]) }, [g(o2, { ref_key: "opinionInputRef", ref: E, modelValue: R.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => R.value = e4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: n2[1] || (n2[1] = (e4) => {
41
+ C2.pageContext.workflowOpinion && (C2.pageContext.workflowOpinion.opinion = R.value.trim(), C2.pageContext.workflowOpinion.focusOpinionInput = false);
42
+ }), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)) : f("", true)]))], 64);
34
43
  };
35
44
  } });
36
45
  export {
37
- b as default
46
+ C as default
38
47
  };
package/dist/es/style.css CHANGED
@@ -56,25 +56,25 @@
56
56
  .amb-super-page-runtime-drawer-view .el-drawer__body .runtime-page-container {
57
57
  max-height: calc(100vh - 40px - var(--el-drawer-padding-primary, 16px) * 2);
58
58
  }
59
- .opinion-fixed-bar[data-v-39a9ecda] {
60
- position: absolute;
59
+ .opinion-fixed-bar[data-v-8f093cc2] {
60
+ position: fixed;
61
61
  bottom: 0;
62
62
  left: 0;
63
63
  right: 0;
64
- z-index: 10;
64
+ z-index: 2100;
65
65
  background-color: #ffffff;
66
66
  }
67
- .opinion-box-table-wrapper[data-v-39a9ecda] {
67
+ .opinion-box-table-wrapper[data-v-8f093cc2] {
68
68
  width: 100%;
69
69
  background: #f8fcff;
70
70
  padding: 0;
71
71
  }
72
- .opinion-table[data-v-39a9ecda] {
72
+ .opinion-table[data-v-8f093cc2] {
73
73
  width: 100%;
74
74
  border-collapse: separate;
75
75
  border-spacing: 0;
76
76
  }
77
- .opinion-label[data-v-39a9ecda] {
77
+ .opinion-label[data-v-8f093cc2] {
78
78
  width: 120px;
79
79
  background: #ccddff;
80
80
  color: #0983ff;
@@ -89,20 +89,20 @@
89
89
  min-height: 60px;
90
90
  position: relative;
91
91
  }
92
- .required-star[data-v-39a9ecda] {
92
+ .required-star[data-v-8f093cc2] {
93
93
  color: #f56c6c;
94
94
  margin-right: 2px;
95
95
  font-size: 16px;
96
96
  font-family: inherit;
97
97
  vertical-align: middle;
98
98
  }
99
- .opinion-input-cell[data-v-39a9ecda] {
99
+ .opinion-input-cell[data-v-8f093cc2] {
100
100
  background: #f8fcff;
101
101
  border: 1px solid #5b85d3;
102
102
  border-left: none;
103
103
  padding: 5px;
104
104
  }
105
- .opinion-input[data-v-39a9ecda] .el-textarea__inner {
105
+ .opinion-input[data-v-8f093cc2] .el-textarea__inner {
106
106
  border: 1px solid #b5d1e6 !important;
107
107
  background: #fff;
108
108
  min-height: 60px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.37-sit4",
3
+ "version": "2.3.37-sit5",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",