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.
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -3
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +35 -26
- package/dist/es/style.css +9 -9
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { defineComponent as o, createBlock as t, openBlock as
|
|
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
|
|
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
|
-
|
|
8
|
+
a as default
|
|
6
9
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js
CHANGED
|
@@ -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
|
|
4
|
+
const p = r(o, [["__scopeId", "data-v-8f093cc2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js
CHANGED
|
@@ -1,38 +1,47 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, onMounted as
|
|
2
|
-
import { addRequiredClassUtil as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
let q = null;
|
|
6
|
-
|
|
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 =
|
|
18
|
+
let e3 = ((_a = L.value) == null ? void 0 : _a.parentElement) ?? null;
|
|
9
19
|
for (; e3; ) {
|
|
10
|
-
if (e3.classList.contains("el-dialog")) return
|
|
11
|
-
e3
|
|
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 =
|
|
31
|
+
return (_a = C2.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
|
|
23
32
|
}, (e3) => {
|
|
24
|
-
e3 ? (
|
|
33
|
+
e3 ? (z.value = b(), a(() => {
|
|
25
34
|
var _a;
|
|
26
|
-
((_a =
|
|
27
|
-
})) :
|
|
28
|
-
}, { immediate: true }), (e3,
|
|
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
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])],
|
|
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
|
-
|
|
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-
|
|
60
|
-
position:
|
|
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:
|
|
64
|
+
z-index: 2100;
|
|
65
65
|
background-color: #ffffff;
|
|
66
66
|
}
|
|
67
|
-
.opinion-box-table-wrapper[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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;
|