super-page-runtime 2.3.45-sit1 → 2.3.45
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/utils/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +122 -122
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +20 -20
- package/dist/es/components/runtime/utils/events/validator-util.js +84 -81
- package/dist/es/components/runtime/utils/page-init-util.js +43 -41
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +8 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +48 -47
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +3 -2
- package/dist/es/components/runtime/views/super-page.vue2.js +34 -33
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -18,9 +18,9 @@ const w = e({ __name: "input-number-runtime", props: { pageContext: {}, configur
|
|
|
18
18
|
});
|
|
19
19
|
}), w2({ addRequiredClass: function() {
|
|
20
20
|
S.value = q();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return i(), u(
|
|
21
|
+
} }), (t2, l2) => {
|
|
22
|
+
const o2 = n("el-input-number"), a2 = n("el-form-item");
|
|
23
|
+
return i(), u(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: s(p(F) + (S.value ? " " + S.value : "")), "label-width": W.value.labelWidth, style: r(p(E)) }, m({ default: f(() => [c(o2, { ref_key: "componentRef", ref: G, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, controls: W.value.showButton, size: W.value.size, placeholder: W.value.placeholder, modelValue: I.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => I.value = e3), precision: W.value.precision, step: W.value.step, min: W.value.min, max: W.value.max, onChange: l2[1] || (l2[1] = (t3) => p(j)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (t3) => p(j)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (t3) => p(j)(t3, e2.pageContext, e2.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [d("div", { ref_key: "titleRef", ref: H, style: r({ ...p(T), ...p(U) }), class: "amb-form-item-label" }, [W.value.prefixType ? (i(), u(k, { key: 0, pageContext: e2.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (i(), v(g, { key: 1 }, [y(x(p(_)(W.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,80 +1,81 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as n, computed as t, onMounted as l, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as y, createCommentVNode as m, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as k, Fragment as T } from "vue";
|
|
2
2
|
import { SuperIcon as I } from "agilebuilder-ui";
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { getModelFieldFromPageContext as
|
|
5
|
-
import { handleFormEvent as
|
|
6
|
-
import { formatScanRuleSets as R, analysisScanValue as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
import { addRequiredClassUtil as
|
|
3
|
+
import { getFormModelFields as w } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as P } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as L } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import N from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as q, isDingTalkEnv as D } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import J from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as M } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
12
12
|
const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
|
|
13
13
|
var _a, _b, _c;
|
|
14
|
-
const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A =
|
|
15
|
-
let E =
|
|
14
|
+
const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = n("text");
|
|
15
|
+
let E = w(F.pageContext, F.configure);
|
|
16
16
|
if (F.pageContext.modelFieldsMap) {
|
|
17
|
-
const e3 =
|
|
17
|
+
const e3 = V(E, F.pageContext);
|
|
18
18
|
e3 && (A.value = h(e3.dataType) ? "number" : "text");
|
|
19
19
|
}
|
|
20
|
-
const H =
|
|
20
|
+
const H = n(q()), U = F.pageContext.code, W = n(E && E.length > 0 ? U + "__" + E.join("__") : null), G = n(null), K = t({ get: () => _($, E), set(e3) {
|
|
21
21
|
b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
|
|
22
|
-
} }), Q =
|
|
22
|
+
} }), Q = n(null), X = n(null), Y = n(null);
|
|
23
23
|
F.configure.props.suffixLinkPage && !F.configure.props.linkPage && (F.configure.props.linkPage = F.configure.props.suffixLinkPage);
|
|
24
|
-
const Z = F.configure.runtime ? F.configure.runtime : {}, ee =
|
|
24
|
+
const Z = F.configure.runtime ? F.configure.runtime : {}, ee = n(Z.props ? Z.props : {}), ne = n(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
|
|
25
25
|
let te = false;
|
|
26
|
-
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
D() && (te = true);
|
|
27
|
+
let le = "";
|
|
28
|
+
const oe = navigator.userAgent;
|
|
29
|
+
le = oe.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
30
|
+
const ae = !(!H.value || !le || "app" !== le), ue = n(!!((ae || te) && ne.value || H.value && ne.value && "https:" === window.location.protocol));
|
|
31
|
+
let ie = {};
|
|
31
32
|
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(ee.value.scan.ruleList).then((e3) => {
|
|
32
|
-
|
|
33
|
+
ie = e3;
|
|
33
34
|
}), u(() => K.value, (e3) => {
|
|
34
35
|
e3 = e3.trim();
|
|
35
|
-
const
|
|
36
|
-
|
|
36
|
+
const n2 = O(e3, ie);
|
|
37
|
+
n2 && L(F.pageContext, n2.scanSet, n2.params);
|
|
37
38
|
}));
|
|
38
|
-
const
|
|
39
|
-
function
|
|
39
|
+
const re = Z.style, pe = Z.class, se = Z.headerStyle, ce = Z.titleExceedStyle;
|
|
40
|
+
function fe(e3) {
|
|
40
41
|
return b($, E, e3);
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
l(() => {
|
|
44
|
+
J.$on(W.value + "-scanDone", (e3) => {
|
|
45
|
+
W.value, JSON.stringify(e3), fe(e3.result), S(e3.result, F.pageContext, F.configure, "afterScanDone");
|
|
45
46
|
}), o(() => {
|
|
46
47
|
var _a2;
|
|
47
48
|
const e3 = K.value;
|
|
48
|
-
|
|
49
|
+
j(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ue.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && ge();
|
|
49
50
|
});
|
|
50
51
|
}), a(() => {
|
|
51
|
-
|
|
52
|
+
J.$off(W.value + "-scanDone");
|
|
52
53
|
});
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
54
|
+
const ve = n(false);
|
|
55
|
+
function ge() {
|
|
56
|
+
if (ae || te) {
|
|
56
57
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
57
|
-
te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
|
|
58
|
-
} else if (H.value) if ("https:" === window.location.protocol)
|
|
58
|
+
te && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
|
|
59
|
+
} else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
|
|
59
60
|
else {
|
|
60
61
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
61
62
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
62
63
|
}
|
|
63
|
-
else
|
|
64
|
+
else ve.value = true;
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
66
|
+
function ye(e3) {
|
|
67
|
+
ve.value = false, fe(e3);
|
|
67
68
|
}
|
|
68
69
|
return B2({ getValue: function() {
|
|
69
70
|
return _($, E);
|
|
70
|
-
}, setValue:
|
|
71
|
-
G.value =
|
|
72
|
-
} }), (
|
|
73
|
-
const
|
|
74
|
-
return
|
|
75
|
-
let
|
|
76
|
-
null !=
|
|
77
|
-
}(
|
|
71
|
+
}, setValue: fe, scanClick: ge, addRequiredClass: function() {
|
|
72
|
+
G.value = z();
|
|
73
|
+
} }), (n2, t2) => {
|
|
74
|
+
const l2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
|
|
75
|
+
return p(), r(a2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(f(pe) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: s(f(re)) }, v({ default: g(() => [y(l2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => K.value = e3), onInput: t2[6] || (t2[6] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "input")), onChange: t2[7] || (t2[7] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "change")), onBlur: t2[8] || (t2[8] = (e3) => function(e4) {
|
|
76
|
+
let n3 = _($, E);
|
|
77
|
+
null != n3 && (n3 = n3.trim()), b($, E, n3), S(e4, F.pageContext, F.configure, "blur");
|
|
78
|
+
}(e3)), onFocus: t2[9] || (t2[9] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "focus")), onClick: t2[10] || (t2[10] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "click")), onClear: t2[11] || (t2[11] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "clear")) }, v({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[0] || (t2[0] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[1] || (t2[1] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: g(() => [ee.value.sufIconType && ee.value.sufIconValue ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[2] || (t2[2] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.sufText)), 1)]), key: "2" } : void 0, ue.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: g(() => [ue.value ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e3) => ge()) })) : m("", true), ee.value.sufIconType && ee.value.sufIconValue ? (p(), r(f(I), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[4] || (t2[4] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (p(), r(o2, { key: 0, onClose: ye })) : m("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: s({ ...f(se), ...f(ce) }) }, [ee.value.prefixType ? (p(), r(N, { key: 0, pageContext: e2.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (p(), k(T, { key: 1 }, [d(x(f(M)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
78
79
|
};
|
|
79
80
|
} });
|
|
80
81
|
export {
|
|
@@ -8,7 +8,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
8
8
|
const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
|
|
9
9
|
let q = x(S.pageContext, S.configure);
|
|
10
10
|
const O = S.configure.runtime ? S.configure.runtime : {}, A = O.style, z = O.class, D = O.headerStyle, E = O.appendClass, F = O.appendStyle, N = O.titleExceedStyle, W = t(O.props ? O.props : {});
|
|
11
|
-
const B = t(W.value.options ? W.value.options : []), G = W.value.formatType
|
|
11
|
+
const B = t(W.value.options ? W.value.options : []), G = W.value.formatType;
|
|
12
|
+
W.value;
|
|
13
|
+
const H = l(() => {
|
|
12
14
|
let e3 = h(P, q);
|
|
13
15
|
if (G) if (W.value.hasOptions) {
|
|
14
16
|
let t2 = null;
|
|
@@ -26,9 +28,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
26
28
|
});
|
|
27
29
|
}), R2({ updateOptions: function(e3) {
|
|
28
30
|
B.value = e3 || [];
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
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(
|
|
31
|
+
} }), (t2, l2) => {
|
|
32
|
+
const n2 = u("el-form-item");
|
|
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)]));
|
|
32
34
|
};
|
|
33
35
|
} });
|
|
34
36
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as
|
|
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";
|
|
@@ -7,7 +7,9 @@ import { SuperIcon as h } from "agilebuilder-ui";
|
|
|
7
7
|
import { analysisValue as R } from "agilebuilder-ui/src/utils/util";
|
|
8
8
|
const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
9
|
var _a;
|
|
10
|
-
const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {})
|
|
10
|
+
const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {});
|
|
11
|
+
S.value;
|
|
12
|
+
const $ = t();
|
|
11
13
|
((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
|
|
12
14
|
let q = S.value.formatting;
|
|
13
15
|
const D = T2.pageContext.entity ? T2.pageContext.entity : {}, J = l(() => {
|
|
@@ -26,14 +28,14 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
26
28
|
return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
|
|
27
29
|
}));
|
|
28
30
|
const A = t(null), B = t(null), E = t(null);
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
+
return a(() => {
|
|
32
|
+
i(() => {
|
|
31
33
|
const e3 = J.value;
|
|
32
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 });
|
|
33
35
|
});
|
|
34
|
-
}), (
|
|
35
|
-
const
|
|
36
|
-
return o(), u(
|
|
36
|
+
}), (t2, l2) => {
|
|
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"]);
|
|
37
39
|
};
|
|
38
40
|
} });
|
|
39
41
|
export {
|
|
@@ -74,9 +74,9 @@ const O = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
74
74
|
l2.value === e3 && (t2 = t2 + l2.label + ",");
|
|
75
75
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
76
76
|
}
|
|
77
|
-
} }), (
|
|
78
|
-
const
|
|
79
|
-
return s(), r(
|
|
77
|
+
} }), (t2, l2) => {
|
|
78
|
+
const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
|
|
79
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: oe, required: G.value.required, class: p(c($) + (E.value ? " " + E.value : "")), "label-width": G.value.labelWidth, style: f(c(U)) }, g({ default: v(() => [d(n2, { ref_key: "componentRef", ref: ne, disabled: "disabled" === G.value.state, size: G.value.size, onChange: G.value.changeMethod, modelValue: W.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => W.value = e3) }, { default: v(() => [(s(true), m(h, null, b(H.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(q)(t3.value, e2.pageContext, e2.configure, "click", { values: W.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [G.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ae, style: f({ ...c(A), ...c(B) }), class: "amb-form-item-label" }, C(c(w)(G.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
80
80
|
};
|
|
81
81
|
} });
|
|
82
82
|
export {
|
|
@@ -178,7 +178,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
178
178
|
const n2 = oe.root.getElementsByTagName("img");
|
|
179
179
|
for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
|
|
180
180
|
} catch (e5) {
|
|
181
|
-
Le();
|
|
181
|
+
console.error("上传图片失败", e5), Le();
|
|
182
182
|
} finally {
|
|
183
183
|
ae.value = false;
|
|
184
184
|
}
|
|
@@ -208,7 +208,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
208
208
|
return oe ? oe.root.innerHTML : "";
|
|
209
209
|
} }), (e3, t2) => {
|
|
210
210
|
const l2 = i("View"), n2 = i("el-icon"), o2 = i("FullScreen"), r2 = i("Close"), x2 = i("el-form-item"), k2 = i("el-image-viewer"), q2 = i("el-dialog");
|
|
211
|
-
return u(), a(s, null, [c(x2, { required: Z.value.required, class: m(g(J) + (O.value ? " " + O.value : "")), "label-width": Z.value.labelWidth, style: p(g(Y)) }, v({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": re.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Ae, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: re.value ? "退出全屏" : "全屏编辑" }, [re.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(r2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", F, "字数:" + y(ie.value), 1)]), ae.value ? (u(), a("div", V, t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)]))) : f("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: p({ ...g(Q), ...g(X) }), class: "amb-form-item-label" }, y(g(T)(Z.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), he.value ? (u(), d(k2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
211
|
+
return u(), a(s, null, [c(x2, { required: Z.value.required, class: m(g(J) + (O.value ? " " + O.value : "")), "label-width": Z.value.labelWidth, style: p(g(Y)) }, v({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": re.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Ae, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: re.value ? "退出全屏" : "全屏编辑" }, [re.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(r2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", F, "字数:" + y(ie.value), 1)]), ae.value ? (u(), a("div", V, [...t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)])])) : f("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: p({ ...g(Q), ...g(X) }), class: "amb-form-item-label" }, y(g(T)(Z.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), he.value ? (u(), d(k2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
212
212
|
he.value = false;
|
|
213
213
|
}), "url-list": ve.value }, null, 8, ["url-list"])) : f("", true), c(q2, { modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: h(() => [b("div", { class: "richtext-preview-content ql-editor", innerHTML: se.value }, null, 8, W)]), _: 1 }, 8, ["modelValue"])], 64);
|
|
214
214
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as r, createBlock as u, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createElementVNode as d, withKeys as y, withModifiers as h, createCommentVNode as b, createElementBlock as x, Fragment as C, renderList as _, toDisplayString as w, createTextVNode as S } from "vue";
|
|
2
2
|
import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T, putToOptionSourceMap as j, autoSetAfterSelect as R, getVariableValue as P } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as M, handleAfterInitEvent as D } from "../../../../utils/events/event-util.js";
|
|
@@ -13,7 +13,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
13
13
|
const { t: N } = B(), Q = e2, X = l(null), Y = l(false), Z = Q.pageContext.entity ? Q.pageContext.entity : {};
|
|
14
14
|
let ee = V(Q.pageContext, Q.configure);
|
|
15
15
|
const le = Q.configure.runtime ? Q.configure.runtime : {}, te = le.style, oe = le.class, ae = le.headerStyle, ie = le.titleExceedStyle, ne = l(le.props ? le.props : {});
|
|
16
|
-
let
|
|
16
|
+
let re = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), ue = [];
|
|
17
17
|
const se = "copyBtn_" + Q.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
18
|
function pe() {
|
|
19
19
|
let e3 = P(Z, ee);
|
|
@@ -21,7 +21,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
21
21
|
}
|
|
22
22
|
const ce = t({ get: () => pe(), set(e3) {
|
|
23
23
|
const l2 = pe();
|
|
24
|
-
|
|
24
|
+
ue = Array.isArray(l2) ? [...l2] : l2;
|
|
25
25
|
let t2 = e3;
|
|
26
26
|
if (ne.value.multiple && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H)) {
|
|
27
27
|
const e4 = (fe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
|
|
@@ -57,7 +57,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
57
57
|
t2 && t2.length > 0 && (l2 = t2[0]);
|
|
58
58
|
let o2 = {};
|
|
59
59
|
l2 && (o2.extendParams = l2);
|
|
60
|
-
o2.options = fe.value, o2.oldValue =
|
|
60
|
+
o2.options = fe.value, o2.oldValue = ue, M(e3, Q.pageContext, Q.configure, "change", o2);
|
|
61
61
|
};
|
|
62
62
|
const be = ne.value.monitorFields, xe = [];
|
|
63
63
|
if (be) {
|
|
@@ -118,6 +118,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
118
118
|
e3.on("success", () => {
|
|
119
119
|
W({ showClose: true, type: "success", message: N("superPageRuntimeMessage.copySuccess") });
|
|
120
120
|
}), e3.on("error", (e4) => {
|
|
121
|
+
console.error("复制失败", e4);
|
|
121
122
|
}), n(() => {
|
|
122
123
|
const e4 = ce.value;
|
|
123
124
|
D(e4, Q.pageContext, Q.configure, { formItemRef: ke.value, componentRef: Ae.value, titleRef: Te.value, value: e4, entity: Q.pageContext.entity.data, pageData: Q.pageContext.entity.page });
|
|
@@ -144,10 +145,10 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
144
145
|
X.value = z();
|
|
145
146
|
}, getSelectItemsTitle: je, getOptions: function() {
|
|
146
147
|
return fe.value;
|
|
147
|
-
} }), (
|
|
148
|
-
const
|
|
149
|
-
return s(),
|
|
150
|
-
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue":
|
|
148
|
+
} }), (l2, t2) => {
|
|
149
|
+
const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), k2 = r("el-form-item");
|
|
150
|
+
return s(), u(k2, { ref_key: "formItemRef", ref: ke, required: !!ne.value.required, class: c(f(oe) + (X.value ? " " + X.value : "")), "label-width": ne.value.labelWidth, style: p(f(te)) }, v({ default: g(() => [m(n2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: g(() => [d("div", G, [m(i2, { ref_key: "componentRef", ref: Ae, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ne.value.state, size: ne.value.size, clearable: ne.value.clearable, multiple: ne.value.multiple, "collapse-tags": ne.value.collapseTags, "collapse-tags-tooltip": ne.value.collapseTagsTooltip, filterable: ne.value.filterable, "allow-create": ne.value.allowCreate, placeholder: ne.value.placeholder, "remote-show-suffix": ne.value.remoteShowSuffix, remote: ne.value.remote, "remote-method": ne.value.remoteMethod, loading: ge.value, onKeydown: t2[0] || (t2[0] = y(h(() => {
|
|
151
|
+
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => ce.value = e3) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Pe, ["stop"]) }, [m(o2, { style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), default: g(() => [ne.value.multiple && false !== ne.value.showSelectAll ? (s(), u(a2, { key: 0, label: f(N)("superGrid.selectAll"), value: H, disabled: !(fe.value && fe.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(fe.value, (l3) => (s(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(re) }), onClick: (t3) => f(M)(l3.value, e2.pageContext, e2.configure, "click", { values: ce.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(re) ? (s(), x("div", K, [d("span", null, w(l3.label), 1), d("span", L, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", U, w(l3.label), 1), d("span", $, w(l3._description_), 1)], 64))], 64)) : b("", true)]), _: 2 }, 1032, ["label", "value", "class", "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", "onClear", "modelValue"])])]), default: g(() => [d("span", F, [m(o2, { id: se, style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), _: 1 })]), _: 2 }, [ne.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Te, style: p({ ...f(ae), ...f(ie) }), class: "amb-form-item-label" }, [ne.value.prefixType ? (s(), u(I, { key: 0, pageContext: e2.pageContext, property: ne.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(q)(ne.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
151
152
|
};
|
|
152
153
|
} });
|
|
153
154
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
CHANGED
|
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
|
|
|
9
9
|
const e3 = y(v.configure.props.base.title);
|
|
10
10
|
b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
|
|
11
11
|
});
|
|
12
|
-
}), d2({}), (
|
|
12
|
+
}), d2({}), (t2, i2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e2.configure.props.base.title)), 1)], 4)], 6));
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
15
15
|
d as default
|
|
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
|
|
|
26
26
|
});
|
|
27
27
|
}), w2({ addRequiredClass: function() {
|
|
28
28
|
_.value = C();
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
return v(), n(
|
|
29
|
+
} }), (t2, l2) => {
|
|
30
|
+
const a2 = i("el-switch"), u2 = i("el-form-item");
|
|
31
|
+
return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, s({ default: f(() => [m(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|
|
@@ -24,19 +24,19 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
24
24
|
const e3 = E.value;
|
|
25
25
|
h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
|
-
}), (
|
|
28
|
-
const
|
|
29
|
-
return r(), n(
|
|
27
|
+
}), (t2, l2) => {
|
|
28
|
+
const a2 = o("el-tag"), i2 = o("el-form-item");
|
|
29
|
+
return r(), n(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (t3) => (r(), n(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
|
-
let
|
|
32
|
-
null ==
|
|
33
|
-
const l3 = Array.isArray(
|
|
34
|
-
l3 || (
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
let e5 = C(D, A);
|
|
32
|
+
null == e5 && (e5 = []);
|
|
33
|
+
const l3 = Array.isArray(e5);
|
|
34
|
+
l3 || (e5 = (e5 + "").split(","));
|
|
35
|
+
const a3 = e5.indexOf(t4.value);
|
|
36
|
+
a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
|
|
37
37
|
}
|
|
38
|
-
k(
|
|
39
|
-
}(
|
|
38
|
+
k(e4, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e3, t3), onClick: l2[0] || (l2[0] = (t4) => p(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -18,9 +18,9 @@ const q = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
|
|
|
18
18
|
});
|
|
19
19
|
}), q2({ addRequiredClass: function() {
|
|
20
20
|
z.value = _();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return r(), u("div", null, [i(
|
|
21
|
+
} }), (t2, l2) => {
|
|
22
|
+
const a2 = n("el-input"), o2 = n("el-form-item");
|
|
23
|
+
return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(a2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: E.value.placeholder, modelValue: B.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => B.value = e3), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e2.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -73,9 +73,9 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
|
|
|
73
73
|
const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
|
|
74
74
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
75
75
|
};
|
|
76
|
-
return (
|
|
77
|
-
const
|
|
78
|
-
return u($)(
|
|
76
|
+
return (o2, t2) => {
|
|
77
|
+
const n2 = i("permission");
|
|
78
|
+
return u($)(e2.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [n2, { codes: u(N) ? u(N) : "true", systemCode: e2.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -6,9 +6,9 @@ import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/gl
|
|
|
6
6
|
import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as M } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as V, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as S, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
9
|
+
import { isShowMobileEvent as H, isShowComponent as O } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as P } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as B } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
|
|
14
14
|
const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
@@ -17,7 +17,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
17
17
|
null == L2.configure.style && (L2.configure.style = {});
|
|
18
18
|
let k = null, D = w(L2.configure, L2.pageContext);
|
|
19
19
|
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = D);
|
|
20
|
-
const E = R(D || "true", L2.pageContext.systemCode), J =
|
|
20
|
+
const E = R(D || "true", L2.pageContext.systemCode), J = B(L2.pageContext, L2.configure), W = E && J;
|
|
21
21
|
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
|
|
22
22
|
let q = o(null), z = o(true), G = o("");
|
|
23
23
|
if (L2.configure && L2.configure.props) {
|
|
@@ -26,7 +26,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
26
26
|
var _a2;
|
|
27
27
|
let o2 = true;
|
|
28
28
|
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
29
|
-
else if (
|
|
29
|
+
else if (H(L2.pageContext, L2.configure)) if (e3 && e3.length > 0) o2 = V(L2.pageContext, e3);
|
|
30
30
|
else {
|
|
31
31
|
const e4 = (_a2 = L2.configure.props.base) == null ? void 0 : _a2.state;
|
|
32
32
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -80,7 +80,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
80
80
|
const t2 = Z.style[e3 + "_class"];
|
|
81
81
|
t2 && (X.value += " " + t2);
|
|
82
82
|
}
|
|
83
|
-
const ee =
|
|
83
|
+
const ee = P();
|
|
84
84
|
let oe = false;
|
|
85
85
|
function te(e3) {
|
|
86
86
|
var _a2, _b2, _c2;
|
|
@@ -131,7 +131,9 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
131
131
|
const o2 = e3.parentNode;
|
|
132
132
|
if (!e3 || !o2) return;
|
|
133
133
|
const t2 = e3.getBoundingClientRect();
|
|
134
|
-
let n2 = window.innerHeight - t2.y - 30
|
|
134
|
+
let n2 = window.innerHeight - t2.y - 30;
|
|
135
|
+
window.innerHeight, t2.y;
|
|
136
|
+
let i2 = n2 + "";
|
|
135
137
|
if ("tabs" === L2.configure.name && L2.pageContext.isDialog && !F()) {
|
|
136
138
|
const o3 = e3.closest(".runtime-page-container");
|
|
137
139
|
if (o3) {
|
|
@@ -142,7 +144,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
142
144
|
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", L2.configure.sytle || (L2.configure.sytle = {}), L2.configure.sytle._heightStyle = i2;
|
|
143
145
|
}
|
|
144
146
|
r(() => {
|
|
145
|
-
W &&
|
|
147
|
+
W && O(L2.configure) || ee.countComponentsLoadedNumber();
|
|
146
148
|
}), s(() => {
|
|
147
149
|
var _a2;
|
|
148
150
|
re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
|
|
@@ -157,7 +159,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
157
159
|
const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
|
|
158
160
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
159
161
|
};
|
|
160
|
-
return (
|
|
162
|
+
return (o2, t2) => a(W) && a(O)(e2.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
161
163
|
} });
|
|
162
164
|
export {
|
|
163
165
|
L as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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 a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (
|
|
3
|
+
const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (a2, r) => {
|
|
4
4
|
var _a;
|
|
5
|
-
return ((_a =
|
|
5
|
+
return ((_a = o2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (n(), e(p, { key: 0, pageContext: o2.pageContext }, null, 8, ["pageContext"])) : t("", true);
|
|
6
6
|
} });
|
|
7
7
|
export {
|
|
8
8
|
a as default
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js
CHANGED
|
@@ -42,10 +42,10 @@ const h = { class: "opinion-box-table-wrapper" }, C = { class: "opinion-table" }
|
|
|
42
42
|
}, hide: function() {
|
|
43
43
|
I.pageContext.workflowOpinion && (W.value = false);
|
|
44
44
|
} };
|
|
45
|
-
return E2(G), (
|
|
45
|
+
return E2(G), (n2, o2) => {
|
|
46
46
|
var _a, _b, _c;
|
|
47
|
-
const
|
|
48
|
-
return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" } }, null, 512), ((_a =
|
|
47
|
+
const l2 = u("el-input");
|
|
48
|
+
return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" } }, null, 512), ((_a = e2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: c({ height: V.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (s(), v(d, { to: "body" }, [((_b = e2.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? x((s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: H, class: "opinion-fixed-bar", style: c(A.value) }, [w("div", h, [w("table", C, [w("tbody", null, [w("tr", null, [w("td", y, [((_c = e2.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", R, "*")) : f("", true), o2[2] || (o2[2] = g(" 处理意见 ", -1))]), w("td", { class: m(["opinion-input-cell", _.value]) }, [k(l2, { ref_key: "opinionInputRef", ref: L, modelValue: z.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => z.value = e3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: o2[1] || (o2[1] = (e3) => {
|
|
49
49
|
I.pageContext.workflowOpinion && (I.pageContext.workflowOpinion.opinion = z.value.trim(), I.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
50
50
|
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)), [[b, W.value]]) : f("", true)]))], 64);
|
|
51
51
|
};
|