super-page-runtime 2.3.38-sit4 → 2.3.38
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 +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +257 -257
- package/dist/es/components/runtime/utils/events/validator-util.js +164 -161
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- 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 +100 -95
- 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 +2 -2
- 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 +33 -33
- 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 +7 -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 +43 -42
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +6 -4
- 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 +5 -4
- 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 +10 -8
- 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 +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +18 -17
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,78 +1,79 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as v, createSlots as f, withCtx as y, createVNode as m, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
|
|
2
2
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { getModelFieldFromPageContext as
|
|
5
|
-
import { handleFormEvent as
|
|
6
|
-
import { formatScanRuleSets as O, analysisScanValue as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t 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 R } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as O, analysisScanValue as N, setScanAnalysisValue as P } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import q from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as D, isDingTalkEnv as J } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import M from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as z } from "../../../../utils/i18n-util.js";
|
|
11
11
|
import { addRequiredClassUtil as L } 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 = t("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 = t(D()), U = F.pageContext.code, W = t(E && E.length > 0 ? U + "__" + E.join("__") : null), G = t(null), K = l({ get: () => _($, E), set(e3) {
|
|
21
21
|
b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
|
|
22
|
-
} }), Q =
|
|
23
|
-
let
|
|
24
|
-
|
|
22
|
+
} }), Q = t(null), X = t(null), Y = t(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = t(Z.props ? Z.props : {}), te = t(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
|
|
23
|
+
let le = false;
|
|
24
|
+
J() && (le = true);
|
|
25
25
|
let ne = "";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const oe = navigator.userAgent;
|
|
27
|
+
ne = oe.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
28
|
+
const ae = !(!H.value || !ne || "app" !== ne), ue = t(!!((ae || le) && te.value || H.value && te.value && "https:" === window.location.protocol));
|
|
29
|
+
let ie = {};
|
|
29
30
|
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(ee.value.scan.ruleList).then((e3) => {
|
|
30
|
-
|
|
31
|
+
ie = e3;
|
|
31
32
|
}), u(() => K.value, (e3) => {
|
|
32
33
|
e3 = e3.trim();
|
|
33
|
-
const
|
|
34
|
-
|
|
34
|
+
const t2 = N(e3, ie);
|
|
35
|
+
t2 && P(F.pageContext, t2.scanSet, t2.params);
|
|
35
36
|
}));
|
|
36
|
-
const
|
|
37
|
-
function
|
|
37
|
+
const re = Z.style, se = Z.class, pe = Z.headerStyle, ce = Z.titleExceedStyle;
|
|
38
|
+
function ve(e3) {
|
|
38
39
|
return b($, E, e3);
|
|
39
40
|
}
|
|
40
41
|
n(() => {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
M.$on(W.value + "-scanDone", (e3) => {
|
|
43
|
+
W.value, JSON.stringify(e3), ve(e3.result), S(e3.result, F.pageContext, F.configure, "afterScanDone");
|
|
43
44
|
}), o(() => {
|
|
44
45
|
var _a2;
|
|
45
46
|
const e3 = K.value;
|
|
46
|
-
|
|
47
|
+
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) && ye();
|
|
47
48
|
});
|
|
48
49
|
}), a(() => {
|
|
49
|
-
|
|
50
|
+
M.$off(W.value + "-scanDone");
|
|
50
51
|
});
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
if (
|
|
52
|
+
const fe = t(false);
|
|
53
|
+
function ye() {
|
|
54
|
+
if (ae || le) {
|
|
54
55
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
55
|
-
|
|
56
|
-
} else if (H.value) if ("https:" === window.location.protocol)
|
|
56
|
+
le && (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), "*"));
|
|
57
|
+
} else if (H.value) if ("https:" === window.location.protocol) fe.value = true;
|
|
57
58
|
else {
|
|
58
59
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
59
60
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
60
61
|
}
|
|
61
|
-
else
|
|
62
|
+
else fe.value = true;
|
|
62
63
|
}
|
|
63
64
|
function me(e3) {
|
|
64
|
-
|
|
65
|
+
fe.value = false, ve(e3);
|
|
65
66
|
}
|
|
66
67
|
return B2({ getValue: function() {
|
|
67
68
|
return _($, E);
|
|
68
|
-
}, setValue:
|
|
69
|
+
}, setValue: ve, scanClick: ye, addRequiredClass: function() {
|
|
69
70
|
G.value = L();
|
|
70
|
-
} }), (
|
|
71
|
-
const
|
|
72
|
-
return s(), r(
|
|
73
|
-
let
|
|
74
|
-
null !=
|
|
75
|
-
}(
|
|
71
|
+
} }), (t2, l2) => {
|
|
72
|
+
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
|
|
73
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(se) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(re)) }, f({ default: y(() => [m(n2, { 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": l2[5] || (l2[5] = (e3) => K.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
|
|
74
|
+
let t3 = _($, E);
|
|
75
|
+
null != t3 && (t3 = t3.trim()), b($, E, t3), S(e4, F.pageContext, F.configure, "blur");
|
|
76
|
+
}(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: y(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(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: y(() => [ue.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => ye()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), fe.value ? (s(), r(o2, { key: 0, onClose: me })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: y(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...v(pe), ...v(ce) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e2.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(z)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
76
77
|
};
|
|
77
78
|
} });
|
|
78
79
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as h, formatValueByType as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as w } from "agilebuilder-ui";
|
|
@@ -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.whetherTittle ? (s(),
|
|
31
|
+
} }), (t2, l2) => {
|
|
32
|
+
const n2 = u("el-form-item");
|
|
33
|
+
return W.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(W.value.title), 1)], 6)) : W.value.tittleShow ? (s(), i(n2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: l2[0] || (l2[0] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), i(f(w), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d(" " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), i(f(w), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), o("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(W.value.suffixTxt), 7)) : m("", true)]));
|
|
32
34
|
};
|
|
33
35
|
} });
|
|
34
36
|
export {
|
|
@@ -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(() => {
|
|
@@ -31,9 +33,9 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
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 i2 = a("el-link"), n2 = a("el-tooltip"), b2 = a("el-form-item");
|
|
38
|
+
return o(), u(b2, { ref_key: "formItemRef", ref: A, class: s(p(I)), "label-width": S.value.labelWidth, style: r(p(V)) }, f({ default: c(() => [m(n2, { disabled: !p(z), content: p(z) }, { default: c(() => [m(i2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(p(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), g(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...p(P) }), class: "amb-form-item-label" }, v(p(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
|
|
37
39
|
};
|
|
38
40
|
} });
|
|
39
41
|
export {
|
|
@@ -72,9 +72,9 @@ const z = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
72
72
|
l2.value === e3 && (t2 = t2 + l2.label + ",");
|
|
73
73
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
74
74
|
}
|
|
75
|
-
} }), (
|
|
76
|
-
const
|
|
77
|
-
return s(), r(
|
|
75
|
+
} }), (t2, l2) => {
|
|
76
|
+
const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
|
|
77
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: le, required: B.value.required, class: p(c(U) + (D.value ? " " + D.value : "")), "label-width": B.value.labelWidth, style: f(c(F)) }, g({ default: v(() => [d(n2, { ref_key: "componentRef", ref: oe, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => P.value = e3) }, { default: v(() => [(s(true), m(h, null, b(G.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(I)(t3.value, e2.pageContext, e2.configure, "click", { values: P.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ne, style: f({ ...c($), ...c(A) }), class: "amb-form-item-label" }, C(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
78
78
|
};
|
|
79
79
|
} });
|
|
80
80
|
export {
|
|
@@ -159,7 +159,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
159
159
|
const n2 = oe.root.getElementsByTagName("img");
|
|
160
160
|
for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
|
|
161
161
|
} catch (e5) {
|
|
162
|
-
Ae();
|
|
162
|
+
console.error("上传图片失败", e5), Ae();
|
|
163
163
|
} finally {
|
|
164
164
|
re.value = false;
|
|
165
165
|
}
|
|
@@ -189,7 +189,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
189
189
|
return oe ? oe.root.innerHTML : "";
|
|
190
190
|
} }), (e3, t2) => {
|
|
191
191
|
const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), x2 = a("el-form-item"), k2 = a("el-image-viewer"), w2 = a("el-dialog");
|
|
192
|
-
return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }), class: "amb-form-item-label" }, y(v(A)(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] = () => {
|
|
192
|
+
return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, [...t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)])])) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }), class: "amb-form-item-label" }, y(v(A)(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] = () => {
|
|
193
193
|
he.value = false;
|
|
194
194
|
}), "url-list": ge.value }, null, 8, ["url-list"])) : p("", true), c(w2, { 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, z)]), _: 1 }, 8, ["modelValue"])], 64);
|
|
195
195
|
};
|
|
@@ -118,6 +118,7 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
118
118
|
e3.on("success", () => {
|
|
119
119
|
O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
|
|
120
120
|
}), e3.on("error", (e4) => {
|
|
121
|
+
console.error("复制失败", e4);
|
|
121
122
|
}), n(() => {
|
|
122
123
|
const e4 = pe.value;
|
|
123
124
|
M(e4, N.pageContext, N.configure, { formItemRef: Se.value, componentRef: ke.value, titleRef: Ae.value, value: e4, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
@@ -144,10 +145,10 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
144
145
|
Q.value = q();
|
|
145
146
|
}, getSelectItemsTitle: Te, getOptions: function() {
|
|
146
147
|
return ce.value;
|
|
147
|
-
} }), (
|
|
148
|
-
const
|
|
149
|
-
return s(), u(
|
|
150
|
-
}, ["stop"]), ["space"])), onChange: ie.value.changeMethod, onClear: ie.value.changeMethod, onVisibleChange: je, modelValue: pe.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: Se, required: !!ie.value.required, class: c(f(te) + (Q.value ? " " + Q.value : "")), "label-width": ie.value.labelWidth, style: p(f(le)) }, 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", F, [m(i2, { ref_key: "componentRef", ref: ke, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ie.value.state, size: ie.value.size, clearable: ie.value.clearable, multiple: ie.value.multiple, "collapse-tags": ie.value.collapseTags, "collapse-tags-tooltip": ie.value.collapseTagsTooltip, filterable: ie.value.filterable, "allow-create": ie.value.allowCreate, placeholder: ie.value.placeholder, "remote-show-suffix": ie.value.remoteShowSuffix, remote: ie.value.remote, "remote-method": ie.value.remoteMethod, loading: ve.value, onKeydown: t2[0] || (t2[0] = y(h(() => {
|
|
151
|
+
}, ["stop"]), ["space"])), onChange: ie.value.changeMethod, onClear: ie.value.changeMethod, onVisibleChange: je, modelValue: pe.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => pe.value = e3) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Re, ["stop"]) }, [m(o2, { style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), default: g(() => [ie.value.multiple && false !== ie.value.showSelectAll ? (s(), u(a2, { key: 0, label: f(J)("superGrid.selectAll"), value: $, disabled: !(ce.value && ce.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(ce.value, (l3) => (s(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ne) }), onClick: (t3) => f(V)(l3.value, e2.pageContext, e2.configure, "click", { values: pe.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(ne) ? (s(), x("div", G, [d("span", null, w(l3.label), 1), d("span", K, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", L, w(l3.label), 1), d("span", U, 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", B, [m(o2, { id: ue, style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), _: 1 })]), _: 2 }, [ie.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Ae, style: p({ ...f(oe), ...f(ae) }), class: "amb-form-item-label" }, [ie.value.prefixType ? (s(), u(D, { key: 0, pageContext: e2.pageContext, property: ie.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(I)(ie.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 k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
@@ -18,7 +18,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
18
18
|
let D = null;
|
|
19
19
|
const E = w(k2.configure, k2.pageContext);
|
|
20
20
|
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = E);
|
|
21
|
-
const J = R(E || "true", k2.pageContext.systemCode), L =
|
|
21
|
+
const J = R(E || "true", k2.pageContext.systemCode), L = B(k2.pageContext, k2.configure), W = J && L;
|
|
22
22
|
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.isHasFieldAuthPermission = W), j(k2.pageContext, k2.configure, W);
|
|
23
23
|
let q = o(null), z = o(true), G = o("");
|
|
24
24
|
if (k2.configure && k2.configure.props) {
|
|
@@ -27,7 +27,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
27
27
|
var _a2;
|
|
28
28
|
let o2 = true;
|
|
29
29
|
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
30
|
-
else if (
|
|
30
|
+
else if (H(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = V(k2.pageContext, e3);
|
|
31
31
|
else {
|
|
32
32
|
const e4 = (_a2 = k2.configure.props.base) == null ? void 0 : _a2.state;
|
|
33
33
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -81,7 +81,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
81
81
|
const t2 = Z.style[e3 + "_class"];
|
|
82
82
|
t2 && (X.value += " " + t2);
|
|
83
83
|
}
|
|
84
|
-
const ee =
|
|
84
|
+
const ee = P();
|
|
85
85
|
function oe(e3) {
|
|
86
86
|
if (Q.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
87
87
|
q.value = "show";
|
|
@@ -129,7 +129,9 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
129
129
|
const o2 = e3.parentNode;
|
|
130
130
|
if (!e3 || !o2) return;
|
|
131
131
|
const t2 = e3.getBoundingClientRect();
|
|
132
|
-
let n2 = window.innerHeight - t2.y - 30
|
|
132
|
+
let n2 = window.innerHeight - t2.y - 30;
|
|
133
|
+
window.innerHeight, t2.y;
|
|
134
|
+
let i2 = n2 + "";
|
|
133
135
|
if ("tabs" === k2.configure.name && k2.pageContext.isDialog && !F()) {
|
|
134
136
|
const o3 = e3.closest(".runtime-page-container");
|
|
135
137
|
if (o3) {
|
|
@@ -156,7 +158,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
156
158
|
const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
|
|
157
159
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
158
160
|
};
|
|
159
|
-
return (
|
|
161
|
+
return (o2, t2) => a(W) && a(O)(e2.configure) ? u((g(), p(c(I.value), { key: 0, ref: oe, 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);
|
|
160
162
|
} });
|
|
161
163
|
export {
|
|
162
164
|
k 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
|
};
|
|
@@ -20,7 +20,7 @@ const g = { class: "dialog-footer" }, _ = e({ __name: "extract-workflow-runtime-
|
|
|
20
20
|
return w.props && (true === w.props.requireExtractTransactor && (h.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === w.props.isMustOpinion && (h.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }])), o(() => {
|
|
21
21
|
}), (e3, l2) => {
|
|
22
22
|
const o2 = a("el-icon"), s2 = a("el-input"), _3 = a("el-form-item"), x2 = a("el-form"), y2 = a("el-button"), w2 = a("el-dialog");
|
|
23
|
-
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => l2[6] || (l2[6] = [d("取消")])), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => l2[7] || (l2[7] = [d(" 确定 ")])), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
|
|
23
|
+
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => [...l2[6] || (l2[6] = [d("取消", -1)])]), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => [...l2[7] || (l2[7] = [d(" 确定 ", -1)])]), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -37,7 +37,7 @@ const w = { class: "page-runtime-header-btn" }, V = { class: "dialog-footer" },
|
|
|
37
37
|
_(l3).then((e6) => {
|
|
38
38
|
e6.canExecute && (j.value = true);
|
|
39
39
|
});
|
|
40
|
-
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => l2[7] || (l2[7] = [d("取消")])), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
|
|
40
|
+
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => [...l2[7] || (l2[7] = [d("取消", -1)])]), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => [...l2[8] || (l2[8] = [d(" 确定 ", -1)])]), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
|
|
41
41
|
};
|
|
42
42
|
} });
|
|
43
43
|
export {
|
|
@@ -25,7 +25,7 @@ const c = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
|
|
|
25
25
|
if (!o2 || o2.startsWith("initVal")) return;
|
|
26
26
|
((_b2 = (_a2 = t4 == null ? void 0 : t4.runtime) == null ? void 0 : _a2.props) == null ? void 0 : _b2.title) && (t4.runtime.props.title = o2);
|
|
27
27
|
}(t3), k.value.push(t3));
|
|
28
|
-
}), (
|
|
28
|
+
}), (e2, p2) => (o(), n("span", c, [(o(true), n(r, null, u(k.value, (e3, u2) => (o(), n(r, null, [e3.check ? (o(), i(s, { key: u2, pageContext: t2.pageContext, configure: e3 }, null, 8, ["pageContext", "configure"])) : a("", true)], 64))), 256))]));
|
|
29
29
|
} });
|
|
30
30
|
export {
|
|
31
31
|
l as default
|