super-page-runtime 2.3.12-sit2 → 2.3.13-migrate1
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 +50 -50
- package/dist/es/components/runtime/utils/events/event-util.js +4 -4
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +126 -107
- package/dist/es/components/runtime/utils/events/validator-util.js +169 -146
- package/dist/es/components/runtime/utils/page-init-util.js +5 -2
- package/dist/es/components/runtime/utils/page-permission-util.js +14 -14
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- 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/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 +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- 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 +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 +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +60 -59
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +35 -34
- 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 +42 -41
- 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 +38 -37
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -3
- 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 +15 -14
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +3 -3
- 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 +1 -1
- 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 +7 -6
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -3
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +159 -148
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +85 -82
- package/package.json +2 -2
|
@@ -75,7 +75,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
75
75
|
}, handleSearch: function(e3, t2) {
|
|
76
76
|
var _a;
|
|
77
77
|
(_a = b.value) == null ? void 0 : _a.handleSearch(e3, t2);
|
|
78
|
-
} }), (
|
|
78
|
+
} }), (t2, n2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
|
|
79
79
|
} });
|
|
80
80
|
export {
|
|
81
81
|
f as default
|
|
@@ -104,29 +104,29 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
104
104
|
te.value.setCheckedKeys(e3, t2);
|
|
105
105
|
}, setChecked: (e3, t2, a2) => {
|
|
106
106
|
te.value.setChecked(e3, t2, a2);
|
|
107
|
-
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (
|
|
107
|
+
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (t2, a2) => {
|
|
108
108
|
var _a2;
|
|
109
|
-
const
|
|
110
|
-
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(
|
|
111
|
-
"" !== ce.value ? (
|
|
112
|
-
ye(
|
|
113
|
-
}) : E(
|
|
114
|
-
ye(
|
|
109
|
+
const n2 = d("el-input"), l2 = d("el-button"), o2 = d("SuperIcon"), V2 = d("el-tree");
|
|
110
|
+
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(n2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ue.value = e3), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(V2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: t3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(n2, { modelValue: ce.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ce.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
|
|
111
|
+
"" !== ce.value ? (e4.data.name = ce.value, re.value && e4.data.nodeId === re.value ? w(e4, X.configure, X.pageContext).then((t4) => {
|
|
112
|
+
ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
|
|
113
|
+
}) : E(e4, X.configure, X.pageContext).then((t4) => {
|
|
114
|
+
ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
|
|
115
115
|
})) : z.warning("请输入节点名称");
|
|
116
|
-
})(
|
|
117
|
-
re.value &&
|
|
118
|
-
})(
|
|
119
|
-
if (ge.value && "standard" ===
|
|
120
|
-
else if ("delete" ===
|
|
121
|
-
ke(
|
|
116
|
+
})(t3) }, { default: g(() => [...a2[2] || (a2[2] = [y(" 保存 ", -1)])]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (a3) => ((e3) => {
|
|
117
|
+
re.value && e3.data.nodeId === re.value && te.value.remove(e3), Ce();
|
|
118
|
+
})(t3, e2.configure, e2.pageContext) }, { default: g(() => [...a2[3] || (a2[3] = [y(" 撤销 ", -1)])]), _: 1 }, 8, ["onClick"])])])) : (i(), u("span", { key: 1, title: t3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(o2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(o2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [a2[5] || (a2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [a2[4] || (a2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 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: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e3, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e4) => {
|
|
119
|
+
if (ge.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
|
|
120
|
+
else if ("delete" === e4.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
121
|
+
ke(e4);
|
|
122
122
|
}).catch(() => {
|
|
123
123
|
ge.value = null;
|
|
124
|
-
})) : ke(
|
|
124
|
+
})) : ke(e4);
|
|
125
125
|
else {
|
|
126
126
|
const t5 = xe();
|
|
127
|
-
se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" ===
|
|
127
|
+
se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e4.standardEvent ? (t5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? te.value.append(t5, ge.value.parent) : oe.value.push(t5)) : "addChildNode" === e4.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
|
|
128
128
|
}
|
|
129
|
-
})(
|
|
129
|
+
})(e3) }, [h("span", null, x(e3.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
130
130
|
};
|
|
131
131
|
} });
|
|
132
132
|
export {
|
|
@@ -40,9 +40,9 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
|
|
|
40
40
|
W.value = e3 || [];
|
|
41
41
|
}, addRequiredClass: function() {
|
|
42
42
|
z.value = I();
|
|
43
|
-
} }), (
|
|
44
|
-
const
|
|
45
|
-
return i(), u(
|
|
43
|
+
} }), (t2, l2) => {
|
|
44
|
+
const o2 = a("el-checkbox"), n2 = a("el-checkbox-group"), y2 = a("el-form-item");
|
|
45
|
+
return i(), u(y2, { ref_key: "formItemRef", ref: N, class: s(p(E) + (z.value ? " " + z.value : "")), required: !!U.value.required, "label-width": U.value.labelWidth, style: r(p(P)) }, { label: c(() => [U.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: X, style: r({ ...p(F), ...p(T) }) }, h(p(q)(U.value.title)), 5)) : m("", true)]), default: c(() => [f(n2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === U.value.state, size: U.value.size, onChange: U.value.changeMethod, modelValue: A.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => A.value = e3) }, { default: c(() => [(i(true), g(v, null, d(W.value, (t3) => (i(), u(o2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(j)(t3.value, e2.pageContext, e2.configure, "click", { values: A.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "required", "label-width", "style"]);
|
|
46
46
|
};
|
|
47
47
|
} });
|
|
48
48
|
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 n, nextTick as a, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as f, unref as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as n, nextTick as a, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as f, unref as d, withCtx as m, resolveDynamicComponent as g, toDisplayString as v } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
|
|
@@ -24,7 +24,7 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, st
|
|
|
24
24
|
j(z, e3, t2);
|
|
25
25
|
}
|
|
26
26
|
function N(e3) {
|
|
27
|
-
S.isHasFieldAuthPermission(O.configure)
|
|
27
|
+
S.isHasFieldAuthPermission(O.configure) ? V(O.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", G ? G.join(".") : "");
|
|
28
28
|
}
|
|
29
29
|
function Q() {
|
|
30
30
|
const e3 = O.pageContext.tableUuids;
|
|
@@ -43,7 +43,7 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, st
|
|
|
43
43
|
const t2 = e3.result;
|
|
44
44
|
x(z, G, t2);
|
|
45
45
|
}), F.$on(X.value + "-pickFileDone", (e3) => {
|
|
46
|
-
Y.value.pickFileDone(e3);
|
|
46
|
+
X.value, Y.value.pickFileDone(e3);
|
|
47
47
|
}), a(() => {
|
|
48
48
|
const e3 = H.value;
|
|
49
49
|
R(e3, O.pageContext, O.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
|
|
@@ -59,9 +59,9 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, st
|
|
|
59
59
|
return Y.value && "function" == typeof Y.value[e3];
|
|
60
60
|
}, addRequiredClass: function() {
|
|
61
61
|
requiredClass.value = addRequiredClassUtil();
|
|
62
|
-
} }), (
|
|
63
|
-
const
|
|
64
|
-
return W.value.tittleShow ? (p(), l(
|
|
62
|
+
} }), (t2, o2) => {
|
|
63
|
+
const n2 = u("el-form-item");
|
|
64
|
+
return W.value.tittleShow ? (p(), l(n2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: f(d(A)), "label-width": W.value.labelWidth, style: c(d(I)) }, { label: m(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...d(B) }) }, v(d(E)(W.value.title)), 5)) : s("", true)]), default: m(() => [L.value ? (p(), r("div", U, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e2.pageContext.entity.data, pageData: e2.pageContext.entity.page, pageContext: e2.pageContext, configureObj: e2.configure, prop: d(h)(e2.configure.props && e2.configure.props.base ? e2.configure.props.base.prop : null), "custom-params": d(J), modelValue: H.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => H.value = e3), disabled: "disabled" === W.value.state, "additional-param-map": d(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: o2[1] || (o2[1] = (t3) => d(k)(H.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)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", q, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, entity: e2.pageContext.entity.data, pageData: e2.pageContext.entity.page, pageContext: e2.pageContext, configureObj: e2.configure, prop: d(h)(e2.configure.props && e2.configure.props.base ? e2.configure.props.base.prop : null), "custom-params": d(J), modelValue: H.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => H.value = e3), disabled: "disabled" === W.value.state, "additional-param-map": d(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: o2[3] || (o2[3] = (t3) => d(k)(H.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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as r, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
|
|
2
2
|
import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
|
|
4
4
|
import { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as F, isDateDataType as k } from "../../../../utils/page-helper-util.js";
|
|
@@ -8,24 +8,24 @@ import Y from "dayjs";
|
|
|
8
8
|
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
9
9
|
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
10
10
|
const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
|
|
11
|
-
const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, D = A.style,
|
|
12
|
-
let
|
|
13
|
-
if (S.pageContext.modelFieldsMap &&
|
|
14
|
-
const e3 = C(
|
|
11
|
+
const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, D = A.style, $ = A.class, I = A.headerStyle, M = A.titleExceedStyle, B = a(A.props ? A.props : {});
|
|
12
|
+
let N = h(S.pageContext, S.configure, B.value.prop);
|
|
13
|
+
if (S.pageContext.modelFieldsMap && N && N.length > 0 && "data" === N[0]) {
|
|
14
|
+
const e3 = C(N, S.pageContext);
|
|
15
15
|
e3 && function(e4) {
|
|
16
16
|
const a2 = e4.dataType;
|
|
17
|
-
k(a2) && ("year" ===
|
|
17
|
+
k(a2) && ("year" === B.value.dateType && "YYYY" === B.value.valueFormat || "month" === B.value.dateType && "YYYY-MM" === B.value.valueFormat) && (B.value.valueFormat = "x");
|
|
18
18
|
}(e3);
|
|
19
19
|
}
|
|
20
|
-
let
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
let e3 =
|
|
20
|
+
let U = null, W = false;
|
|
21
|
+
if (B.value.dateType && B.value.dateType.includes("range")) {
|
|
22
|
+
W = true;
|
|
23
|
+
let e3 = B.value.prop2;
|
|
24
24
|
e3 && e3.startsWith("${") || (e3 = "${page." + S.configure.uuid + "-2}");
|
|
25
25
|
const a2 = x(q, e3, null);
|
|
26
|
-
if (e3 = e3.substring(2, e3.length - 1),
|
|
27
|
-
const e4 = x(q,
|
|
28
|
-
b(q,
|
|
26
|
+
if (e3 = e3.substring(2, e3.length - 1), U = e3.split("."), !(a2 || q.data && (q.data.id || q.data.ID)) && B.value.defaultValue2) {
|
|
27
|
+
const e4 = x(q, B.value.defaultValue2);
|
|
28
|
+
b(q, U, e4);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
const E = a(null), O = a(null), G = a(null);
|
|
@@ -38,7 +38,7 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
38
38
|
let t2 = null;
|
|
39
39
|
return t2 = "x" === a2 ? l2.toDate().getTime() : Y(e3).format(a2), t2;
|
|
40
40
|
} catch (a3) {
|
|
41
|
-
return e3;
|
|
41
|
+
return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${B.value.valueFormat}`), e3;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
return e3;
|
|
@@ -48,28 +48,28 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
48
48
|
const e3 = J.value;
|
|
49
49
|
T(e3, S.pageContext, S.configure, { formItemRef: E.value, componentRef: O.value, titleRef: G.value, value: e3, entity: S.pageContext.entity.data, pageData: S.pageContext.entity.page });
|
|
50
50
|
});
|
|
51
|
-
}),
|
|
52
|
-
const e3 = F(q,
|
|
53
|
-
e3 !== a2 && b(q,
|
|
51
|
+
}), N) {
|
|
52
|
+
const e3 = F(q, N), a2 = H(e3, B.value.valueFormat);
|
|
53
|
+
e3 !== a2 && b(q, N, a2);
|
|
54
54
|
}
|
|
55
|
-
if (
|
|
56
|
-
const e3 = F(q,
|
|
57
|
-
e3 !== a2 && b(q,
|
|
55
|
+
if (U) {
|
|
56
|
+
const e3 = F(q, U), a2 = H(e3, B.value.valueFormat);
|
|
57
|
+
e3 !== a2 && b(q, U, a2);
|
|
58
58
|
}
|
|
59
59
|
const J = o({ get() {
|
|
60
|
-
if (
|
|
60
|
+
if (W) {
|
|
61
61
|
const e3 = [];
|
|
62
|
-
let a2 = F(q,
|
|
63
|
-
e3.push(H(a2,
|
|
64
|
-
let l2 = F(q,
|
|
65
|
-
return e3.push(H(l2,
|
|
62
|
+
let a2 = F(q, N);
|
|
63
|
+
e3.push(H(a2, B.value.valueFormat));
|
|
64
|
+
let l2 = F(q, U);
|
|
65
|
+
return e3.push(H(l2, B.value.valueFormat)), e3;
|
|
66
66
|
}
|
|
67
|
-
return H(F(q,
|
|
67
|
+
return H(F(q, N), B.value.valueFormat);
|
|
68
68
|
}, set(e3) {
|
|
69
|
-
|
|
70
|
-
} }), K = a(y(
|
|
71
|
-
if (
|
|
72
|
-
const e3 = V(S.pageContext,
|
|
69
|
+
W ? Array.isArray(e3) ? (b(q, N, e3[0]), b(q, U, e3[1]), w.value = "") : null === e3 && (b(q, N, null), b(q, U, null)) : (b(q, N, e3), null != e3 && (w.value = ""));
|
|
70
|
+
} }), K = a(y(B.value.dateScopeDetails, B.value.sourceType, B.value.dateType));
|
|
71
|
+
if (B.value.shortcutsFunc) {
|
|
72
|
+
const e3 = V(S.pageContext, B.value.shortcutsFunc);
|
|
73
73
|
if (e3) {
|
|
74
74
|
let a2 = e3.apply(e3, [{ pageContext: S.pageContext, configureObj: S.configure }]);
|
|
75
75
|
if (a2) {
|
|
@@ -80,9 +80,9 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
80
80
|
}
|
|
81
81
|
return P2({ addRequiredClass: function() {
|
|
82
82
|
w.value = z();
|
|
83
|
-
} }), (
|
|
84
|
-
const
|
|
85
|
-
return n(),
|
|
83
|
+
} }), (a2, l2) => {
|
|
84
|
+
const t2 = r("el-time-picker"), o2 = r("el-date-picker"), h2 = r("el-form-item");
|
|
85
|
+
return n(), u(h2, { ref_key: "formItemRef", ref: E, required: B.value.required, class: p(s($) + (w.value ? " " + w.value : "")), "label-width": B.value.labelWidth, style: i(s(D)) }, { label: c(() => [B.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: G, style: i({ ...s(I), ...s(M) }) }, [B.value.prefixType ? (n(), u(R, { key: 0, pageContext: e2.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(B.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == B.value.dateType || "timerange" == B.value.dateType ? (n(), u(t2, { key: 0, ref_key: "componentRef", ref: O, "is-range": "timerange" == B.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: B.value.clearable, disabled: "disabled" === B.value.state, readonly: "readonly" === B.value.state, size: B.value.size, placeholder: B.value.placeholder, "start-placeholder": B.value.placeholder, "end-placeholder": B.value.endPlaceholder ? B.value.endPlaceholder : B.value.placeholder, "unlink-panels": true, format: B.value.format, "value-format": B.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => J.value = e3), shortcuts: K.value, type: B.value.dateType, onChange: l2[1] || (l2[1] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[4] || (l2[4] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[5] || (l2[5] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[6] || (l2[6] = (a3) => s(j)(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"])) : (n(), u(o2, { key: 1, ref_key: "componentRef", ref: O, clearable: B.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === B.value.state, readonly: "readonly" === B.value.state, size: B.value.size, placeholder: B.value.placeholder, "start-placeholder": B.value.placeholder, "end-placeholder": B.value.endPlaceholder ? B.value.endPlaceholder : B.value.placeholder, format: B.value.format, "value-format": B.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => J.value = e3), shortcuts: K.value, type: B.value.dateType, onChange: l2[8] || (l2[8] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[9] || (l2[9] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[10] || (l2[10] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[11] || (l2[11] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[12] || (l2[12] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[13] || (l2[13] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
86
86
|
};
|
|
87
87
|
} });
|
|
88
88
|
export {
|
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as n, watch as i, resolveComponent as p, createBlock as a, openBlock as u, normalizeStyle as r, normalizeClass as s, unref as d, withCtx as f, createVNode as c, createElementBlock as m, createCommentVNode as g, Fragment as v, createTextVNode as y, toDisplayString as x } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { handleAfterInitEvent as
|
|
3
|
+
import { handleAfterInitEvent as h, handleFormEvent as S } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import F from "../common/title-suffix-element.vue.js";
|
|
5
5
|
import { $t as b } from "../../../../utils/i18n-util.js";
|
|
6
|
-
import { setVariableValue as k, getVariableValue as R,
|
|
7
|
-
import { addRequiredClassUtil as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
const
|
|
14
|
-
|
|
6
|
+
import { setVariableValue as k, getVariableValue as R, getFormPropName as j, getValueFromVariable as _ } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
|
|
8
|
+
const T = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: T2 }) {
|
|
9
|
+
const q = e2, w = t(null), z = t([]), M = q.pageContext.entity ? q.pageContext.entity : {};
|
|
10
|
+
M.data || (M.data = {});
|
|
11
|
+
const O = M.data, $ = M.page;
|
|
12
|
+
let D = C(q.pageContext, q.configure);
|
|
13
|
+
const E = D.length > 0 ? D[D.length - 1] : q.configure.uuid, V = q.configure.runtime ? q.configure.runtime : {}, W = t(V.props ? V.props : {}), A = V.style, B = V.class, G = V.headerStyle, H = V.titleExceedStyle;
|
|
14
|
+
V.props.deptScope && ("field" == V.props.deptScope && V.props.deptScopeField ? (Y(), function(e3, t2) {
|
|
15
15
|
if (0 === e3.indexOf("${fixed.")) return;
|
|
16
16
|
const l2 = e3.match(/\${(.*?)}/);
|
|
17
17
|
if (!l2) return;
|
|
18
18
|
const o2 = l2 ? l2[1].split(".") : [];
|
|
19
|
-
o2 && o2.length > 0 &&
|
|
19
|
+
o2 && o2.length > 0 && i(() => o2.reduce((e4, t3) => e4[t3], q.pageContext.entity), (e4, l3) => {
|
|
20
20
|
t2(e4, l3);
|
|
21
21
|
});
|
|
22
|
-
}(
|
|
23
|
-
|
|
24
|
-
})) : "depts" ==
|
|
25
|
-
const
|
|
22
|
+
}(V.props.deptScopeField, (e3, t2) => {
|
|
23
|
+
Y();
|
|
24
|
+
})) : "depts" == V.props.deptScope && V.props.deptScopeCodes && (z.value = V.props.deptScopeCodes.split(",")));
|
|
25
|
+
const J = t(null), K = t(null), L = t(null);
|
|
26
26
|
l(() => {
|
|
27
27
|
o(() => {
|
|
28
|
-
const e3 =
|
|
29
|
-
|
|
28
|
+
const e3 = O ? O[E] : null;
|
|
29
|
+
h(e3, q.pageContext, q.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
|
-
const
|
|
33
|
-
k(
|
|
34
|
-
} }),
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
const N = n({ get: () => R(M, D), set(e3) {
|
|
33
|
+
k(M, D, e3), null != e3 && (w.value = "");
|
|
34
|
+
} }), P = W.value.autoSetFields ? W.value.autoSetFields : [];
|
|
35
|
+
let Q = null;
|
|
36
|
+
function U(e3, t2) {
|
|
37
|
+
Q ? Q === e3 && (D.length > 0 ? S(R(M, D), q.pageContext, q.configure, "change") : S(t2, q.pageContext, q.configure, "change")) : e3 === E && S(t2, q.pageContext, q.configure, "change");
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
39
|
+
function X() {
|
|
40
|
+
S(null, q.pageContext, q.configure, "click");
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
const e3 =
|
|
43
|
-
|
|
42
|
+
function Y() {
|
|
43
|
+
const e3 = _(q.pageContext.entity, V.props.deptScopeField);
|
|
44
|
+
z.value = e3 ? e3.split(",") : [];
|
|
44
45
|
}
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
} }), (
|
|
48
|
-
const
|
|
49
|
-
return u(), a(
|
|
46
|
+
return P.length - 1 > 0 && P[P.length - 1] && P[P.length - 1].model && (Q = j(P[P.length - 1].model)), T2({ addRequiredClass: function() {
|
|
47
|
+
w.value = I();
|
|
48
|
+
} }), (t2, l2) => {
|
|
49
|
+
const o2 = p("OrganizationInput"), n2 = p("el-form-item");
|
|
50
|
+
return u(), a(n2, { ref_key: "formItemRef", ref: J, required: W.value.required, class: s(d(B) + (w.value ? " " + w.value : "")), "label-width": W.value.labelWidth, style: r(d(A)) }, { label: f(() => [W.value.tittleShow ? (u(), m("div", { key: 0, ref_key: "titleRef", ref: L, style: r({ ...d(G), ...d(H) }) }, [W.value.prefixType ? (u(), a(F, { key: 0, pageContext: e2.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (u(), m(v, { key: 1 }, [y(x(d(b)(W.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [c(o2, { ref_key: "componentRef", ref: K, disabled: "disabled" == W.value.state, multiple: W.value.multiple, treeType: W.value.treeType, value: N.value, models: d(O), departmentInfo: z.value, limitFilterColumn: W.value.limitFilterColumn, pageModels: d($), fields: d(P), size: W.value.size, separator: W.value.separator, onSetValue: U, onShowTree: X }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
50
51
|
};
|
|
51
52
|
} });
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
T as default
|
|
54
55
|
};
|
|
@@ -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
|
@@ -6,69 +6,70 @@ import { FsUploadNew as b } from "agilebuilder-ui";
|
|
|
6
6
|
import k from "../../../../utils/eventBus.js";
|
|
7
7
|
import { $t as x } from "../../../../utils/i18n-util.js";
|
|
8
8
|
import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
|
|
9
|
-
|
|
9
|
+
import { getRelativeBaseUrl as _ } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
+
const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
|
|
10
11
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const N = e2, S = l(null), R = N.configure.runtime ? N.configure.runtime : {}, T = l(R.props ? R.props : {}), z = R.style, D = R.class, I = R.headerStyle, O = R.titleExceedStyle, q = N.pageContext.entity ? N.pageContext.entity : {}, F = N.configure.props.base ? N.configure.props.base : {}, W = M(F.prop), U = M(F.propName);
|
|
13
|
+
let $ = l({});
|
|
14
|
+
$.value.isShowWatermark = void 0 === ((_b = (_a = N.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = N.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", $.value.content = ((_e = (_d = N.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = N.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", W && W.length > 1 && t(() => N.pageContext.entity[W[0]][W[1]], (e3) => {
|
|
15
|
+
L(h(q, W));
|
|
15
16
|
});
|
|
16
|
-
const
|
|
17
|
-
function
|
|
17
|
+
const B = N.pageContext.code, E = l(W ? B + "__" + W.join("__") : null), A = h(q, W), G = l(null), H = l(false), J = l([]), K = l({});
|
|
18
|
+
function L(e3) {
|
|
18
19
|
if (e3) {
|
|
19
20
|
const l2 = e3.split(",");
|
|
20
21
|
if (l2.length > 0) {
|
|
21
|
-
const e4 =
|
|
22
|
-
w.post(
|
|
23
|
-
|
|
24
|
-
const
|
|
22
|
+
const e4 = N.pageContext.backendUrl, t2 = _(e4 + "/common/fs-upload/search-file-names");
|
|
23
|
+
w.post(t2, l2).then((e5) => {
|
|
24
|
+
J.value = [];
|
|
25
|
+
const t3 = [];
|
|
25
26
|
for (let a2 = 0; a2 < l2.length; a2++) {
|
|
26
27
|
const o2 = l2[a2];
|
|
27
|
-
|
|
28
|
+
t3.push(e5[o2]), J.value.push({ showName: e5[o2], serverPath: o2 });
|
|
28
29
|
}
|
|
29
|
-
"input" ===
|
|
30
|
+
"input" === T.value.displayType && (K.value.showName = t3.join(","), K.value.serverPath = l2.join(","));
|
|
30
31
|
}).finally(() => {
|
|
31
|
-
|
|
32
|
+
H.value = true;
|
|
32
33
|
});
|
|
33
|
-
} else
|
|
34
|
-
} else
|
|
34
|
+
} else H.value = true;
|
|
35
|
+
} else J.value = [], K.value = {}, H.value = true;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function M(e3) {
|
|
37
38
|
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function Q(e3) {
|
|
40
41
|
return C(e3);
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
},
|
|
43
|
+
L(A);
|
|
44
|
+
const V = (e3, l2, t2) => {
|
|
45
|
+
Y();
|
|
46
|
+
}, X = (e3) => {
|
|
47
|
+
Y();
|
|
48
|
+
}, Y = () => {
|
|
48
49
|
const e3 = [], l2 = [];
|
|
49
|
-
if (
|
|
50
|
-
const e4 =
|
|
51
|
-
for (let l3 = 0; l3 < e4; l3++)
|
|
50
|
+
if (T.value.limit && J.value.length > T.value.limit) {
|
|
51
|
+
const e4 = J.value.length - T.value.limit;
|
|
52
|
+
for (let l3 = 0; l3 < e4; l3++) J.value.shift();
|
|
52
53
|
}
|
|
53
|
-
for (let t2 = 0; t2 <
|
|
54
|
-
y(
|
|
55
|
-
},
|
|
54
|
+
for (let t2 = 0; t2 < J.value.length; t2++) e3.push(J.value[t2].showName), l2.push(J.value[t2].serverPath);
|
|
55
|
+
y(N.pageContext.entity, W, l2.join(",")), y(N.pageContext.entity, U, e3.join(",")), l2.length > 0 && (S.value = "");
|
|
56
|
+
}, Z = l(null), ee = l(null);
|
|
56
57
|
return a(() => {
|
|
57
|
-
k.$on(
|
|
58
|
-
|
|
58
|
+
k.$on(E.value + "-pickFileDone", (e3) => {
|
|
59
|
+
E.value, G.value.pickFileDone(e3);
|
|
59
60
|
}), o(() => {
|
|
60
|
-
const e3 = h(
|
|
61
|
-
g(l2,
|
|
61
|
+
const e3 = h(q, W), l2 = { showName: h(q, U), serverPath: e3 };
|
|
62
|
+
g(l2, N.pageContext, N.configure, { formItemRef: Z.value, componentRef: G.value, titleRef: ee.value, value: l2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
62
63
|
});
|
|
63
64
|
}), i(() => {
|
|
64
|
-
k.$off(
|
|
65
|
-
}),
|
|
66
|
-
|
|
67
|
-
} }), (
|
|
68
|
-
const
|
|
69
|
-
return
|
|
65
|
+
k.$off(E.value + "-pickFileDone");
|
|
66
|
+
}), j2({ addRequiredClass: function() {
|
|
67
|
+
S.value = P();
|
|
68
|
+
} }), (l2, t2) => {
|
|
69
|
+
const a2 = n("el-form-item");
|
|
70
|
+
return T.value.tittleShow ? (u(), s(a2, { key: 0, ref_key: "formItemRef", ref: Z, required: T.value.required, class: d(m(D) + (S.value ? " " + S.value : "")), "label-width": T.value.labelWidth, style: p(m(z)) }, { label: v(() => [T.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: ee, style: p({ ...m(I), ...m(O) }) }, c(m(x)(T.value.title)), 5)) : r("", true)]), default: v(() => [H.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e2.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e2.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : H.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e2.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e2.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true);
|
|
70
71
|
};
|
|
71
72
|
} });
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
j as default
|
|
74
75
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -18,9 +18,9 @@ const q = e({ __name: "input-number-runtime", props: { pageContext: {}, configur
|
|
|
18
18
|
});
|
|
19
19
|
}), q2({ addRequiredClass: function() {
|
|
20
20
|
z.value = _();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return i(), u(
|
|
21
|
+
} }), (t2, l2) => {
|
|
22
|
+
const o2 = n("el-input-number"), a2 = n("el-form-item");
|
|
23
|
+
return i(), u(a2, { ref_key: "formItemRef", ref: W, required: U.value.required, class: s(p(E) + (z.value ? " " + z.value : "")), "label-width": U.value.labelWidth, style: r(p(D)) }, { label: m(() => [U.value.tittleShow ? (i(), c("div", { key: 0, ref_key: "titleRef", ref: G, style: r({ ...p(F), ...p(T) }) }, [U.value.prefixType ? (i(), u(j, { key: 0, pageContext: e2.pageContext, property: U.value }, null, 8, ["pageContext", "property"])) : (i(), c(v, { key: 1 }, [g(y(p(k)(U.value.title)), 1)], 64))], 4)) : d("", true)]), default: m(() => [f(o2, { ref_key: "componentRef", ref: A, disabled: "disabled" === U.value.state, readonly: "readonly" === U.value.state, controls: U.value.showButton, size: U.value.size, placeholder: U.value.placeholder, modelValue: B.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => B.value = e3), precision: U.value.precision, step: U.value.step, min: U.value.min, max: U.value.max, onChange: l2[1] || (l2[1] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|