super-page-runtime 2.3.50 → 2.3.51-sit1
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/charts/chart-util.d.ts +0 -5
- package/dist/es/components/runtime/utils/charts/chart-util.js +121 -90
- package/dist/es/components/runtime/utils/events/event-util.js +123 -122
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +92 -92
- package/dist/es/components/runtime/utils/events/validator-util.js +206 -209
- package/dist/es/components/runtime/utils/page-init-util.js +45 -47
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +8 -7
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +26 -14
- 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 +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- 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 +99 -104
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- 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 +9 -11
- 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 +0 -2
- 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.vue.js +1 -1
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -3
- 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 +97 -55
- 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 +6 -8
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- 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 -49
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +49 -29
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +61 -62
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
- 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 +9 -11
- 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/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +27 -23
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -7
- package/dist/es/components/runtime/views/super-page.vue2.js +98 -99
- package/dist/es/style.css +41 -34
- package/package.json +3 -3
|
@@ -45,9 +45,9 @@ const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {
|
|
|
45
45
|
}
|
|
46
46
|
return Q.length - 1 > 0 && Q[Q.length - 1] && Q[Q.length - 1].model && (U = z(Q[Q.length - 1].model)), _2({ addRequiredClass: function() {
|
|
47
47
|
q.value = j();
|
|
48
|
-
} }), (
|
|
49
|
-
const
|
|
50
|
-
return u(), p(
|
|
48
|
+
} }), (e3, t2) => {
|
|
49
|
+
const l2 = i("OrganizationInput"), o2 = i("el-form-item");
|
|
50
|
+
return u(), p(o2, { ref_key: "formItemRef", ref: K, required: A.value.required, class: s(d(G) + (q.value ? " " + q.value : "")), "label-width": A.value.labelWidth, style: r(d(B)) }, m({ default: f(() => [c(l2, { ref_key: "componentRef", ref: L, disabled: "disabled" == A.value.state, multiple: A.value.multiple, treeType: A.value.treeType, value: P.value, models: d(O), departmentInfo: W.value, limitFilterColumn: A.value.limitFilterColumn, pageModels: d($), fields: d(Q), inputShowWay: A.value.inputShowWay, autosize: A.value.autosize, size: A.value.size, displayItem: A.value.displayItem, separator: A.value.separator, onSetValue: X, onShowTree: Y }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "inputShowWay", "autosize", "size", "displayItem", "separator"])]), _: 2 }, [A.value.tittleShow ? { name: "label", fn: f(() => [g("div", { ref_key: "titleRef", ref: N, style: r({ ...d(H), ...d(J) }), class: "amb-form-item-label" }, [A.value.prefixType ? (u(), p(F, { key: 0, pageContext: e3.pageContext, property: A.value }, null, 8, ["pageContext", "property"])) : (u(), v(y, { key: 1 }, [x(h(d(I)(A.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
51
51
|
};
|
|
52
52
|
} });
|
|
53
53
|
export {
|
|
@@ -14,9 +14,9 @@ const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {}
|
|
|
14
14
|
const e3 = b.value;
|
|
15
15
|
v(e3, m2.pageContext, m2.configure, { componentRef: k.value, value: e3, entity: m2.pageContext.entity.data, pageData: m2.pageContext.entity.page });
|
|
16
16
|
});
|
|
17
|
-
}), (
|
|
18
|
-
const
|
|
19
|
-
return l(), u(
|
|
17
|
+
}), (e3, t2) => {
|
|
18
|
+
const n2 = i("el-divider");
|
|
19
|
+
return l(), u(n2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: t2[0] || (t2[0] = (t3) => a(g)(t3, e3.pageContext, e3.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
|
|
20
20
|
};
|
|
21
21
|
} });
|
|
22
22
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -49,11 +49,10 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
49
49
|
return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: S(O.value.title) }), e3.pageContext || (e3.pageContext = z.pageContext), e3.configure || (e3.configureObj = z.configure), w(e3);
|
|
50
50
|
}
|
|
51
51
|
function le() {
|
|
52
|
-
if (z.pageContext.fileuploadInfo
|
|
52
|
+
if (z.pageContext.fileuploadInfo && z.configure.uuid) {
|
|
53
53
|
const e3 = z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid);
|
|
54
54
|
-1 !== e3 && z.pageContext.fileuploadInfo.splice(e3, 1);
|
|
55
55
|
}
|
|
56
|
-
z.pageContext.fileuploadInfo;
|
|
57
56
|
}
|
|
58
57
|
function oe(e3) {
|
|
59
58
|
le();
|
|
@@ -81,7 +80,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
81
80
|
}, re = t(null), pe = t(null);
|
|
82
81
|
return o(() => {
|
|
83
82
|
N.$on(K.value + "-pickFileDone", (e3) => {
|
|
84
|
-
|
|
83
|
+
M.value.pickFileDone(e3);
|
|
85
84
|
}), a(() => {
|
|
86
85
|
const e3 = (e4, t3, l3) => {
|
|
87
86
|
if (!t3) return;
|
|
@@ -92,8 +91,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
92
91
|
y(z.pageContext.entity, e4, l4);
|
|
93
92
|
break;
|
|
94
93
|
}
|
|
95
|
-
} catch (
|
|
96
|
-
console.error("设置默认值出错:", e4, t5);
|
|
94
|
+
} catch (e5) {
|
|
97
95
|
break;
|
|
98
96
|
}
|
|
99
97
|
};
|
|
@@ -105,9 +103,9 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
105
103
|
N.$off(K.value + "-pickFileDone");
|
|
106
104
|
}), _2({ addRequiredClass: function() {
|
|
107
105
|
R.value = j();
|
|
108
|
-
} }), (
|
|
109
|
-
const
|
|
110
|
-
return O.value.tittleShow ? (p(), u(
|
|
106
|
+
} }), (e3, t2) => {
|
|
107
|
+
const l2 = n("el-form-item");
|
|
108
|
+
return O.value.tittleShow ? (p(), u(l2, { key: 0, ref_key: "formItemRef", ref: re, required: O.value.required, class: f(d(W) + (R.value ? " " + R.value : "")), "label-width": O.value.labelWidth, style: s(d(q)) }, m({ default: c(() => [Q.value ? (p(), u(d(P), { key: 0, ref_key: "fileUploadRef", ref: M, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: d(S)(O.value.placeholder), limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": Y.value, "file-list": X.value, "system-code": e3.pageContext.systemCode, componentId: K.value, watermark: d(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e3.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 2 }, [O.value.tittleShow ? { name: "label", fn: c(() => [v("div", { ref_key: "titleRef", ref: pe, style: s({ ...d(V), ...d($) }), class: "amb-form-item-label" }, g(d(S)(O.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : Q.value ? (p(), u(d(P), { key: 1, ref_key: "fileUploadRef", ref: M, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: d(S)(O.value.placeholder), limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": Y.value, "file-list": X.value, "system-code": e3.pageContext.systemCode, componentId: K.value, watermark: d(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e3.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
|
|
111
109
|
};
|
|
112
110
|
} });
|
|
113
111
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js
CHANGED
|
@@ -21,11 +21,10 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
21
21
|
return -1 === N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid) && N.pageContext.fileuploadInfo.push({ uuid: N.configure.uuid, label: S(D.value.title) }), e3.pageContext || (e3.pageContext = N.pageContext), e3.configure || (e3.configureObj = N.configure), C(e3);
|
|
22
22
|
}
|
|
23
23
|
function Y() {
|
|
24
|
-
if (N.pageContext.fileuploadInfo
|
|
24
|
+
if (N.pageContext.fileuploadInfo && N.configure.uuid) {
|
|
25
25
|
const e3 = N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid);
|
|
26
26
|
-1 !== e3 && N.pageContext.fileuploadInfo.splice(e3, 1);
|
|
27
27
|
}
|
|
28
|
-
N.pageContext.fileuploadInfo;
|
|
29
28
|
}
|
|
30
29
|
function Z(e3) {
|
|
31
30
|
Y();
|
|
@@ -72,7 +71,7 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
72
71
|
}, ae = t(null), ie = t(null);
|
|
73
72
|
return l(() => {
|
|
74
73
|
j.$on(H.value + "-pickFileDone", (e3) => {
|
|
75
|
-
|
|
74
|
+
K.value.pickFileDone(e3);
|
|
76
75
|
}), o(() => {
|
|
77
76
|
const e3 = g($, E), t2 = { showName: g($, U), serverPath: e3 };
|
|
78
77
|
h(t2, N.pageContext, N.configure, { formItemRef: ae.value, componentRef: K.value, titleRef: ie.value, value: t2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
@@ -81,9 +80,9 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
81
80
|
j.$off(H.value + "-pickFileDone");
|
|
82
81
|
}), _2({ addRequiredClass: function() {
|
|
83
82
|
O.value = P();
|
|
84
|
-
} }), (
|
|
85
|
-
const
|
|
86
|
-
return D.value.tittleShow ? (r(), n(
|
|
83
|
+
} }), (e3, t2) => {
|
|
84
|
+
const l2 = i("el-form-item");
|
|
85
|
+
return D.value.tittleShow ? (r(), n(l2, { key: 0, ref_key: "formItemRef", ref: ae, required: D.value.required, class: s(f(F) + (O.value ? " " + O.value : "")), "label-width": D.value.labelWidth, style: p(f(R)) }, d({ default: m(() => [L.value ? (r(), n(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: D.value.accept && Object.keys(D.value.accept).length > 0 ? D.value.accept : "image/*", disabled: "disabled" === D.value.state, displayType: D.value.displayType, multiple: D.value.multiple, placeholder: f(S)(D.value.placeholder), limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "max-display-count": D.value.maxDisplayCount, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e3.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "max-display-count", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true)]), _: 2 }, [D.value.tittleShow ? { name: "label", fn: m(() => [c("div", { ref_key: "titleRef", ref: ie, style: p({ ...f(q), ...f(W) }), class: "amb-form-item-label" }, v(f(S)(D.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : L.value ? (r(), n(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: D.value.accept, disabled: "disabled" === D.value.state, displayType: D.value.displayType, multiple: D.value.multiple, placeholder: f(S)(D.value.placeholder), limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "max-display-count": D.value.maxDisplayCount, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e3.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "max-display-count", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true);
|
|
87
86
|
};
|
|
88
87
|
} });
|
|
89
88
|
export {
|
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
|
+
} }), (e3, t2) => {
|
|
22
|
+
const l2 = n("el-input-number"), o2 = n("el-form-item");
|
|
23
|
+
return i(), u(o2, { 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(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, controls: W.value.showButton, size: W.value.size, placeholder: p(_)(W.value.placeholder), modelValue: I.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => I.value = e4), precision: W.value.precision, step: W.value.step, min: W.value.min, max: W.value.max, onChange: t2[1] || (t2[1] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(j)(t3, e3.pageContext, e3.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: e3.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,79 +1,78 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, 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
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
3
|
+
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { getModelFieldFromPageContext as w, isNumberDataType as b, setVariableValue as h, 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 D, analysisScanValue as O, setScanAnalysisValue as P } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import q from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as M, isDingTalkEnv as N } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import z from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as J } 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 = l("text");
|
|
15
|
+
let E = V(F.pageContext, F.configure);
|
|
16
16
|
if (F.pageContext.modelFieldsMap) {
|
|
17
|
-
const e3 =
|
|
18
|
-
e3 && (A.value =
|
|
17
|
+
const e3 = w(E, F.pageContext);
|
|
18
|
+
e3 && (A.value = b(e3.dataType) ? "number" : "text");
|
|
19
19
|
}
|
|
20
|
-
const H =
|
|
21
|
-
|
|
22
|
-
} }), Q =
|
|
23
|
-
let
|
|
24
|
-
|
|
20
|
+
const H = l(M()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = t({ get: () => _($, E), set(e3) {
|
|
21
|
+
h($, E, e3), null != e3 && "" !== e3 && (G.value = "");
|
|
22
|
+
} }), Q = l(null), X = l(null), Y = l(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
|
|
23
|
+
let te = false;
|
|
24
|
+
N() && (te = true);
|
|
25
25
|
let ne = "";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
ie = e3;
|
|
26
|
+
ne = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
27
|
+
const oe = !(!H.value || !ne || "app" !== ne), ae = l(!!((oe || te) && le.value || H.value && le.value && "https:" === window.location.protocol));
|
|
28
|
+
let ue = {};
|
|
29
|
+
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (D(ee.value.scan.ruleList).then((e3) => {
|
|
30
|
+
ue = e3;
|
|
32
31
|
}), u(() => K.value, (e3) => {
|
|
33
32
|
e3 = e3.trim();
|
|
34
|
-
const
|
|
35
|
-
|
|
33
|
+
const l2 = O(e3, ue);
|
|
34
|
+
l2 && P(F.pageContext, l2.scanSet, l2.params);
|
|
36
35
|
}));
|
|
37
|
-
const
|
|
38
|
-
function
|
|
39
|
-
return
|
|
36
|
+
const ie = Z.style, re = Z.class, se = Z.headerStyle, pe = Z.titleExceedStyle;
|
|
37
|
+
function ce(e3) {
|
|
38
|
+
return h($, E, e3);
|
|
40
39
|
}
|
|
41
40
|
n(() => {
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
z.$on(W.value + "-scanDone", (e3) => {
|
|
42
|
+
ce(e3.result), S(e3.result, F.pageContext, F.configure, "afterScanDone");
|
|
44
43
|
}), o(() => {
|
|
45
44
|
var _a2;
|
|
46
45
|
const e3 = K.value;
|
|
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 }),
|
|
46
|
+
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 }), ae.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
|
|
48
47
|
});
|
|
49
48
|
}), a(() => {
|
|
50
|
-
|
|
49
|
+
z.$off(W.value + "-scanDone");
|
|
51
50
|
});
|
|
52
|
-
const
|
|
53
|
-
function
|
|
54
|
-
if (
|
|
51
|
+
const ve = l(false);
|
|
52
|
+
function fe() {
|
|
53
|
+
if ("disabled" !== ee.value.state && "readonly" !== ee.value.state) if (oe || te) {
|
|
55
54
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
56
|
-
|
|
57
|
-
} else if (H.value) if ("https:" === window.location.protocol)
|
|
55
|
+
te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
|
|
56
|
+
} else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
|
|
58
57
|
else {
|
|
59
58
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
60
59
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
61
60
|
}
|
|
62
|
-
else
|
|
61
|
+
else ve.value = true;
|
|
63
62
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
63
|
+
function ye(e3) {
|
|
64
|
+
ve.value = false, ce(e3), S(e3, F.pageContext, F.configure, "afterScanDone");
|
|
66
65
|
}
|
|
67
66
|
return B2({ getValue: function() {
|
|
68
|
-
return
|
|
69
|
-
}, setValue:
|
|
67
|
+
return _($, E);
|
|
68
|
+
}, setValue: ce, scanClick: fe, addRequiredClass: function() {
|
|
70
69
|
G.value = L();
|
|
71
|
-
} }), (
|
|
72
|
-
const
|
|
73
|
-
return
|
|
74
|
-
let
|
|
75
|
-
null !=
|
|
76
|
-
}(
|
|
70
|
+
} }), (e3, l2) => {
|
|
71
|
+
const t2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
|
|
72
|
+
return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(ie)) }, f({ default: y(() => [m(t2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: v(J)(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] = (e4) => K.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (e4) => function(e5) {
|
|
73
|
+
let l3 = _($, E);
|
|
74
|
+
null != l3 && (l3 = l3.trim()), h($, E, l3), S(e5, F.pageContext, F.configure, "blur");
|
|
75
|
+
}(e4)), onFocus: l2[9] || (l2[9] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "click")), onClear: l2[11] || (l2[11] = (l3) => v(S)(l3, e3.pageContext, e3.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] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(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] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(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] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: y(() => [ae.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => fe()) })) : 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] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(n2, { key: 0, onClose: ye, onCancel: l2[12] || (l2[12] = (e4) => ve.value = false) })) : 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(se), ...v(pe) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(J)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
77
76
|
};
|
|
78
77
|
} });
|
|
79
78
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./label-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-bda987c5"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,38 +1,58 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as u, resolveComponent as i, createElementBlock as o, createBlock as a, openBlock as s, normalizeStyle as r, normalizeClass as p, 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
|
-
import { getVariableValue as h, formatValueByType as w } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { SuperIcon as
|
|
5
|
-
import { getCustomFunc as
|
|
6
|
-
import { $t as
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (
|
|
3
|
+
import { getVariableValue as h, formatValueByType as w, getParamNames as T, getValueFromVariable as k } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { SuperIcon as C } from "agilebuilder-ui";
|
|
5
|
+
import { getCustomFunc as _, handleAfterInitEvent as I, handleFormEvent as b } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { $t as V } from "../../../../utils/i18n-util.js";
|
|
7
|
+
const j = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, R = { style: { overflow: "hidden", "white-space": "nowrap" } }, S = ["title"], P = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
|
|
8
|
+
const q = e2, O = q.pageContext.entity ? q.pageContext.entity : {};
|
|
9
|
+
let $ = x(q.pageContext, q.configure);
|
|
10
|
+
const A = q.configure.runtime ? q.configure.runtime : {}, z = A.style, D = A.class, E = A.headerStyle, F = A.appendClass, N = A.appendStyle, W = A.titleExceedStyle, B = t(A.props ? A.props : {});
|
|
11
|
+
const G = t(B.value.options ? B.value.options : []), H = B.value.formatType;
|
|
12
|
+
function J(e3) {
|
|
13
|
+
if (!e3) return "";
|
|
14
|
+
const t2 = T(e3);
|
|
15
|
+
if (0 === t2.length) {
|
|
16
|
+
const t3 = V(e3);
|
|
17
|
+
return "string" == typeof t3 ? t3 : "";
|
|
18
|
+
}
|
|
19
|
+
const l2 = V(e3);
|
|
20
|
+
return "string" == typeof l2 && l2 !== e3 ? function(e4, t3) {
|
|
21
|
+
return t3.reduce((e5, t4) => {
|
|
22
|
+
const l3 = k(O, t4);
|
|
23
|
+
return e5.split(t4).join(null == l3 ? "" : String(l3));
|
|
24
|
+
}, e4);
|
|
25
|
+
}(l2, t2) : e3.split(/(\$\{[^}]+\})/g).map((e4) => {
|
|
26
|
+
if (/^\$\{[^}]+\}$/.test(e4)) {
|
|
27
|
+
const t3 = k(O, e4);
|
|
28
|
+
return null == t3 ? "" : String(t3);
|
|
29
|
+
}
|
|
30
|
+
return e4 ? V(e4) : "";
|
|
31
|
+
}).join("");
|
|
32
|
+
}
|
|
33
|
+
const K = l(() => J(B.value.title)), L = l(() => {
|
|
34
|
+
let e3 = h(O, $);
|
|
35
|
+
if (H) if (B.value.hasOptions) {
|
|
16
36
|
let t2 = null;
|
|
17
|
-
|
|
18
|
-
} else if ("custom" ===
|
|
19
|
-
const t2 =
|
|
20
|
-
t2 && (e3 = t2.apply(t2, [{ pageContext:
|
|
21
|
-
} else e3 = w(e3,
|
|
37
|
+
G.value && (t2 = G.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
|
|
38
|
+
} else if ("custom" === H) {
|
|
39
|
+
const t2 = _(q.pageContext, B.value.formatFunc);
|
|
40
|
+
t2 && (e3 = t2.apply(t2, [{ pageContext: q.pageContext, configureObj: q.configure, value: e3 }]));
|
|
41
|
+
} else e3 = w(e3, H, B.value);
|
|
22
42
|
return e3 = null == e3 ? "" : e3, e3;
|
|
23
|
-
}),
|
|
43
|
+
}), M = t(null), Q = t(null), U = t(null);
|
|
24
44
|
return n(() => {
|
|
25
|
-
|
|
26
|
-
const e3 =
|
|
27
|
-
|
|
45
|
+
u(() => {
|
|
46
|
+
const e3 = L.value;
|
|
47
|
+
I(e3, q.pageContext, q.configure, { formItemRef: M.value, componentRef: Q.value, titleRef: U.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
28
48
|
});
|
|
29
|
-
}),
|
|
30
|
-
|
|
31
|
-
} }), (
|
|
32
|
-
const
|
|
33
|
-
return
|
|
49
|
+
}), P2({ updateOptions: function(e3) {
|
|
50
|
+
G.value = e3 || [];
|
|
51
|
+
} }), (e3, t2) => {
|
|
52
|
+
const l2 = i("el-form-item");
|
|
53
|
+
return B.value.whetherTitle || B.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: U, class: p(f(D)), style: r(f(z)) }, [c("div", j, v(K.value), 1)], 6)) : B.value.tittleShow ? (s(), a(l2, { key: 1, ref_key: "formItemRef", ref: M, required: !!B.value.required, class: p([f(D), B.value.contentAlign ? "form-item-align-" + B.value.contentAlign : "formNo" === B.value.showType ? "form-item-align-flex-end" : ""]), "label-width": B.value.labelWidth, style: r(f(z)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: Q, onClick: t2[0] || (t2[0] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", R, [B.value.preIconValue || B.value.preText ? (s(), o("span", { key: 0, class: p({ "el-input__suffix": "outer" != B.value.iconPosition, "el-input-group__append": "outer" == B.value.iconPosition }), style: r(f(N)) }, [B.value.preIconType && B.value.preIconValue ? (s(), a(f(C), { key: 0, iconType: B.value.preIconType, iconValue: B.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(V)(B.value.preText)), 1)], 6)) : m("", true), d(" " + v(L.value), 1)]), B.value.sufIconValue || B.value.sufText ? (s(), o("span", { key: 0, class: p({ "el-input__suffix": "outer" != B.value.iconPosition, "el-input-group__append": "outer" == B.value.iconPosition }) }, [B.value.sufIconType && B.value.sufIconValue ? (s(), a(f(C), { key: 0, style: {}, iconType: B.value.sufIconType, iconValue: B.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(V)(B.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: U, style: r({ ...f(E), ...f(W) }) }, v(K.value), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: L.value }, v(B.value.prefixIcon) + " " + v(L.value), 9, S), B.value.suffixTxt ? (s(), o("span", { key: 0, class: p(f(F)), style: r(f(N)) }, v(f(V)(B.value.suffixTxt)), 7)) : m("", true)]));
|
|
34
54
|
};
|
|
35
55
|
} });
|
|
36
56
|
export {
|
|
37
|
-
|
|
57
|
+
P as default
|
|
38
58
|
};
|
|
@@ -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 i, nextTick as a, resolveComponent as n, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as p, unref as s, 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,9 +7,7 @@ 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 : {});
|
|
11
|
-
S.value;
|
|
12
|
-
const $ = t();
|
|
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 : {}), $ = t();
|
|
13
11
|
((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
|
|
14
12
|
let q = S.value.formatting;
|
|
15
13
|
const D = T2.pageContext.entity ? T2.pageContext.entity : {}, J = l(() => {
|
|
@@ -28,14 +26,14 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
28
26
|
return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
|
|
29
27
|
}));
|
|
30
28
|
const A = t(null), B = t(null), E = t(null);
|
|
31
|
-
return
|
|
32
|
-
|
|
29
|
+
return i(() => {
|
|
30
|
+
a(() => {
|
|
33
31
|
const e3 = J.value;
|
|
34
32
|
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 });
|
|
35
33
|
});
|
|
36
|
-
}), (
|
|
37
|
-
const
|
|
38
|
-
return o(), u(
|
|
34
|
+
}), (e3, t2) => {
|
|
35
|
+
const l2 = n("el-link"), i2 = n("el-tooltip"), a2 = n("el-form-item");
|
|
36
|
+
return o(), u(a2, { ref_key: "formItemRef", ref: A, class: p(s(I)), "label-width": S.value.labelWidth, style: r(s(V)) }, f({ default: c(() => [m(i2, { disabled: !s(z), content: s(z) }, { default: c(() => [m(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type ? S.value.type : "primary", underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => s(C)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(s(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({ ...s(P) }), class: "amb-form-item-label" }, v(s(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
|
|
39
37
|
};
|
|
40
38
|
} });
|
|
41
39
|
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
|
+
} }), (e3, t2) => {
|
|
78
|
+
const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
|
|
79
|
+
return s(), r(n2, { 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(o2, { ref_key: "componentRef", ref: ne, disabled: "disabled" === G.value.state, size: G.value.size, onChange: G.value.changeMethod, modelValue: W.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => W.value = e4) }, { default: v(() => [(s(true), m(h, null, b(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(q)(t3.value, e3.pageContext, e3.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 {
|
|
@@ -195,7 +195,7 @@ const N = { class: "toolbar-right-btns" }, B = ["title"], I = ["title"], _ = ["t
|
|
|
195
195
|
const r2 = pe.root.getElementsByTagName("img");
|
|
196
196
|
for (const e6 of r2) e6.src === t4 && (e6.width = 300, e6.src = i2.url, e6.setAttribute("data-uuid", i2.uuid));
|
|
197
197
|
} catch (e5) {
|
|
198
|
-
|
|
198
|
+
$e();
|
|
199
199
|
} finally {
|
|
200
200
|
he.value = false;
|
|
201
201
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import e from "./select-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
+
/* empty css */
|
|
3
4
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(e, [["__scopeId", "data-v-
|
|
5
|
+
const r = t(e, [["__scopeId", "data-v-a9e40942"]]);
|
|
5
6
|
export {
|
|
6
7
|
r as default
|
|
7
8
|
};
|