super-page-runtime 2.3.51-sit2 → 2.3.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +11 -11
- package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
- package/dist/es/components/runtime/utils/page-init-util.js +47 -45
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +8 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +46 -45
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +8 -8
- 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.vue2.js +9 -8
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/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 +7 -6
- package/dist/es/components/runtime/views/super-page.vue2.js +99 -98
- package/package.json +75 -75
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as
|
|
2
|
-
import { handleAfterInitEvent as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as r, openBlock as i, normalizeStyle as a, normalizeClass as s, unref as l } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as c } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { getSystemFrontendUrl as u } from "agilebuilder-ui/src/utils/common-util.js";
|
|
4
4
|
const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2, { expose: g2 }) {
|
|
5
5
|
const p = e2, m = t(null), d = p.configure.runtime ? p.configure.runtime : {}, y = d.style, w = d.class, h = t();
|
|
@@ -26,7 +26,7 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
26
26
|
t2(n3);
|
|
27
27
|
} else n2(new Error("System not found"));
|
|
28
28
|
}).catch((e4) => {
|
|
29
|
-
n2(e4);
|
|
29
|
+
console.error("Failed to load page for iframe:", e4), n2(e4);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -35,11 +35,11 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
35
35
|
}
|
|
36
36
|
return n(() => {
|
|
37
37
|
o(() => {
|
|
38
|
-
|
|
38
|
+
c(null, p.pageContext, p.configure, { componentRef: m.value, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
|
|
39
39
|
});
|
|
40
40
|
}), g2({ changeIframeSrc: b, changeIframeSrcByPage: v, getPagePathByCode: P, refreshIframe: function() {
|
|
41
41
|
m.value && m.value.contentWindow.location.reload();
|
|
42
|
-
} }), (e3, t2) => (
|
|
42
|
+
} }), (e3, t2) => (i(), r("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: s(["amb-widget-container-iframe", l(w)]), style: a(l(y)) }, null, 14, f));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
g as default
|
|
@@ -86,9 +86,9 @@ const P = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
|
|
|
86
86
|
V.configure.items.forEach((t2) => {
|
|
87
87
|
e3.includes(t2.code) && n2.push(t2.code);
|
|
88
88
|
}), A.value = [...new Set(n2)];
|
|
89
|
-
} }), (
|
|
90
|
-
const
|
|
91
|
-
return u(), c(l(x), { ref_key: "thisRef", ref: I, modelValue: _.value, "onUpdate:modelValue":
|
|
89
|
+
} }), (n2, t2) => {
|
|
90
|
+
const o2 = i("el-button");
|
|
91
|
+
return u(), c(l(x), { ref_key: "thisRef", ref: I, modelValue: _.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => _.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(l(j)), class: r([l(B), "runtime-page-container-tabs-view"]), closable: e2.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: U, onEdit: q }, { default: p(() => [(u(true), f(d, null, m(V.configure.items, (n3, t3) => (u(), c(l(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e2.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (u(), c(l(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(z)) }, y(l(O)(n3.label)), 5)]), default: p(() => [(e2.configure.props.isFullyRendered ?? 1) || n3.code === _.value ? (u(true), f(d, { key: 0 }, m(n3.items, (n4) => (u(), c(T, { key: n4.uuid, pageContext: e2.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e2.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e2.configure.props.resetable ? (u(), c(o2, { key: 0, type: "text", circle: "", onClick: v(G, ["stop"]) }, { default: p(() => [h(y(e2.configure.props.resetButtonName || l(O)("superPageRuntimeMessage.reset")), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as r, onMounted as a, watch as o, resolveComponent as l, createBlock as n, openBlock as u, normalizeStyle as i, normalizeClass as s, unref as c, withCtx as p, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
2
|
import d from "qrcode";
|
|
3
3
|
import v from "jsbarcode";
|
|
4
4
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
12
12
|
let k = y(q.pageContext, q.configure);
|
|
13
13
|
const A = t({ get: () => x(N, k), set(e3) {
|
|
14
14
|
h(N, k, e3);
|
|
15
|
-
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ =
|
|
15
|
+
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ = r(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = r(""), I = r(null), Q = r(_.value.brCodeFormat ?? "CODE128"), V = r([]);
|
|
16
16
|
function F(e3) {
|
|
17
17
|
return h(N, k, e3);
|
|
18
18
|
}
|
|
@@ -22,15 +22,16 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
22
22
|
function L(e3) {
|
|
23
23
|
var t2;
|
|
24
24
|
"QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
|
|
25
|
-
e4
|
|
25
|
+
e4 ? console.error(e4) : $.value = t3;
|
|
26
26
|
})) : function(e4) {
|
|
27
27
|
try {
|
|
28
28
|
v(I.value, e4, { format: Q.value });
|
|
29
29
|
} catch (e5) {
|
|
30
|
+
console.error("生成条形码时发生错误:", e5);
|
|
30
31
|
}
|
|
31
32
|
}(e3);
|
|
32
33
|
}
|
|
33
|
-
return
|
|
34
|
+
return a(() => {
|
|
34
35
|
_.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
|
|
35
36
|
o(() => q.pageContext.entity.data[e3], (e4, t2) => {
|
|
36
37
|
null != e4 && function() {
|
|
@@ -38,15 +39,15 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
38
39
|
V.value.forEach((t3) => {
|
|
39
40
|
q.pageContext.entity.data[t3] || (e5 = false);
|
|
40
41
|
}), e5 && J(function(e6, t3) {
|
|
41
|
-
const
|
|
42
|
-
return e6.replace(
|
|
42
|
+
const r2 = /\$\{(\w+)\}/g;
|
|
43
|
+
return e6.replace(r2, (e7, r3) => t3.hasOwnProperty(r3) ? t3[r3] : e7);
|
|
43
44
|
}(_.value.generateRule, q.pageContext.entity.data));
|
|
44
45
|
}();
|
|
45
46
|
});
|
|
46
47
|
})) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/component/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
|
|
47
48
|
const t2 = JSON.parse(e3.barcodeModelItems);
|
|
48
49
|
t2.forEach((e4) => {
|
|
49
|
-
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5,
|
|
50
|
+
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, r2) => {
|
|
50
51
|
if (null != e5) {
|
|
51
52
|
const e6 = b(t2, q.pageContext.entity.data);
|
|
52
53
|
e6 && J(e6);
|
|
@@ -54,12 +55,13 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
54
55
|
}));
|
|
55
56
|
});
|
|
56
57
|
}).catch((e3) => {
|
|
58
|
+
console.error("获取条码规则失败:", e3);
|
|
57
59
|
})), A.value && L(A.value);
|
|
58
60
|
}), D2({ getValue: function() {
|
|
59
61
|
return x(N, k);
|
|
60
62
|
}, setValue: F }), (e3, t2) => {
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
+
const r2 = l("el-form-item");
|
|
64
|
+
return u(), n(r2, { required: !!_.value.required, class: s(c(P)), "label-width": _.value.labelWidth, style: i(c(O)) }, { label: p(() => [_.value.tittleShow ? (u(), m("div", { key: 0, style: i({ ...c(S) }) }, g(c(R)(_.value.title)), 5)) : f("", true)]), default: p(() => ["QR-code" === _.value.type ? (u(), m("img", { key: 0, src: $.value }, null, 8, j)) : (u(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
63
65
|
};
|
|
64
66
|
} });
|
|
65
67
|
export {
|
|
@@ -289,7 +289,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
289
289
|
}
|
|
290
290
|
n(() => {
|
|
291
291
|
const e3 = Xe();
|
|
292
|
-
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
292
|
+
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle && Y.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
293
293
|
se.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
294
294
|
}), H.$on(de + "_close-dialog-get-entity", () => {
|
|
295
295
|
H.$emit(de + "_close-super-dialog");
|
|
@@ -83,7 +83,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
83
83
|
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
84
84
|
var _a;
|
|
85
85
|
(_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
86
|
-
} }), (
|
|
86
|
+
} }), (t2, n2) => (l(), u("div", null, [r(g) && "form" === r(g) && C.value ? (l(), o(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (l(), o(c, { key: 1, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
|
|
87
87
|
} });
|
|
88
88
|
export {
|
|
89
89
|
f as default
|
|
@@ -112,29 +112,29 @@ const W = { key: 0, class: "custom-tree-node" }, z = ["title"], B = { key: 0, cl
|
|
|
112
112
|
te.value.setCheckedKeys(e3, a2);
|
|
113
113
|
}, setChecked: (e3, a2, t2) => {
|
|
114
114
|
te.value.setChecked(e3, a2, t2);
|
|
115
|
-
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, a2 = true) => te.value.setCurrentKey(e3, a2), setCurrentNode: (e3, a2 = true) => te.value.setCurrentNode(e3, a2) }), (
|
|
115
|
+
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, a2 = true) => te.value.setCurrentKey(e3, a2), setCurrentNode: (e3, a2 = true) => te.value.setCurrentNode(e3, a2) }), (a2, t2) => {
|
|
116
116
|
var _a2;
|
|
117
|
-
const
|
|
118
|
-
return d(), s("div", { class: i(["amb-tree-runtime-main", r(ae)]) }, [ne.value.filter ? (d(), c(
|
|
119
|
-
"" !== pe.value ? (
|
|
120
|
-
Ce(
|
|
121
|
-
}) : E(
|
|
122
|
-
Ce(
|
|
117
|
+
const n2 = o("el-input"), l2 = o("el-button"), u2 = o("SuperIcon"), T2 = o("el-tree");
|
|
118
|
+
return d(), s("div", { class: i(["amb-tree-runtime-main", r(ae)]) }, [ne.value.filter ? (d(), c(n2, { key: 0, modelValue: de.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => de.value = e3), style: { width: "100%" }, placeholder: r(D)("superPageRuntimeMessage.pleaseInputSearchCondition") }, null, 8, ["modelValue", "placeholder"])) : p("", true), ue.value ? (d(), c(T2, { key: 1, ref_key: "menuTreeRef", ref: te, style: g(r(ee)), load: fe, data: oe.value, "node-key": "nodeId", props: le.value, "default-expand-all": ne.value.defaultExpandAll, "expand-on-click-node": ne.value.expandOnClickNode, indent: ne.value.retractWidth ? ne.value.retractWidth : 18, accordion: ne.value.accordion, "show-checkbox": !!ne.value.showCheckbox, "highlight-current": "", lazy: Q.value, "filter-node-method": ve, onNodeClick: ge, onNodeContextmenu: he }, { default: f(({ node: a3, data: o2 }) => [o2.nodeId === re.value ? (d(), s("div", W, [m(n2, { modelValue: pe.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => pe.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
|
|
119
|
+
"" !== pe.value ? (e4.data.name = pe.value, ce.value && e4.data.nodeId === ce.value ? b(e4, X.configure, X.pageContext).then((a4) => {
|
|
120
|
+
Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
|
|
121
|
+
}) : E(e4, X.configure, X.pageContext).then((a4) => {
|
|
122
|
+
Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
|
|
123
123
|
})) : _.warning(D("superPageRuntimeMessage.pleaseInputNodeName"));
|
|
124
|
-
})(
|
|
125
|
-
ce.value &&
|
|
126
|
-
})(
|
|
127
|
-
if (me.value && "standard" ===
|
|
128
|
-
else if ("delete" ===
|
|
129
|
-
Ne(
|
|
124
|
+
})(a3) }, { default: f(() => [y(C(r(D)("superPageRuntimeMessage.save")), 1)]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e3) => {
|
|
125
|
+
ce.value && e3.data.nodeId === ce.value && te.value.remove(e3), xe();
|
|
126
|
+
})(a3, e2.configure, e2.pageContext) }, { default: f(() => [y(C(r(D)("superPageRuntimeMessage.undo")), 1)]), _: 1 }, 8, ["onClick"])])])) : (d(), s("span", { key: 1, title: a3.label, class: "ellipsis" }, [o2.iconValue ? (d(), c(u2, { key: 0, iconType: o2.iconType, iconValue: o2.iconValue }, null, 8, ["iconType", "iconValue"])) : ne.value.iconValue ? (d(), c(u2, { key: 1, iconType: ne.value.iconType, iconValue: ne.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (d(), s(x, { key: 2 }, [o2.isLeaf ? (d(), s("div", H, [t2[3] || (t2[3] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, C(o2.name), 1)])) : (d(), s("div", B, [h("div", O, [t2[2] || (t2[2] = h("img", { src: M, class: "file" }, null, -1)), h("span", null, C(o2.name), 1)])]))], 64))], 8, z))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: A, class: "context-menu" }, [(d(true), s(x, null, k(q.value, (e3, a3) => (d(), s("li", { key: a3, tabindex: "-1", class: "menu__item", onClick: (a4) => ((e4) => {
|
|
127
|
+
if (me.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) re.value = me.value.data.nodeId, pe.value = me.value.data.name;
|
|
128
|
+
else if ("delete" === e4.standardEvent) me.value.childNodes && me.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = D("superPageRuntimeMessage.confirmDeleteNodeWithChildren")), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
|
|
129
|
+
Ne(e4);
|
|
130
130
|
}).catch(() => {
|
|
131
131
|
me.value = null;
|
|
132
|
-
})) : Ne(
|
|
132
|
+
})) : Ne(e4);
|
|
133
133
|
else {
|
|
134
134
|
const a5 = ke();
|
|
135
|
-
re.value = a5.nodeId, ce.value = a5.nodeId, pe.value = a5.name, "addSiblingNode" ===
|
|
135
|
+
re.value = a5.nodeId, ce.value = a5.nodeId, pe.value = a5.name, "addSiblingNode" === e4.standardEvent ? (a5.isLeaf = me.value.data.isLeaf, me.value.parent && me.value.parent.level > 0 ? te.value.append(a5, me.value.parent) : oe.value.push(a5)) : "addChildNode" === e4.standardEvent && (a5.isLeaf = true, me.value.data.isLeaf = false, te.value.append(a5, me.value), te.value.setCurrentKey(a5.nodeId, true));
|
|
136
136
|
}
|
|
137
|
-
})(
|
|
137
|
+
})(e3) }, [h("span", null, C(e3.name), 1)], 8, U))), 128))], 512)], 512), [[N, F.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
138
138
|
};
|
|
139
139
|
} });
|
|
140
140
|
export {
|
|
@@ -56,9 +56,9 @@ const z = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
|
|
|
56
56
|
});
|
|
57
57
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
58
58
|
}
|
|
59
|
-
} }), (
|
|
60
|
-
const
|
|
61
|
-
return i(), u(
|
|
59
|
+
} }), (t2, l2) => {
|
|
60
|
+
const o2 = a("el-checkbox"), n2 = a("el-checkbox-group"), b2 = a("el-form-item");
|
|
61
|
+
return i(), u(b2, { ref_key: "formItemRef", ref: X, class: s(c(F) + (E.value ? " " + E.value : "")), required: !!B.value.required, "label-width": B.value.labelWidth, style: r(c(T)) }, p({ default: f(() => [g(n2, { ref_key: "componentRef", ref: Y, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => M.value = e3) }, { default: f(() => [(i(true), v(d, null, m(G.value, (t3) => (i(), u(o2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => c(I)(t3.value, e2.pageContext, e2.configure, "click", { values: M.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: f(() => [h("div", { ref_key: "titleRef", ref: Z, style: r({ ...c(U), ...c(W) }), class: "amb-form-item-label" }, y(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "required", "label-width", "style"]);
|
|
62
62
|
};
|
|
63
63
|
} });
|
|
64
64
|
export {
|
|
@@ -28,9 +28,9 @@ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property
|
|
|
28
28
|
const r2 = l2.indexOf(h);
|
|
29
29
|
e3 ? -1 == r2 && l2.push(h) : r2 > -1 && l2.splice(r2, 1), y(c, d, l2);
|
|
30
30
|
} else y(c, d, e3);
|
|
31
|
-
} })), (
|
|
32
|
-
const
|
|
33
|
-
return p(), t(o, null, ["radio" ===
|
|
31
|
+
} })), (l2, s2) => {
|
|
32
|
+
const y2 = r("el-radio"), f2 = r("el-checkbox");
|
|
33
|
+
return p(), t(o, null, ["radio" === e2.property.prefixType ? (p(), u(y2, { key: 0, value: e2.property.prefixValue, label: e2.property.title, modelValue: i(b), "onUpdate:modelValue": s2[0] || (s2[0] = (e3) => n(b) ? b.value = e3 : b = e3) }, null, 8, ["value", "label", "modelValue"])) : a("", true), "checkbox" === e2.property.prefixType ? (p(), u(f2, { key: 1, label: e2.property.title, value: e2.property.prefixValue, modelValue: i(b), "onUpdate:modelValue": s2[1] || (s2[1] = (e3) => n(b) ? b.value = e3 : b = e3) }, null, 8, ["label", "value", "modelValue"])) : a("", true)], 64);
|
|
34
34
|
};
|
|
35
35
|
} });
|
|
36
36
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as m, unref as f, createSlots as d, withCtx as g, resolveDynamicComponent as v, createElementVNode as C, toDisplayString as x } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as b, getVariableValue as h, formatVariableValue as j, getFormPropName as R, setVariableValueWithProp as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as V, handleEvent as _ } from "../../../../utils/events/event-util.js";
|
|
@@ -24,7 +24,7 @@ const $ = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
24
24
|
k(H, e3, t2);
|
|
25
25
|
}
|
|
26
26
|
function T(e3) {
|
|
27
|
-
q.isHasFieldAuthPermission(G.configure)
|
|
27
|
+
q.isHasFieldAuthPermission(G.configure) ? D(G.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", P ? P.join(".") : "");
|
|
28
28
|
}
|
|
29
29
|
function X() {
|
|
30
30
|
const e3 = G.pageContext.tableUuids;
|
|
@@ -43,7 +43,7 @@ const $ = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
43
43
|
const t2 = e3.result;
|
|
44
44
|
b(H, P, t2);
|
|
45
45
|
}), U.$on(Z.value + "-pickFileDone", (e3) => {
|
|
46
|
-
ee.value.pickFileDone(e3);
|
|
46
|
+
Z.value, ee.value.pickFileDone(e3);
|
|
47
47
|
}), n(() => {
|
|
48
48
|
const e3 = I.value;
|
|
49
49
|
V(e3, G.pageContext, G.configure, { formItemRef: te.value, componentRef: ee.value, titleRef: oe.value, value: e3, entity: G.pageContext.entity.data, pageData: G.pageContext.entity.page });
|
|
@@ -59,9 +59,9 @@ const $ = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
59
59
|
return ee.value && "function" == typeof ee.value[e3];
|
|
60
60
|
}, addRequiredClass: function() {
|
|
61
61
|
requiredClass.value = addRequiredClassUtil();
|
|
62
|
-
} }), (
|
|
63
|
-
const
|
|
64
|
-
return K.value.tittleShow ? (p(), l(
|
|
62
|
+
} }), (t2, o2) => {
|
|
63
|
+
const a2 = u("el-form-item");
|
|
64
|
+
return K.value.tittleShow ? (p(), l(a2, { key: 0, ref_key: "formItemRef", ref: te, required: K.value.required, class: m(f(W)), "label-width": K.value.labelWidth, style: c(f(B)) }, d({ default: g(() => [N.value ? (p(), r("div", $, [(p(), l(v(N.value), { ref_key: "customRef", ref: ee, size: K.value.size, entity: e2.pageContext.entity.data, pageData: e2.pageContext.entity.page, pageContext: e2.pageContext, configureObj: e2.configure, prop: f(R)(e2.configure.props && e2.configure.props.base ? e2.configure.props.base.prop : null), "custom-params": f(L), modelValue: I.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => I.value = e3), disabled: "disabled" === K.value.state, "additional-param-map": f(M), "component-id": Z.value, onSetEntityValue: Q, onSetCustomRules: T, onRestoreGridEdit: X, onHandleEvent: ae, onChange: o2[1] || (o2[1] = (t3) => f(_)(I.value, e2.pageContext, e2.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 2 }, [K.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: oe, style: c({ ...f(J) }), class: "amb-form-item-label" }, x(f(S)(K.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : N.value ? (p(), r("div", O, [(p(), l(v(N.value), { ref_key: "customRef", ref: ee, entity: e2.pageContext.entity.data, pageData: e2.pageContext.entity.page, pageContext: e2.pageContext, configureObj: e2.configure, prop: f(R)(e2.configure.props && e2.configure.props.base ? e2.configure.props.base.prop : null), "custom-params": f(L), modelValue: I.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => I.value = e3), disabled: "disabled" === K.value.state, "additional-param-map": f(M), "component-id": Z.value, onSetEntityValue: Q, onSetCustomRules: T, onRestoreGridEdit: X, onHandleEvent: ae, onChange: o2[3] || (o2[3] = (t3) => f(_)(I.value, e2.pageContext, e2.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
|
|
65
65
|
};
|
|
66
66
|
} });
|
|
67
67
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as r, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as d, unref as s, createSlots as c, withCtx as p, createElementVNode as v, createElementBlock as f, Fragment as g, createTextVNode as m, toDisplayString as h } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts as C } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
-
import { getModelFieldFromPageContext as b, getValueFromVariable as x, setVariableValue as V, getVariableValue as
|
|
5
|
-
import { handleAfterInitEvent as
|
|
4
|
+
import { getModelFieldFromPageContext as b, getValueFromVariable as x, setVariableValue as V, getVariableValue as F, isDateDataType as T } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleAfterInitEvent as k, getCustomFunc as z, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import j from "../common/title-suffix-element.vue.js";
|
|
7
7
|
import w from "dayjs";
|
|
8
8
|
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
@@ -11,36 +11,36 @@ import { DatePickerRange as L, DateQuarterPicker as O } from "agilebuilder-ui";
|
|
|
11
11
|
const Y = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: Y2 }) {
|
|
12
12
|
var _a;
|
|
13
13
|
const _ = e2, q = a(null), S = _.pageContext.entity ? _.pageContext.entity : {}, B = _.configure.runtime ? _.configure.runtime : {}, E = B.style, U = B.class, A = B.headerStyle, I = B.titleExceedStyle, M = a(B.props ? B.props : {});
|
|
14
|
-
let
|
|
15
|
-
if (_.pageContext.modelFieldsMap &&
|
|
16
|
-
const e3 = b(
|
|
14
|
+
let $ = y(_.pageContext, _.configure, M.value.prop);
|
|
15
|
+
if (_.pageContext.modelFieldsMap && $ && $.length > 0 && "data" === $[0]) {
|
|
16
|
+
const e3 = b($, _.pageContext);
|
|
17
17
|
e3 && function(e4) {
|
|
18
18
|
const a2 = e4.dataType;
|
|
19
|
-
|
|
19
|
+
T(a2) && ("year" === M.value.dateType && "YYYY" === M.value.valueFormat || "month" === M.value.dateType && "YYYY-MM" === M.value.valueFormat) && (M.value.valueFormat = "x");
|
|
20
20
|
}(e3);
|
|
21
21
|
}
|
|
22
|
-
let
|
|
22
|
+
let G = null, N = false;
|
|
23
23
|
if (M.value.dateType && M.value.dateType.includes("range")) {
|
|
24
|
-
|
|
24
|
+
N = true;
|
|
25
25
|
let e3 = M.value.prop2;
|
|
26
26
|
e3 && e3.startsWith("${") || (e3 = "${page." + _.configure.uuid + "-2}");
|
|
27
27
|
const a2 = x(S, e3, null);
|
|
28
|
-
if (e3 = e3.substring(2, e3.length - 1),
|
|
28
|
+
if (e3 = e3.substring(2, e3.length - 1), G = e3.split("."), !(a2 || S.data && (S.data.id || S.data.ID)) && M.value.defaultValue2) {
|
|
29
29
|
const e4 = x(S, M.value.defaultValue2);
|
|
30
|
-
if (null != e4 && "" !== e4) V(S,
|
|
30
|
+
if (null != e4 && "" !== e4) V(S, G, e4);
|
|
31
31
|
else if (((_a = M.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
|
|
32
32
|
const e5 = M.value.moreDefaultValue2;
|
|
33
33
|
for (let a3 = 0; a3 < e5.length; a3++) {
|
|
34
34
|
const l2 = x(S, e5[a3]);
|
|
35
35
|
if (null != l2 && "" !== l2) {
|
|
36
|
-
V(S,
|
|
36
|
+
V(S, G, l2);
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const W = a(null), H = a(null), J = a(null);
|
|
44
44
|
function K(e3, a2) {
|
|
45
45
|
if (!e3) return e3;
|
|
46
46
|
if (a2) {
|
|
@@ -50,7 +50,7 @@ const Y = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
50
50
|
let t2 = null;
|
|
51
51
|
return t2 = "x" === a2 ? l2.toDate().getTime() : w(e3).format(a2), "Invalid Date" === t2 ? e3 : t2;
|
|
52
52
|
} catch (a3) {
|
|
53
|
-
return e3;
|
|
53
|
+
return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${M.value.valueFormat}`), e3;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
return e3;
|
|
@@ -58,27 +58,27 @@ const Y = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
58
58
|
if (l(() => {
|
|
59
59
|
t(() => {
|
|
60
60
|
const e3 = Q.value;
|
|
61
|
-
|
|
61
|
+
k(e3, _.pageContext, _.configure, { formItemRef: W.value, componentRef: H.value, titleRef: J.value, value: e3, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
64
|
-
const e3 =
|
|
65
|
-
e3 !== a2 && V(S,
|
|
63
|
+
}), $) {
|
|
64
|
+
const e3 = F(S, $), a2 = K(e3, M.value.valueFormat);
|
|
65
|
+
e3 !== a2 && V(S, $, a2);
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
const e3 =
|
|
69
|
-
e3 !== a2 && V(S,
|
|
67
|
+
if (G) {
|
|
68
|
+
const e3 = F(S, G), a2 = K(e3, M.value.valueFormat);
|
|
69
|
+
e3 !== a2 && V(S, G, a2);
|
|
70
70
|
}
|
|
71
71
|
const Q = r({ get() {
|
|
72
|
-
if (
|
|
72
|
+
if (N) {
|
|
73
73
|
const e3 = [];
|
|
74
|
-
let a2 =
|
|
74
|
+
let a2 = F(S, $);
|
|
75
75
|
e3.push(K(a2, M.value.valueFormat));
|
|
76
|
-
let l2 =
|
|
76
|
+
let l2 = F(S, G);
|
|
77
77
|
return e3.push(K(l2, M.value.valueFormat)), e3;
|
|
78
78
|
}
|
|
79
|
-
return K(
|
|
79
|
+
return K(F(S, $), M.value.valueFormat);
|
|
80
80
|
}, set(e3) {
|
|
81
|
-
|
|
81
|
+
N ? Array.isArray(e3) ? (V(S, $, e3[0]), V(S, G, e3[1]), q.value = "") : null === e3 && (V(S, $, null), V(S, G, null)) : (V(S, $, e3), null != e3 && (q.value = ""));
|
|
82
82
|
} }), X = a(C(M.value.dateScopeDetails, M.value.sourceType, M.value.dateType));
|
|
83
83
|
if (M.value.shortcutsFunc) {
|
|
84
84
|
const e3 = z(_.pageContext, M.value.shortcutsFunc);
|
|
@@ -134,9 +134,9 @@ const Y = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
134
134
|
}
|
|
135
135
|
return Y2({ addRequiredClass: function() {
|
|
136
136
|
q.value = D();
|
|
137
|
-
} }), (
|
|
138
|
-
const
|
|
139
|
-
return n(), u(
|
|
137
|
+
} }), (a2, l2) => {
|
|
138
|
+
const t2 = o("el-time-picker"), r2 = o("el-date-picker"), y2 = o("el-form-item");
|
|
139
|
+
return n(), u(y2, { ref_key: "formItemRef", ref: W, required: M.value.required, class: d(s(U) + (q.value ? " " + q.value : "")), "label-width": M.value.labelWidth, style: i(s(E)) }, c({ default: p(() => ["time" == M.value.dateType || "timerange" == M.value.dateType ? (n(), u(t2, { key: 0, ref_key: "componentRef", ref: H, "is-range": "timerange" == M.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: M.value.clearable, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, size: M.value.size, placeholder: s(R)(M.value.placeholder), "start-placeholder": s(R)(M.value.placeholder), "end-placeholder": s(R)(M.value.endPlaceholder ? M.value.endPlaceholder : M.value.placeholder), "unlink-panels": true, format: M.value.format, "value-format": M.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => Q.value = e3), shortcuts: X.value, type: M.value.dateType, onChange: l2[1] || (l2[1] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[4] || (l2[4] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[5] || (l2[5] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[6] || (l2[6] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== M.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes(M.value.dateType) ? (n(), u(s(L), { key: 1, modelValue: Q.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => Q.value = e3), type: M.value.dateType, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, clearable: M.value.clearable, format: M.value.format, "value-format": M.value.valueFormat, placeholder: s(R)(M.value.placeholder), "start-placeholder": s(R)(M.value.placeholder), "end-placeholder": s(R)(M.value.endPlaceholder ? M.value.endPlaceholder : M.value.placeholder), size: M.value.size, shortcuts: X.value, "disabled-date": ee, onChange: l2[8] || (l2[8] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[9] || (l2[9] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[10] || (l2[10] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[11] || (l2[11] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[12] || (l2[12] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[13] || (l2[13] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : "quarter" === M.value.dateType ? (n(), u(s(O), { key: 2, modelValue: Q.value, "onUpdate:modelValue": l2[14] || (l2[14] = (e3) => Q.value = e3), type: M.value.dateType, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, clearable: M.value.clearable, format: M.value.format, "value-format": M.value.valueFormat, placeholder: s(R)(M.value.placeholder), size: M.value.size, "disabled-date": ee, onChange: l2[15] || (l2[15] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[16] || (l2[16] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[17] || (l2[17] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "focus")), onClear: l2[18] || (l2[18] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (n(), u(r2, { key: 3, ref_key: "componentRef", ref: H, clearable: M.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, size: M.value.size, placeholder: s(R)(M.value.placeholder), "start-placeholder": s(R)(M.value.placeholder), "end-placeholder": s(R)(M.value.endPlaceholder ? M.value.endPlaceholder : M.value.placeholder), format: M.value.format, "value-format": M.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[19] || (l2[19] = (e3) => Q.value = e3), shortcuts: X.value, type: M.value.dateType, "disabled-date": ee, onChange: l2[20] || (l2[20] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[21] || (l2[21] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[22] || (l2[22] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[23] || (l2[23] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[24] || (l2[24] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[25] || (l2[25] = (a3) => s(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 2 }, [M.value.tittleShow ? { name: "label", fn: p(() => [v("div", { ref_key: "titleRef", ref: J, style: i({ ...s(A), ...s(I) }) }, [M.value.prefixType ? (n(), u(j, { key: 0, pageContext: e2.pageContext, property: M.value }, null, 8, ["pageContext", "property"])) : (n(), f(g, { key: 1 }, [m(h(s(R)(M.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
140
140
|
};
|
|
141
141
|
} });
|
|
142
142
|
export {
|
|
@@ -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
|
+
} }), (t2, l2) => {
|
|
49
|
+
const o2 = i("OrganizationInput"), a2 = i("el-form-item");
|
|
50
|
+
return u(), p(a2, { 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(o2, { 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: e2.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
|
+
}), (t2, n2) => {
|
|
18
|
+
const o2 = i("el-divider");
|
|
19
|
+
return l(), u(o2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: n2[0] || (n2[0] = (t3) => a(g)(t3, e2.pageContext, e2.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,10 +49,11 @@ 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 && z.configure.uuid) {
|
|
52
|
+
if (z.pageContext.fileuploadInfo, z.configure.uuid, 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;
|
|
56
57
|
}
|
|
57
58
|
function oe(e3) {
|
|
58
59
|
le();
|
|
@@ -80,7 +81,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
80
81
|
}, re = t(null), pe = t(null);
|
|
81
82
|
return o(() => {
|
|
82
83
|
N.$on(K.value + "-pickFileDone", (e3) => {
|
|
83
|
-
M.value.pickFileDone(e3);
|
|
84
|
+
K.value, M.value.pickFileDone(e3);
|
|
84
85
|
}), a(() => {
|
|
85
86
|
const e3 = (e4, t3, l3) => {
|
|
86
87
|
if (!t3) return;
|
|
@@ -91,7 +92,8 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
91
92
|
y(z.pageContext.entity, e4, l4);
|
|
92
93
|
break;
|
|
93
94
|
}
|
|
94
|
-
} catch (
|
|
95
|
+
} catch (t5) {
|
|
96
|
+
console.error("设置默认值出错:", e4, t5);
|
|
95
97
|
break;
|
|
96
98
|
}
|
|
97
99
|
};
|
|
@@ -103,9 +105,9 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
103
105
|
N.$off(K.value + "-pickFileDone");
|
|
104
106
|
}), _2({ addRequiredClass: function() {
|
|
105
107
|
R.value = j();
|
|
106
|
-
} }), (
|
|
107
|
-
const
|
|
108
|
-
return O.value.tittleShow ? (p(), u(
|
|
108
|
+
} }), (t2, l2) => {
|
|
109
|
+
const o2 = n("el-form-item");
|
|
110
|
+
return O.value.tittleShow ? (p(), u(o2, { 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": e2.pageContext.systemCode, componentId: K.value, watermark: d(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e2.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": e2.pageContext.systemCode, componentId: K.value, watermark: d(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e2.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);
|
|
109
111
|
};
|
|
110
112
|
} });
|
|
111
113
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js
CHANGED
|
@@ -21,10 +21,11 @@ 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 && N.configure.uuid) {
|
|
24
|
+
if (N.pageContext.fileuploadInfo, N.configure.uuid, 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;
|
|
28
29
|
}
|
|
29
30
|
function Z(e3) {
|
|
30
31
|
Y();
|
|
@@ -71,7 +72,7 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
71
72
|
}, ae = t(null), ie = t(null);
|
|
72
73
|
return l(() => {
|
|
73
74
|
j.$on(H.value + "-pickFileDone", (e3) => {
|
|
74
|
-
K.value.pickFileDone(e3);
|
|
75
|
+
H.value, K.value.pickFileDone(e3);
|
|
75
76
|
}), o(() => {
|
|
76
77
|
const e3 = g($, E), t2 = { showName: g($, U), serverPath: e3 };
|
|
77
78
|
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 });
|
|
@@ -80,9 +81,9 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
80
81
|
j.$off(H.value + "-pickFileDone");
|
|
81
82
|
}), _2({ addRequiredClass: function() {
|
|
82
83
|
O.value = P();
|
|
83
|
-
} }), (
|
|
84
|
-
const
|
|
85
|
-
return D.value.tittleShow ? (r(), n(
|
|
84
|
+
} }), (t2, l2) => {
|
|
85
|
+
const o2 = i("el-form-item");
|
|
86
|
+
return D.value.tittleShow ? (r(), n(o2, { 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": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.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": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.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);
|
|
86
87
|
};
|
|
87
88
|
} });
|
|
88
89
|
export {
|