super-page-designer 2.3.5-sit3-design2 → 2.3.7-design1
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/design/utils/page-event-util.js +1 -0
- package/dist/es/components/design/utils/page-i18n-util.js +6 -5
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +5 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +17 -17
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +3 -0
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +13 -13
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +3 -2
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +22 -22
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +14 -13
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
- package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +18 -17
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +1 -0
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +3 -2
- package/dist/es/stores/undo-redo-store.js +1 -1
- package/package.json +5 -5
|
@@ -2,52 +2,52 @@ import { defineComponent as e, ref as t, computed as n, watch as i, onMounted as
|
|
|
2
2
|
import { useDraggable as d } from "vue-draggable-plus";
|
|
3
3
|
import v from "../../object-design.vue.js";
|
|
4
4
|
import { deepCopy as b, getUuidv4 as y } from "../../../../utils/common-util.js";
|
|
5
|
-
import { caculateComponentStyle as
|
|
5
|
+
import { caculateComponentStyle as h } from "../../../../utils/container-design-util.js";
|
|
6
6
|
import "element-plus";
|
|
7
|
-
import { copyHandleEvents as
|
|
7
|
+
import { copyHandleEvents as j, deleteDesignItem as x } from "../../../../utils/page-design-util.js";
|
|
8
8
|
import { getInputTypeComponentNames as O } from "../../../../utils/assemblys-config.js";
|
|
9
9
|
const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({ __name: "tools-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: D2 }) {
|
|
10
10
|
const C = e2;
|
|
11
11
|
C.configure.items || (C.configure.items = []), null == C.configure.style && (C.configure.style = {}), C.configure.props = { isAffix: true, position: "top", ...C.configure.props ?? {} }, C.configure.runtime || (C.configure.runtime = {});
|
|
12
|
-
const
|
|
12
|
+
const R = t({}), w = t(""), A = n(() => {
|
|
13
13
|
const { gap: e3 } = C.configure.props ?? {};
|
|
14
|
-
return { ...e3 ? { gap: `${e3}px` } : {}, ...
|
|
14
|
+
return { ...e3 ? { gap: `${e3}px` } : {}, ...R.value ?? {} };
|
|
15
15
|
});
|
|
16
16
|
i(C.configure.style, () => {
|
|
17
|
-
|
|
17
|
+
N();
|
|
18
18
|
}), i(C.configure.props, () => {
|
|
19
|
-
|
|
19
|
+
N();
|
|
20
20
|
});
|
|
21
|
-
const
|
|
22
|
-
function
|
|
21
|
+
const k = O(), I = n(() => [...C.configure.items]);
|
|
22
|
+
function S(e3) {
|
|
23
23
|
e3.forEach((e4) => {
|
|
24
24
|
var _a, _b, _c, _d;
|
|
25
|
-
if (e4.items && e4.items.length > 0 &&
|
|
25
|
+
if (e4.items && e4.items.length > 0 && S(e4.items), k.includes(e4.name)) {
|
|
26
26
|
const t2 = { uuid: e4.uuid, defaultValue: (_b = (_a = e4.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.defaultValue, prop: (_d = (_c = e4.runtime) == null ? void 0 : _c.props) == null ? void 0 : _d.prop };
|
|
27
27
|
C.pageDesign.toolsInputComponents.push(t2);
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
i(
|
|
32
|
-
e3.length > t2.length && z(-1, e3[e3.length - 1]), "list" === C.pageDesign.pageType && (C.pageDesign.toolsInputComponents = [],
|
|
31
|
+
i(I, (e3, t2) => {
|
|
32
|
+
e3.length > t2.length && z(-1, e3[e3.length - 1]), "list" === C.pageDesign.pageType && (C.pageDesign.toolsInputComponents = [], S(e3));
|
|
33
33
|
}, { important: true, deep: true });
|
|
34
|
-
const
|
|
35
|
-
function
|
|
36
|
-
|
|
34
|
+
const _ = t(null);
|
|
35
|
+
function N() {
|
|
36
|
+
h(C.configure, R, w, null);
|
|
37
37
|
const e3 = C.configure.props;
|
|
38
|
-
"flex-end" == e3.align ?
|
|
38
|
+
"flex-end" == e3.align ? R.value["justify-content"] = "right" : "center" == e3.align && (R.value["justify-content"] = "center"), C.configure.runtime.style = R.value, C.configure.runtime.class = w.value;
|
|
39
39
|
}
|
|
40
|
-
d(
|
|
40
|
+
d(_, C.configure.items, { group: "amb-assembly-item", animation: 300, ghostClass: "amb-item-ghost", forceFallback: true, onAdd: function(e3) {
|
|
41
41
|
if (C.configure && C.configure.items) {
|
|
42
42
|
const t2 = e3.newIndex, n2 = C.configure.items[t2];
|
|
43
43
|
n2.style || (n2.style = {});
|
|
44
44
|
}
|
|
45
45
|
} }), o(() => {
|
|
46
|
-
if (
|
|
46
|
+
if (N(), _.value.parentNode) {
|
|
47
47
|
new ResizeObserver((e3) => {
|
|
48
|
-
for (let t2 of e3) ;
|
|
49
|
-
|
|
50
|
-
}).observe(
|
|
48
|
+
for (let t2 of e3) t2.target, t2.contentRect, t2.contentRect.width, t2.contentRect.height, t2.contentRect.top, t2.contentRect.left;
|
|
49
|
+
N();
|
|
50
|
+
}).observe(_.value.parentNode);
|
|
51
51
|
}
|
|
52
52
|
}), s(() => {
|
|
53
53
|
});
|
|
@@ -63,13 +63,13 @@ const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({
|
|
|
63
63
|
const n2 = t2.indexOf(e3);
|
|
64
64
|
if (-1 == n2) return void alert("无可复制对象!");
|
|
65
65
|
const i2 = a(b(e3));
|
|
66
|
-
i2.uuid = y(),
|
|
66
|
+
i2.uuid = y(), j(i2, C.pageDesign), t2.splice(n2 + 1, 0, i2);
|
|
67
67
|
}
|
|
68
68
|
function T(e3) {
|
|
69
69
|
let t2 = C.configure.items;
|
|
70
70
|
x(t2, e3, e3.items && e3.items.length > 0, true);
|
|
71
71
|
}
|
|
72
|
-
return (e3, t2) => (r(), u("div", W, [l("div", { class: c(["amb-widget-tools", w.value]), style: g(
|
|
72
|
+
return (e3, t2) => (r(), u("div", W, [l("div", { class: c(["amb-widget-tools", w.value]), style: g(A.value), ref_key: "thisRef", ref: _ }, [(r(true), u(f, null, p(e3.configure.items, (t3, n2) => (r(), m(v, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: z, onOnCustomAttrWidget: E, onOnCopy: F, onOnDelete: T }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))], 6)]));
|
|
73
73
|
} });
|
|
74
74
|
export {
|
|
75
75
|
D as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as a, createElementBlock as t, openBlock as u, normalizeStyle as s, normalizeClass as l, withDirectives as n, createElementVNode as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as a, createElementBlock as t, openBlock as u, normalizeStyle as s, normalizeClass as l, withDirectives as n, createElementVNode as c, vShow as i } from "vue";
|
|
2
2
|
import p from "qrcode";
|
|
3
3
|
import f from "jsbarcode";
|
|
4
4
|
import { caculateDetailComponentStyle as b, caculateComponentProps as d } from "../../../../utils/form-design-util.js";
|
|
@@ -11,7 +11,7 @@ const m = ["src"], v = e({ __name: "barcode-design", props: { configure: Object
|
|
|
11
11
|
let e3 = {};
|
|
12
12
|
const r2 = {};
|
|
13
13
|
if (v2.configure.props.preSuffix && (e3 = v2.configure.props), e3.base.bindProp && (g.value = e3.base.bindProp), e3.base && "br-code" === e3.base.type && C(), e3.base && "QR-code" === e3.base.type && p.toDataURL(g.value, (e4, r3) => {
|
|
14
|
-
e4
|
|
14
|
+
e4 ? console.error(e4) : y.value = r3;
|
|
15
15
|
}), r2.type = e3.base.type, r2.brCodeFormat = e3.base.brCodeFormat, r2.generateRuleType = e3.base.generateRuleType, r2.generateRule = e3.base.generateRule, r2 != {}) for (const e4 in r2) O.value[e4] = r2[e4];
|
|
16
16
|
}
|
|
17
17
|
o(() => {
|
|
@@ -22,7 +22,7 @@ const m = ["src"], v = e({ __name: "barcode-design", props: { configure: Object
|
|
|
22
22
|
b(v2.configure, x, D, F);
|
|
23
23
|
}, { immediate: true }), a(v2.configure.props, () => {
|
|
24
24
|
d(v2.configure, O), _(), v2.configure.runtime.props = O.value;
|
|
25
|
-
}, { immediate: true }), (e3, r2) => (u(), t("div", { class: l(D.value), style: s(x.value) }, [n(
|
|
25
|
+
}, { immediate: true }), (e3, r2) => (u(), t("div", { class: l(D.value), style: s(x.value) }, [n(c("canvas", { ref_key: "barcode", ref: R }, null, 512), [[i, "br-code" === O.value.type]]), n(c("img", { src: y.value }, null, 8, m), [[i, "QR-code" === O.value.type]])], 6));
|
|
26
26
|
} });
|
|
27
27
|
export {
|
|
28
28
|
v as default
|
|
@@ -38,7 +38,7 @@ const E = { key: 0 }, L = { style: { display: "flex", margin: "8px 0" } }, G = {
|
|
|
38
38
|
q.value.validate((e3) => {
|
|
39
39
|
if (e3) {
|
|
40
40
|
let e4;
|
|
41
|
-
P.value.uuid ? (e4 = ge(P.value.uuid), e4.titleText = P.value.titleText, e4.displayOrder = P.value.displayOrder, void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, e4, Z.value), B.value = false) : (P.value.uuid = k(), void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, P.value, Z.value), Z.value.push(P.value), B.value = false), ie(), P.value.parentUuid ? ee.value.append(P.value, K.value) : z.value = C(Z.value), Q.value && he();
|
|
41
|
+
P.value.uuid ? (e4 = ge(P.value.uuid), e4.titleText = P.value.titleText, e4.displayOrder = P.value.displayOrder, void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, e4, Z.value), B.value = false) : (P.value.uuid = k(), void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, P.value, Z.value), Z.value.push(P.value), B.value = false), ie(), P.value.parentUuid ? ee.value.append(P.value, K.value) : z.value = C(Z.value), Q.value && he(), M2.configure;
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as o, openBlock as u, Fragment as n, createElementVNode as t, createVNode as d, withDirectives as i, withCtx as r, createTextVNode as m, vShow as p, createBlock as c, createCommentVNode as s, toDisplayString as w, renderList as b, unref as f, nextTick as
|
|
2
|
-
import { getFormComponentOptions as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as o, openBlock as u, Fragment as n, createElementVNode as t, createVNode as d, withDirectives as i, withCtx as r, createTextVNode as m, vShow as p, createBlock as c, createCommentVNode as s, toDisplayString as w, renderList as b, unref as f, nextTick as y } from "vue";
|
|
2
|
+
import { getFormComponentOptions as V } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import "uuid";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import g from "./configuration-value.vue.js";
|
|
5
|
+
import v from "./formatting.vue.js";
|
|
6
6
|
import { getCustomFuncs as h } from "../../../../utils/page-event-util.js";
|
|
7
7
|
const k = { key: 0 }, F = { key: 1 }, _ = { key: 0 }, C = { key: 0 }, U = { key: 0 }, x = { key: 1 }, N = { key: 0 }, T = { key: 1 }, D = { key: 0 }, R = { key: 0 }, S = { key: 0 }, M = { key: 0 }, E = { key: 0 }, A = { key: 0 }, I = { key: 0 }, O = { key: 0 }, j = { key: 0 }, J = e({ __name: "dynamic-column", props: { configure: { type: Object, default: () => ({ props: {} }) }, modelTableFieldList: { type: Array, default: () => [] }, clolumnTableFields: { type: Array, default: () => [] }, title: String }, setup(e2) {
|
|
8
8
|
const J2 = e2, K = l(false), L = l(null);
|
|
@@ -18,29 +18,29 @@ const k = { key: 0 }, F = { key: 1 }, _ = { key: 0 }, C = { key: 0 }, U = { key:
|
|
|
18
18
|
}
|
|
19
19
|
const H = l(false), B = l({}), P = l(0), Q = l(0);
|
|
20
20
|
function W(e3, l2, a2) {
|
|
21
|
-
P.value = a2, Q.value = e3, 1 === e3 ? B.value = l2.valueSettingFormat : 2 === e3 && (B.value = l2.dynamicDataSourceData), H.value = true,
|
|
21
|
+
P.value = a2, Q.value = e3, 1 === e3 ? B.value = l2.valueSettingFormat : 2 === e3 && (B.value = l2.dynamicDataSourceData), H.value = true, y(() => {
|
|
22
22
|
L.value && "dynamicDataSource" === B.value.type && L.value.echoDataOrigin(B.value.dynamicDataSourceCode);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function X(e3) {
|
|
26
|
-
1 === Q.value ? J2.configure.props.dynamicColumnData.columnModelTable[P.value].valueSettingFormat = e3 : J2.configure.props.dynamicColumnData.columnModelTable[P.value].dynamicDataSourceData = e3;
|
|
26
|
+
1 === Q.value ? J2.configure.props.dynamicColumnData.columnModelTable[P.value].valueSettingFormat = e3 : J2.configure.props.dynamicColumnData.columnModelTable[P.value].dynamicDataSourceData = e3, J2.configure.props.dynamicColumnData.columnModelTable;
|
|
27
27
|
}
|
|
28
28
|
function Y() {
|
|
29
29
|
H.value = false;
|
|
30
30
|
}
|
|
31
31
|
function Z(e3) {
|
|
32
|
-
J2.configure.props.dynamicColumnData.columnModelTable[P.value].listColumnFormat = e3;
|
|
32
|
+
J2.configure.props.dynamicColumnData.columnModelTable[P.value].listColumnFormat = e3, J2.configure.props.dynamicColumnData.columnModelTable;
|
|
33
33
|
}
|
|
34
34
|
function ee() {
|
|
35
35
|
le.value = false;
|
|
36
36
|
}
|
|
37
37
|
const le = l(false), ae = l({});
|
|
38
|
-
return (l2,
|
|
38
|
+
return (l2, y2) => {
|
|
39
39
|
const J3 = a("el-button"), z2 = a("el-text"), P2 = a("el-option"), Q2 = a("el-select"), oe = a("el-input"), ue = a("el-table-column"), ne = a("el-switch"), te = a("el-table"), de = a("el-dialog");
|
|
40
|
-
return u(), o(n, null, [t("div", null, [d(J3, { type: "primary", onClick:
|
|
40
|
+
return u(), o(n, null, [t("div", null, [d(J3, { type: "primary", onClick: y2[0] || (y2[0] = (e3) => K.value = true) }, { default: r(() => y2[2] || (y2[2] = [m("编辑")])), _: 1 }), i(d(z2, { type: "success" }, { default: r(() => y2[3] || (y2[3] = [m(" 已设置条件")])), _: 1 }, 512), [[p, e2.configure.props.dynamicColumnData.columnModelTable && e2.configure.props.dynamicColumnData.columnModelTable.length > 0]])]), d(de, { "append-to-body": "", modelValue: K.value, "onUpdate:modelValue": y2[1] || (y2[1] = (e3) => K.value = e3), title: e2.title, width: "60%" }, { default: r(() => [t("div", null, [d(J3, { onClick: q, type: "primary", size: "default" }, { default: r(() => y2[4] || (y2[4] = [m("添加")])), _: 1 }), d(J3, { onClick: G, type: "danger", size: "default" }, { default: r(() => y2[5] || (y2[5] = [m("删除")])), _: 1 })]), d(te, { data: e2.configure.props.dynamicColumnData.columnModelTable, border: "", "highlight-current-row": "", "row-key": "id", style: { width: "100%", "margin-top": "10px" }, "max-height": "400px", onRowDblclick: $, onRowClick: $ }, { default: r(() => [d(ue, { label: "基本信息" }, { default: r(() => [d(ue, { label: "标题字段", align: "center", fixed: "left", prop: "columnName", width: "150" }, { default: r((l3) => [l3.row.editing ? (u(), o("span", F, ["dataTable" == e2.configure.props.dynamicColumnData.dataSources ? (u(), c(Q2, { key: 0, modelValue: l3.row.columnName, "onUpdate:modelValue": (e3) => l3.row.columnName = e3, clearable: "", filterable: "", "allow-create": "", "default-first-option": "" }, { default: r(() => [(u(true), o(n, null, b(e2.modelTableFieldList, (e3, l4) => (u(), c(P2, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : "sql" == e2.configure.props.dynamicColumnData.dataSources ? (u(), c(oe, { key: 1, modelValue: l3.row.columnName, "onUpdate:modelValue": (e3) => l3.row.columnName = e3 }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "optionGroup" == e2.configure.props.dynamicColumnData.dataSources ? (u(), c(Q2, { key: 2, modelValue: l3.row.columnName, "onUpdate:modelValue": (e3) => l3.row.columnName = e3, clearable: "" }, { default: r(() => [d(P2, { label: "Label", value: "label" }), d(P2, { label: "Value", value: "value" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : s("", true)])) : (u(), o("span", k, [t("span", null, w(l3.row.columnName), 1)]))]), _: 1 }), d(ue, { label: "固定标题", align: "center", fixed: "left", prop: "headerName", width: "150" }, { default: r((e3) => [e3.row.editing ? (u(), c(oe, { key: 1, modelValue: e3.row.headerName, "onUpdate:modelValue": (l3) => e3.row.headerName = l3, onFocus: (l3) => $(e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", _, w(e3.row.headerName), 1))]), _: 1 }), d(ue, { label: "标题值设置", align: "center", prop: "valueSet", width: "110" }, { default: r((e3) => [d(J3, { disabled: !e3.row.editing, type: "primary", onClick: (l3) => W(2, e3.row, e3.$index) }, { default: r(() => y2[6] || (y2[6] = [m("配置值设置")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 }), d(ue, { label: "固定标题国际化key", align: "center", fixed: "left", prop: "headerNameI18nKey", width: "200px" }, { default: r((e3) => [e3.row.editing ? (u(), c(oe, { key: 1, modelValue: e3.row.headerNameI18nKey, "onUpdate:modelValue": (l3) => e3.row.headerNameI18nKey = l3, onFocus: (l3) => $(e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", C, w(e3.row.headerNameI18nKey), 1))]), _: 1 }), d(ue, { label: "内容字段", align: "center", fixed: "left", prop: "prop", width: "210px" }, { default: r((l3) => [l3.row.editing ? (u(), o("span", x, [d(Q2, { modelValue: l3.row.prop, "onUpdate:modelValue": (e3) => l3.row.prop = e3, clearable: "", style: { width: "100%" }, onFocus: (e3) => $(l3.row) }, { default: r(() => [(u(true), o(n, null, b(e2.clolumnTableFields, (e3, l4) => (u(), c(P2, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])])) : (u(), o("span", U, [t("span", null, w(l3.row.prop), 1)]))]), _: 1 }), d(ue, { label: "标题内容映射字段", align: "center", fixed: "left", prop: "titleContentJoinField", width: "210px" }, { default: r((l3) => [l3.row.editing ? (u(), o("span", T, [d(Q2, { modelValue: l3.row.titleContentJoinField, "onUpdate:modelValue": (e3) => l3.row.titleContentJoinField = e3, clearable: "", style: { width: "100%" }, onFocus: (e3) => $(l3.row) }, { default: r(() => [(u(true), o(n, null, b(e2.clolumnTableFields, (e3, l4) => (u(), c(P2, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])])) : (u(), o("span", N, [t("span", null, w(l3.row.titleContentJoinField), 1)]))]), _: 1 }), d(ue, { label: "列宽", align: "center", prop: "width", width: "80px" }, { default: r((e3) => [e3.row.editing ? (u(), c(oe, { key: 1, modelValue: e3.row.width, "onUpdate:modelValue": (l3) => e3.row.width = l3, onFocus: (l3) => $(e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", D, w(e3.row.width), 1))]), _: 1 }), d(ue, { label: "是否显示", align: "center", prop: "visible", width: "80px" }, { default: r((e3) => [e3.row.editing ? (u(), c(ne, { key: 1, modelValue: e3.row.visible, "onUpdate:modelValue": (l3) => e3.row.visible = l3, onFocus: (l3) => $(e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", R, w(e3.row.visible), 1))]), _: 1 }), d(ue, { label: "是否导出", align: "center", prop: "exportable", width: "80px" }, { default: r((e3) => [e3.row.editing ? (u(), c(ne, { key: 1, modelValue: e3.row.exportable, "onUpdate:modelValue": (l3) => e3.row.exportable = l3, onFocus: (l3) => $(e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", S, w(e3.row.exportable), 1))]), _: 1 }), d(ue, { label: "是否排序", align: "center", prop: "listColumnSort", width: "80" }, { default: r((e3) => [e3.row.editing ? (u(), c(Q2, { key: 1, modelValue: e3.row.listColumnSort, "onUpdate:modelValue": (l3) => e3.row.listColumnSort = l3, clearable: "", onFocus: (l3) => $(e3.row) }, { default: r(() => [d(P2, { label: "自定义", value: "custom" }), d(P2, { label: "排序", value: "true" }), d(P2, { label: "不排序", value: "false" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", M, w(e3.row.listColumnSort), 1))]), _: 1 }), d(ue, { label: "冻结列", align: "center", prop: "listColumnFixed", width: "80" }, { default: r((e3) => [e3.row.editing ? (u(), c(Q2, { key: 1, modelValue: e3.row.listColumnFixed, "onUpdate:modelValue": (l3) => e3.row.listColumnFixed = l3, clearable: "", onFocus: (l3) => $(e3.row) }, { default: r(() => [d(P2, { label: "不冻结", value: "false" }), d(P2, { label: "左", value: "left" }), d(P2, { label: "右", value: "right" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", E, w(e3.row.listColumnFixed), 1))]), _: 1 }), d(ue, { label: "格式设置", align: "center", prop: "format", width: "100" }, { default: r((e3) => [d(J3, { disabled: !e3.row.editing, type: "primary", onClick: (l3) => {
|
|
41
41
|
return a2 = e3.row, le.value = true, void (ae.value = a2.listColumnFormat);
|
|
42
42
|
var a2;
|
|
43
|
-
} }, { default: r(() =>
|
|
43
|
+
} }, { default: r(() => y2[7] || (y2[7] = [m("配置格式 ")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 }), d(ue, { label: "值设置", align: "center", prop: "valueSet", width: "110" }, { default: r((e3) => [d(J3, { disabled: !e3.row.editing, type: "primary", onClick: (l3) => W(1, e3.row, e3.$index) }, { default: r(() => y2[8] || (y2[8] = [m("配置值设置")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 }), d(ue, { label: "行编辑设置" }, { default: r(() => [d(ue, { label: "是否编辑", align: "center", prop: "editable", width: "80px" }, { default: r((e3) => [e3.row.editing ? (u(), c(ne, { key: 1, modelValue: e3.row.editable, "onUpdate:modelValue": (l3) => e3.row.editable = l3, onFocus: (l3) => $(e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", A, w(e3.row.editable), 1))]), _: 1 }), d(ue, { label: "默认值设置", align: "center", prop: "defaultValue", width: "100" }, { default: r((e3) => [e3.row.editing ? (u(), c(Q2, { key: 1, modelValue: e3.row.defaultValue, "onUpdate:modelValue": (l3) => e3.row.defaultValue = l3, placeholder: "请选择", "allow-create": "", clearable: "", "default-first-option": "", filterable: "", onFocus: (l3) => $(e3.row) }, { default: r(() => [d(P2, { label: "无", value: "CURRENT_NOTHING" }), d(P2, { label: "当前日期", value: "CURRENT_DATE" }), d(P2, { label: "当前时间", value: "CURRENT_TIME" }), d(P2, { label: "当前用户名", value: "CURRENT_USER_NAME" }), d(P2, { label: "当前登陆名", value: "CURRENT_LOGIN_NAME" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", I, w(e3.row.defaultValue), 1))]), _: 1 }), d(ue, { label: "控件类型名称", align: "center", prop: "controlName", width: "120" }, { default: r((e3) => [e3.row.editing ? s("", true) : (u(), o("span", O, w(e3.row.controlName), 1)), d(Q2, { modelValue: e3.row.controlName, "onUpdate:modelValue": (l3) => e3.row.controlName = l3, onFocus: (l3) => $(e3.row), placeholder: "请选择" }, { default: r(() => [(u(true), o(n, null, b(f(V)(), (e4) => (u(), c(P2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), d(ue, { label: "控件事件", align: "center", width: "150px" }, { default: r((e3) => [d(Q2, { clearable: "", disabled: !e3.row.editing, modelValue: e3.row.eventOption, "onUpdate:modelValue": (l3) => e3.row.eventOption = l3, placeholder: "请选择自定义方法", filterable: "", onFocus: (l3) => $(e3.row) }, { default: r(() => [(u(true), o(n, null, b(f(h)(), (e4) => (u(), c(P2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), d(ue, { label: "校验规则", align: "center", prop: "checkRules", width: "200px" }, { default: r((e3) => [e3.row.editing ? (u(), c(oe, { key: 1, modelValue: e3.row.checkRules, "onUpdate:modelValue": (l3) => e3.row.checkRules = l3, type: "textarea", onFocus: (l3) => $(e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])) : (u(), o("span", j, w(e3.row.checkRules), 1))]), _: 1 }), d(ue, { label: "校验规则", prop: "validations", width: "800" }, { default: r(() => [d(ue, { label: "必填", align: "center", width: "70" }, { default: r((e3) => [d(ne, { modelValue: e3.row.required, "onUpdate:modelValue": (l3) => e3.row.required = l3, onFocus: (l3) => $(e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), d(ue, { label: "校验格式", width: "100" }, { default: r((e3) => [d(Q2, { modelValue: e3.row.type, "onUpdate:modelValue": (l3) => e3.row.type = l3, clearable: "", onFocus: (l3) => $(e3.row) }, { default: r(() => [d(P2, { label: "字符串", value: "string" }), d(P2, { label: "数字", value: "number" }), d(P2, { label: "布尔", value: "boolean" }), d(P2, { label: "整形", value: "integer" }), d(P2, { label: "单精度", value: "float" }), d(P2, { label: "url", value: "url" }), d(P2, { label: "邮箱地址", value: "email" }), d(P2, { label: "十六进制", value: "hex" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), d(ue, { label: "正则表达式", width: "500" }, { default: r((e3) => [d(oe, { modelValue: e3.row.pattern, "onUpdate:modelValue": (l3) => e3.row.pattern = l3, placeholder: "填写正则表达式", type: "textarea", onFocus: (l3) => $(e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]), H.value ? (u(), c(g, { key: 0, ref_key: "configurationRef", ref: L, configValue: B.value, clolumnTableFields: e2.clolumnTableFields, onAdd: X, onClose: Y }, null, 8, ["configValue", "clolumnTableFields"])) : s("", true), le.value ? (u(), c(v, { key: 1, pageDesign: l2.pageDesign, formatting: ae.value, onAdd: Z, onClose: ee }, null, 8, ["pageDesign", "formatting"])) : s("", true)]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
44
44
|
};
|
|
45
45
|
} });
|
|
46
46
|
export {
|
|
@@ -17,10 +17,10 @@ const C = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
17
17
|
const k3 = o("Top"), _ = o("el-icon"), V = o("Bottom"), x = o("el-table-column"), y = o("el-option"), P = o("el-select"), F = o("el-switch"), z = o("el-table");
|
|
18
18
|
return i(), t(z, { ref_key: "tableRef", ref: b, data: w.value, style: { width: "100%" } }, { default: n(() => [r(x, { width: "50", align: "center" }, { default: n((e4) => [u("div", C, [r(_, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e5) {
|
|
19
19
|
let l4 = h(e5);
|
|
20
|
-
l4 < 1 || c(() => {
|
|
20
|
+
l4 < 1 || (c(() => {
|
|
21
21
|
const e6 = w.value;
|
|
22
22
|
[e6[l4 - 1], e6[l4]] = [e6[l4], e6[l4 - 1]];
|
|
23
|
-
});
|
|
23
|
+
}), w.value);
|
|
24
24
|
}(e4.row) }, { default: n(() => [r(k3)]), _: 2 }, 1032, ["onClick"]), r(_, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e5) {
|
|
25
25
|
let l4 = h(e5);
|
|
26
26
|
if (-1 == l4 || w.value.length == l4 + 1) return;
|
|
@@ -41,7 +41,7 @@ const B = { class: "amb-object-design-table-ref" }, P = { id: "tableDesignMenu",
|
|
|
41
41
|
if (!e3.base) return;
|
|
42
42
|
const o2 = {};
|
|
43
43
|
if (e3.base.subPaging && (o2.subPaging = e3.base.subPaging), e3.base.layout && (o2.layout = e3.base.layout.join(",")), e3.base.pageSizes && (o2.pageSizes = e3.base.pageSizes.split(",")), e3.base.alignTitle && (o2.alignTitle = e3.base.alignTitle), e3.base.alignContent && (o2.alignContent = e3.base.alignContent), o2 != {}) for (const e4 in o2) I.value[e4] = o2[e4];
|
|
44
|
-
}(), z.configure.runtime.props = I.value;
|
|
44
|
+
}(), z.configure.runtime.props = I.value, z.configure;
|
|
45
45
|
}, { immediate: true }), i(() => z.configure.props.isChangeGroupHeader, () => {
|
|
46
46
|
z.configure.props.isChangeGroupHeader && (q.value = w(z.configure), X.value && X.value.doLayout());
|
|
47
47
|
}), i(() => z.configure.props.isEnableGroupHeader, () => {
|
|
@@ -78,7 +78,7 @@ const B = { class: "amb-object-design-table-ref" }, P = { id: "tableDesignMenu",
|
|
|
78
78
|
e5.props.base.displayOrder && e5.props.base.displayOrder == o3 || (e5.props.base.displayOrder = o3);
|
|
79
79
|
}), z.configure.props.base.isEnableGroupHeader && (T(z.configure.items[le.value + 1], null, z.configure.props.groupHeaders), q.value = w(z.configure), x.$emit("synchroGroupHeadersData"));
|
|
80
80
|
} else "deleteNode" === e3 && O.confirm("当前操作会删除当前列", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
81
|
-
z.configure.items.splice(le.value, 1);
|
|
81
|
+
z.configure.props, ne.value, z.configure.items.splice(le.value, 1);
|
|
82
82
|
}).catch(() => {
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as r, createElementVNode as n, createCommentVNode as s, createElementBlock as i, Fragment as m, renderList as p, unref as d, createTextVNode as c } from "vue";
|
|
2
2
|
import { getFormComponentOptions as f } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import g from "../component/data-origin-tree.vue.js";
|
|
4
|
+
import b from "../../form/common/data-linkage.vue.js";
|
|
5
5
|
import y from "../../common/common-attr-size.vue.js";
|
|
6
6
|
import V from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import _ from "../../common/common-icon-bind.vue.js";
|
|
@@ -28,11 +28,11 @@ const N = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8p
|
|
|
28
28
|
}).catch((e4) => {
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
return null == H2.configure.props.base.showCheckbox && (H2.configure.props.base.showCheckbox = "no"), null == H2.configure.props.base.defaultExpandAll && (H2.configure.props.base.defaultExpandAll = false), null == H2.configure.props.base.expandOnClickNode && (H2.configure.props.base.expandOnClickNode = true), null == H2.configure.props.base.accordion && (H2.configure.props.base.accordion = false), null == H2.configure.props.base.lazy && (H2.configure.props.base.lazy = false), H2.configure.props.format || (H2.configure.props.format = {}), (l2, U2) => {
|
|
31
|
+
return H2.pageDesign, null == H2.configure.props.base.showCheckbox && (H2.configure.props.base.showCheckbox = "no"), null == H2.configure.props.base.defaultExpandAll && (H2.configure.props.base.defaultExpandAll = false), null == H2.configure.props.base.expandOnClickNode && (H2.configure.props.base.expandOnClickNode = true), null == H2.configure.props.base.accordion && (H2.configure.props.base.accordion = false), null == H2.configure.props.base.lazy && (H2.configure.props.base.lazy = false), H2.configure.props.format || (H2.configure.props.format = {}), (l2, U2) => {
|
|
32
32
|
const E = a("el-option"), I = a("el-select"), L = a("el-form-item"), q = a("el-input"), F = a("el-switch"), G = a("el-radio"), $ = a("el-radio-group"), M = a("el-button"), B = a("el-col"), J = a("el-icon"), K = a("el-tooltip"), Q = a("el-collapse-item"), R = a("Suffixmodule"), W = a("IconSetDialog"), X = a("el-input-number"), Y = a("VariateSelect"), Z = a("el-checkbox"), ee = a("el-collapse"), le = a("el-form");
|
|
33
33
|
return t(), o(le, { "label-width": "80px", size: "small" }, { default: u(() => [r(ee, { modelValue: w.value, "onUpdate:modelValue": U2[38] || (U2[38] = (e3) => w.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [r(Q, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", N, [r(L, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.name, "onUpdate:modelValue": U2[0] || (U2[0] = (l3) => e2.configure.name = l3), disabled: "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(d(f)(), (e3) => (t(), o(E, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.uuid, "onUpdate:modelValue": U2[1] || (U2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), r(L, { label: "绑定变量", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(V, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": j }, null, 8, ["modelValue"]))]), _: 1 }), r(L, { label: "自定义编码", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.code, "onUpdate:modelValue": U2[2] || (U2[2] = (l3) => e2.configure.code = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { label: "可选择", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.base.showCheckbox, "onUpdate:modelValue": U2[3] || (U2[3] = (l3) => e2.configure.props.base.showCheckbox = l3), "active-text": "是", "inactive-text": "否" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { label: "默认展开", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.defaultExpandAll, "onUpdate:modelValue": U2[4] || (U2[4] = (l3) => e2.configure.props.base.defaultExpandAll = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[39] || (U2[39] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[40] || (U2[40] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.base.defaultExpandAll ? (t(), o(L, { key: 0, label: "展开级数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.base.unfoldGrade, "onUpdate:modelValue": U2[5] || (U2[5] = (l3) => e2.configure.props.base.unfoldGrade = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), r(L, { label: "节点可点击", title: "点击节点时展开或收缩节点", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.expandOnClickNode, "onUpdate:modelValue": U2[6] || (U2[6] = (l3) => e2.configure.props.base.expandOnClickNode = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[41] || (U2[41] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[42] || (U2[42] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "手风琴模式", title: "每次只打开一个同级树节点", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.accordion, "onUpdate:modelValue": U2[7] || (U2[7] = (l3) => e2.configure.props.base.accordion = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[43] || (U2[43] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[44] || (U2[44] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "是否懒加载", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.lazy, "onUpdate:modelValue": U2[8] || (U2[8] = (l3) => e2.configure.props.base.lazy = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[45] || (U2[45] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[46] || (U2[46] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "是否过滤", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.filter, "onUpdate:modelValue": U2[9] || (U2[9] = (l3) => e2.configure.props.base.filter = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[47] || (U2[47] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[48] || (U2[48] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "节点图标", class: "amb-design-attr-item" }, { default: u(() => [r(_, { iconType: e2.configure.props.base.iconType, iconValue: e2.configure.props.base.icon, "onUpdate:modelValue": U2[10] || (U2[10] = (e3, l3) => function(e4, l4) {
|
|
34
34
|
H2.configure.props.base.iconType = e4, H2.configure.props.base.iconValue = l4;
|
|
35
|
-
}(e3, l3)) }, null, 8, ["iconType", "iconValue"])]), _: 1 }), r(L, { label: "节点内容", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.contentLogic, "onUpdate:modelValue": U2[11] || (U2[11] = (l3) => e2.configure.props.format.contentLogic = l3), filterable: "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(e2.pageDesign.customEvents, (e3) => (t(), o(E, { label: e3.eventName, value: e3.uuid }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": U2[12] || (U2[12] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [r(G, { value: "default" }, { default: u(() => U2[49] || (U2[49] = [c("普通")])), _: 1 }), r(G, { value: "hidden" }, { default: u(() => U2[50] || (U2[50] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "对应数据表", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.base.treeTableName, "onUpdate:modelValue": U2[13] || (U2[13] = (l3) => e2.configure.props.base.treeTableName = l3), title: e2.configure.props.base.treeTableName, clearable: "", readonly: "true", onClick: O, placeholder: "请选择数据表" }, { append: u(() => [r(M, { type: "default", icon: d(h), onClick: O, size: "small" }, null, 8, ["icon"]), r(M, { type: "default", icon: d(k), onClick: A, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), r(K, { class: "box-item", content: "使用右键菜单编辑保存时需要配置" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "父节点关联属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeParentIdProp, "onUpdate:modelValue": U2[14] || (U2[14] = (l3) => e2.configure.props.base.treeParentIdProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点nodeId对应数据表的父节点属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "标签属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeLabelProp, "onUpdate:modelValue": U2[15] || (U2[15] = (l3) => e2.configure.props.base.treeLabelProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点Label对应数据表的属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })])]), _: 1 }), r(Q, { title: "右键菜单", name: "nodeContextmenu", class: "amb-design-attr-group-header" }, { default: u(() => [r(v, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"])]), _: 1 }), (t(), o(b, { key: e2.configure.uuid, configure: e2.configure }, { beanName: u(() => [r(L, { label: "", class: "amb-design-attr-item" }, { default: u(() => [e2.configure.props.dataOrigin ? (t(), o(B, { key: 0, span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.dataOrigin.beanName, "onUpdate:modelValue": U2[16] || (U2[16] = (l3) => e2.configure.props.dataOrigin.beanName = l3), placeholder: "beanName" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), r(K, { class: "box-item", content: "为空时默认使用页面配置的自定义bean" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["configure"])), r(Q, { title: "格式设置", name: "formatting", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", T, [r(L, { label: "格式化分类", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.type, "onUpdate:modelValue": U2[17] || (U2[17] = (l3) => e2.configure.props.format.type = l3), placeholder: "请选择" }, { default: u(() => [r(E, { label: "数值", value: "number" }), r(E, { label: "货币", value: "currency" }), r(E, { label: "日期", value: "date" }), r(E, { label: "时间", value: "time" }), r(E, { label: "百分比", value: "percent" }), r(E, { label: "自定义控件", value: "customControl" }), r(E, { label: "超链接", value: "hyperlinks" }), r(E, { label: "图标/标签", value: "icon" }), r(E, { label: "附件控件", value: "files" }), r(E, { label: "富文本", value: "richEditor" }), r(E, { label: "脱敏组件", value: "secretInfo" }), r(E, { label: "自定义方法", value: "custom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "number" === e2.configure.props.format.type || "currency" === e2.configure.props.format.type || "percent" === e2.configure.props.format.type ? (t(), o(L, { key: 0, label: "小数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.decimalDigit, "onUpdate:modelValue": U2[18] || (U2[18] = (l3) => e2.configure.props.format.decimalDigit = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 1, label: "科学计数", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.scientific, "onUpdate:modelValue": U2[19] || (U2[19] = (l3) => e2.configure.props.format.scientific = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type && e2.configure.props.format.scientific ? (t(), o(L, { key: 2, label: "计数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.scientificNum, "onUpdate:modelValue": U2[20] || (U2[20] = (l3) => e2.configure.props.format.scientificNum = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 3, label: "千位分隔符", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.thousandsSeparator, "onUpdate:modelValue": U2[21] || (U2[21] = (l3) => e2.configure.props.format.thousandsSeparator = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 4, label: "数值符号", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.symbol, "onUpdate:modelValue": U2[22] || (U2[22] = (l3) => e2.configure.props.format.symbol = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "currency" === e2.configure.props.format.type ? (t(), o(L, { key: 5, label: "货币符号", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.currencySymbol, "onUpdate:modelValue": U2[23] || (U2[23] = (l3) => e2.configure.props.format.currencySymbol = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "$", value: "$" }), r(E, { label: "¥", value: "¥" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "date" === e2.configure.props.format.type ? (t(), o(L, { key: 6, label: "日期类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.dataType, "onUpdate:modelValue": U2[24] || (U2[24] = (l3) => e2.configure.props.format.dataType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "yyyy-m-d", value: "yyyy-m-d" }), r(E, { label: "yyyy-m-d hh:mm:ss", value: "yyyy-m-d hh:mm:ss" }), r(E, { label: "yyyy-m", value: "yyyy-m" }), r(E, { label: "m-d", value: "m-d" }), r(E, { label: "yyyy", value: "yyyy" }), r(E, { label: "yyyy年m月d日", value: "yyyy年m月d日" }), r(E, { label: "yyyy年m月d日hh时mm分ss秒", value: "yyyy年m月d日hh时mm分ss秒" }), r(E, { label: "yyyy年m月", value: "yyyy年m月" }), r(E, { label: "m月d日", value: "m月d日" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "time" === e2.configure.props.format.type ? (t(), o(L, { key: 7, label: "时间类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.timeType, "onUpdate:modelValue": U2[25] || (U2[25] = (l3) => e2.configure.props.format.timeType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "HH:mm", value: "HH:mm" }), r(E, { label: "HH:mm:ss", value: "HH:mm:ss" }), r(E, { label: "HH时mm分", value: "HH时mm分" }), r(E, { label: "HH时mm分ss秒", value: "HH时mm分ss秒" }), r(E, { label: "hh:mm", value: "hh:mm" }), r(E, { label: "hh:mm:ss", value: "hh:mm:ss" }), r(E, { label: "hh时mm分", value: "hh时mm分" }), r(E, { label: "hh时mm分ss秒", value: "hh时mm分ss秒" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "customControl" === e2.configure.props.format.type ? (t(), o(L, { key: 8, label: "自定义控件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[26] || (U2[26] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "hyperlinks" === e2.configure.props.format.type ? (t(), o(R, { key: 9, pageDesign: e2.pageDesign, configure: e2.configure }, null, 8, ["pageDesign", "configure"])) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 10, label: "图标", class: "amb-design-attr-item" }, { default: u(() => [r(W, { modelValue: e2.configure.props.format.icon, "onUpdate:modelValue": U2[27] || (U2[27] = (l3) => e2.configure.props.format.icon = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 11, label: "图标位置", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.position, "onUpdate:modelValue": U2[28] || (U2[28] = (l3) => e2.configure.props.format.position = l3), "active-text": "后缀", "inactive-text": "前缀", "active-value": "suf", "inactive-value": "pre" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 12, label: "回调事件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.event, "onUpdate:modelValue": U2[29] || (U2[29] = (l3) => e2.configure.props.format.event = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "custom" === e2.configure.props.format.type ? (t(), o(L, { key: 13, label: "自定义方法", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[30] || (U2[30] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 14, label: "是否多选", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.multiple, "onUpdate:modelValue": U2[31] || (U2[31] = (l3) => e2.configure.props.format.multiple = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 15, label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.accept, "onUpdate:modelValue": U2[32] || (U2[32] = (l3) => e2.configure.props.format.accept = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 16, label: "文件限制(M)", class: "amb-design-attr-item" }, { default: u(() => [r(X, { modelValue: e2.configure.props.format.limitFileSize, "onUpdate:modelValue": U2[33] || (U2[33] = (l3) => e2.configure.props.format.limitFileSize = l3), min: 1 }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type && e2.configure.props.format.multiple ? (t(), o(L, { key: 17, label: "选择数据表" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.childAnnexDataTableCode, "onUpdate:modelValue": U2[34] || (U2[34] = (l3) => e2.configure.props.format.childAnnexDataTableCode = l3), onClick: l2.openSelectDataTable, clearable: "" }, { append: u(() => [r(M, { type: "default", icon: d(h), onClick: l2.openSelectDataTable }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "onClick"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 18, label: "展示名字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.showName, "onUpdate:prop": U2[35] || (U2[35] = (l3) => e2.configure.props.format.showName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 19, label: "服务器字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.serverName, "onUpdate:prop": U2[36] || (U2[36] = (l3) => e2.configure.props.format.serverName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true)])]), _: 1 }), (t(), o(g, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), (t(), o(Q, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [n("div", D, [r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(Z, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": U2[37] || (U2[37] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(B, { span: 8 }, { default: u(() => [r(Z, { label: "自定义", value: "custom" })]), _: 1 }), r(B, { span: 14 }, { default: u(() => [r(M, { type: "default" }, { default: u(() => U2[51] || (U2[51] = [c("自定义逻辑")])), _: 1 }), r(M, { type: "default", icon: d(h), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), (t(), o(y, { key: e2.configure.uuid, size: e2.configure.props.size, showCalcHeight: true }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"]), r(C, { ref_key: "selectTableDialog", ref: S, onSelectTable: P, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 1 });
|
|
35
|
+
}(e3, l3)) }, null, 8, ["iconType", "iconValue"])]), _: 1 }), r(L, { label: "节点内容", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.contentLogic, "onUpdate:modelValue": U2[11] || (U2[11] = (l3) => e2.configure.props.format.contentLogic = l3), filterable: "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(e2.pageDesign.customEvents, (e3) => (t(), o(E, { label: e3.eventName, value: e3.uuid }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": U2[12] || (U2[12] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [r(G, { value: "default" }, { default: u(() => U2[49] || (U2[49] = [c("普通")])), _: 1 }), r(G, { value: "hidden" }, { default: u(() => U2[50] || (U2[50] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "对应数据表", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.base.treeTableName, "onUpdate:modelValue": U2[13] || (U2[13] = (l3) => e2.configure.props.base.treeTableName = l3), title: e2.configure.props.base.treeTableName, clearable: "", readonly: "true", onClick: O, placeholder: "请选择数据表" }, { append: u(() => [r(M, { type: "default", icon: d(h), onClick: O, size: "small" }, null, 8, ["icon"]), r(M, { type: "default", icon: d(k), onClick: A, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), r(K, { class: "box-item", content: "使用右键菜单编辑保存时需要配置" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "父节点关联属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeParentIdProp, "onUpdate:modelValue": U2[14] || (U2[14] = (l3) => e2.configure.props.base.treeParentIdProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点nodeId对应数据表的父节点属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "标签属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeLabelProp, "onUpdate:modelValue": U2[15] || (U2[15] = (l3) => e2.configure.props.base.treeLabelProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点Label对应数据表的属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })])]), _: 1 }), r(Q, { title: "右键菜单", name: "nodeContextmenu", class: "amb-design-attr-group-header" }, { default: u(() => [r(v, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"])]), _: 1 }), (t(), o(g, { key: e2.configure.uuid, configure: e2.configure }, { beanName: u(() => [r(L, { label: "", class: "amb-design-attr-item" }, { default: u(() => [e2.configure.props.dataOrigin ? (t(), o(B, { key: 0, span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.dataOrigin.beanName, "onUpdate:modelValue": U2[16] || (U2[16] = (l3) => e2.configure.props.dataOrigin.beanName = l3), placeholder: "beanName" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), r(K, { class: "box-item", content: "为空时默认使用页面配置的自定义bean" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["configure"])), r(Q, { title: "格式设置", name: "formatting", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", T, [r(L, { label: "格式化分类", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.type, "onUpdate:modelValue": U2[17] || (U2[17] = (l3) => e2.configure.props.format.type = l3), placeholder: "请选择" }, { default: u(() => [r(E, { label: "数值", value: "number" }), r(E, { label: "货币", value: "currency" }), r(E, { label: "日期", value: "date" }), r(E, { label: "时间", value: "time" }), r(E, { label: "百分比", value: "percent" }), r(E, { label: "自定义控件", value: "customControl" }), r(E, { label: "超链接", value: "hyperlinks" }), r(E, { label: "图标/标签", value: "icon" }), r(E, { label: "附件控件", value: "files" }), r(E, { label: "富文本", value: "richEditor" }), r(E, { label: "脱敏组件", value: "secretInfo" }), r(E, { label: "自定义方法", value: "custom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "number" === e2.configure.props.format.type || "currency" === e2.configure.props.format.type || "percent" === e2.configure.props.format.type ? (t(), o(L, { key: 0, label: "小数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.decimalDigit, "onUpdate:modelValue": U2[18] || (U2[18] = (l3) => e2.configure.props.format.decimalDigit = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 1, label: "科学计数", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.scientific, "onUpdate:modelValue": U2[19] || (U2[19] = (l3) => e2.configure.props.format.scientific = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type && e2.configure.props.format.scientific ? (t(), o(L, { key: 2, label: "计数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.scientificNum, "onUpdate:modelValue": U2[20] || (U2[20] = (l3) => e2.configure.props.format.scientificNum = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 3, label: "千位分隔符", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.thousandsSeparator, "onUpdate:modelValue": U2[21] || (U2[21] = (l3) => e2.configure.props.format.thousandsSeparator = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 4, label: "数值符号", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.symbol, "onUpdate:modelValue": U2[22] || (U2[22] = (l3) => e2.configure.props.format.symbol = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "currency" === e2.configure.props.format.type ? (t(), o(L, { key: 5, label: "货币符号", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.currencySymbol, "onUpdate:modelValue": U2[23] || (U2[23] = (l3) => e2.configure.props.format.currencySymbol = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "$", value: "$" }), r(E, { label: "¥", value: "¥" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "date" === e2.configure.props.format.type ? (t(), o(L, { key: 6, label: "日期类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.dataType, "onUpdate:modelValue": U2[24] || (U2[24] = (l3) => e2.configure.props.format.dataType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "yyyy-m-d", value: "yyyy-m-d" }), r(E, { label: "yyyy-m-d hh:mm:ss", value: "yyyy-m-d hh:mm:ss" }), r(E, { label: "yyyy-m", value: "yyyy-m" }), r(E, { label: "m-d", value: "m-d" }), r(E, { label: "yyyy", value: "yyyy" }), r(E, { label: "yyyy年m月d日", value: "yyyy年m月d日" }), r(E, { label: "yyyy年m月d日hh时mm分ss秒", value: "yyyy年m月d日hh时mm分ss秒" }), r(E, { label: "yyyy年m月", value: "yyyy年m月" }), r(E, { label: "m月d日", value: "m月d日" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "time" === e2.configure.props.format.type ? (t(), o(L, { key: 7, label: "时间类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.timeType, "onUpdate:modelValue": U2[25] || (U2[25] = (l3) => e2.configure.props.format.timeType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "HH:mm", value: "HH:mm" }), r(E, { label: "HH:mm:ss", value: "HH:mm:ss" }), r(E, { label: "HH时mm分", value: "HH时mm分" }), r(E, { label: "HH时mm分ss秒", value: "HH时mm分ss秒" }), r(E, { label: "hh:mm", value: "hh:mm" }), r(E, { label: "hh:mm:ss", value: "hh:mm:ss" }), r(E, { label: "hh时mm分", value: "hh时mm分" }), r(E, { label: "hh时mm分ss秒", value: "hh时mm分ss秒" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "customControl" === e2.configure.props.format.type ? (t(), o(L, { key: 8, label: "自定义控件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[26] || (U2[26] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "hyperlinks" === e2.configure.props.format.type ? (t(), o(R, { key: 9, pageDesign: e2.pageDesign, configure: e2.configure }, null, 8, ["pageDesign", "configure"])) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 10, label: "图标", class: "amb-design-attr-item" }, { default: u(() => [r(W, { modelValue: e2.configure.props.format.icon, "onUpdate:modelValue": U2[27] || (U2[27] = (l3) => e2.configure.props.format.icon = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 11, label: "图标位置", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.position, "onUpdate:modelValue": U2[28] || (U2[28] = (l3) => e2.configure.props.format.position = l3), "active-text": "后缀", "inactive-text": "前缀", "active-value": "suf", "inactive-value": "pre" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 12, label: "回调事件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.event, "onUpdate:modelValue": U2[29] || (U2[29] = (l3) => e2.configure.props.format.event = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "custom" === e2.configure.props.format.type ? (t(), o(L, { key: 13, label: "自定义方法", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[30] || (U2[30] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 14, label: "是否多选", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.multiple, "onUpdate:modelValue": U2[31] || (U2[31] = (l3) => e2.configure.props.format.multiple = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 15, label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.accept, "onUpdate:modelValue": U2[32] || (U2[32] = (l3) => e2.configure.props.format.accept = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 16, label: "文件限制(M)", class: "amb-design-attr-item" }, { default: u(() => [r(X, { modelValue: e2.configure.props.format.limitFileSize, "onUpdate:modelValue": U2[33] || (U2[33] = (l3) => e2.configure.props.format.limitFileSize = l3), min: 1 }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type && e2.configure.props.format.multiple ? (t(), o(L, { key: 17, label: "选择数据表" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.childAnnexDataTableCode, "onUpdate:modelValue": U2[34] || (U2[34] = (l3) => e2.configure.props.format.childAnnexDataTableCode = l3), onClick: l2.openSelectDataTable, clearable: "" }, { append: u(() => [r(M, { type: "default", icon: d(h), onClick: l2.openSelectDataTable }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "onClick"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 18, label: "展示名字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.showName, "onUpdate:prop": U2[35] || (U2[35] = (l3) => e2.configure.props.format.showName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 19, label: "服务器字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.serverName, "onUpdate:prop": U2[36] || (U2[36] = (l3) => e2.configure.props.format.serverName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true)])]), _: 1 }), (t(), o(b, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), (t(), o(Q, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [n("div", D, [r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(Z, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": U2[37] || (U2[37] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(B, { span: 8 }, { default: u(() => [r(Z, { label: "自定义", value: "custom" })]), _: 1 }), r(B, { span: 14 }, { default: u(() => [r(M, { type: "default" }, { default: u(() => U2[51] || (U2[51] = [c("自定义逻辑")])), _: 1 }), r(M, { type: "default", icon: d(h), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), (t(), o(y, { key: e2.configure.uuid, size: e2.configure.props.size, showCalcHeight: true }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"]), r(C, { ref_key: "selectTableDialog", ref: S, onSelectTable: P, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 1 });
|
|
36
36
|
};
|
|
37
37
|
} });
|
|
38
38
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, watch as t, resolveComponent as i, createElementBlock as n, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as a, watch as t, resolveComponent as i, createElementBlock as n, openBlock as l, normalizeClass as o, createVNode as c, normalizeStyle as r } from "vue";
|
|
2
2
|
import { caculateDetailComponentStyle as d, caculateComponentProps as s } from "../../../../utils/form-design-util.js";
|
|
3
3
|
const u = e({ __name: "tree-design", props: { configure: Object }, emits: ["handleSelect"], setup(e2, { emit: u2 }) {
|
|
4
4
|
const p = e2;
|
|
5
5
|
null == p.configure.title && (p.configure.title = "");
|
|
6
6
|
const f = { id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }, b = a({}), h = a(""), x = a({}), g = a({});
|
|
7
7
|
return t(p.configure.style, () => {
|
|
8
|
-
d(p.configure, b, h, x), p.configure.runtime.style = b.value, p.configure.runtime.class = h.value, p.configure.runtime.headerStyle = x.value;
|
|
8
|
+
d(p.configure, b, h, x), b.value, p.configure.runtime.style = b.value, p.configure.runtime.class = h.value, p.configure.runtime.headerStyle = x.value;
|
|
9
9
|
}, { immediate: true }), t(p.configure.props, () => {
|
|
10
10
|
s(p.configure, g), function() {
|
|
11
11
|
let e3 = {};
|
|
@@ -22,7 +22,7 @@ const u = e({ __name: "tree-design", props: { configure: Object }, emits: ["hand
|
|
|
22
22
|
}(), p.configure.runtime.props = g.value;
|
|
23
23
|
}, { immediate: true }), (e3, a2) => {
|
|
24
24
|
const t2 = i("el-tree");
|
|
25
|
-
return
|
|
25
|
+
return l(), n("div", { class: o(["amb-tree-group-main", h.value]) }, [c(t2, { style: r([b.value, { width: "100%" }]), data: g.value.staticData, "default-expand-all": g.value.defaultExpandAll, "expand-on-click-node": g.value.expandOnClickNode, indent: g.value.retractWidth ? g.value.retractWidth : 18, accordion: g.value.accordion, "show-checkbox": g.value.showCheckbox, props: f }, null, 8, ["style", "data", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox"])], 2);
|
|
26
26
|
};
|
|
27
27
|
} });
|
|
28
28
|
export {
|
|
@@ -6,7 +6,7 @@ const w = { class: "icon-set-center-body" }, x = ["onClick"], z = { class: "dial
|
|
|
6
6
|
M.value = true;
|
|
7
7
|
}
|
|
8
8
|
function A() {
|
|
9
|
-
F("update:modelValue", N.value), M.value = false;
|
|
9
|
+
N.value, F("update:modelValue", N.value), M.value = false;
|
|
10
10
|
}
|
|
11
11
|
return o(() => q.modelValue, (e3) => {
|
|
12
12
|
L.value = e3;
|
package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js
CHANGED
|
@@ -13,7 +13,7 @@ const y = e({ __name: "fileupload-design", props: { pageDesign: {}, configure: {
|
|
|
13
13
|
let e3 = y2.configure.props ? y2.configure.props : {};
|
|
14
14
|
const l2 = e3.uploadConfig ? e3.uploadConfig : {}, i2 = e3.base ? e3.base : {}, o2 = {};
|
|
15
15
|
l2.drag && (o2.drag = l2.drag), o2.prop = i2.prop, o2.propName = i2.propName, o2.displayType = l2.displayType ? l2.displayType : "input", o2.state = i2.state, o2.placeholder = i2.placeholder, o2.disabledNoPreview = i2.disabledNoPreview, o2.disabledNoDownload = i2.disabledNoDownload, l2.accept ? o2.accept = l2.accept : o2.accept = null, l2.multiple ? (o2.multiple = l2.multiple, l2.limit ? o2.limit = l2.limit : o2.limit = null) : (o2.multiple = false, o2.limit = 1), l2.limitFileSize ? o2.limitFileSize = l2.limitFileSize : o2.limitFileSize = null, l2.openCameraOrChoosePhoto ? o2.openCameraOrChoosePhoto = l2.openCameraOrChoosePhoto : o2.openCameraOrChoosePhoto = null, o2.isDeleteNow = l2.isDeleteNow, Object.assign(w.value, o2);
|
|
16
|
-
}(), y2.configure.runtime.props = w.value, y2.configure.runtime.titleExceedStyle = S.value;
|
|
16
|
+
}(), y2.configure.runtime.props = w.value, y2.configure.runtime.titleExceedStyle = S.value, w.value;
|
|
17
17
|
}, { immediate: true }), (e3, l2) => {
|
|
18
18
|
const i2 = o("el-form-item");
|
|
19
19
|
return a(), t(i2, { required: !!w.value.required, class: r([h.value, "remove-formLabel-formContent-blankStyle"]), "label-width": w.value.labelWidth, style: u(b.value) }, { label: p(() => [w.value.tittleShow ? (a(), m("div", { key: 0, style: u({ ...C.value, ...S.value, "padding-right": "12px" }) }, c(w.value.title ? w.value.title : "Files"), 5)) : d("", true)]), default: p(() => [s(n(g), { disabled: "disabled" == w.value.state, style: { width: "100%" }, displayType: w.value.displayType, accept: w.value.accept, multiple: w.value.multiple, placeholder: w.value.placeholder, limit: w.value.limit, "limit-file-size": w.value.limitFileSize, "file-info": e3.fileInfo, "file-list": e3.fileList, "on-success": e3.onSuccess, "on-remove": e3.onRemove, openFsUpload: false, "before-upload": e3.beforeUpload }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "file-info", "file-list", "on-success", "on-remove", "before-upload"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as e, ref as u, watch as
|
|
1
|
+
import { defineComponent as e, ref as u, watch as l, resolveComponent as t, createBlock as a, openBlock as o, normalizeStyle as i, normalizeClass as n, withCtx as r, createElementVNode as s, createElementBlock as p, createCommentVNode as c, createTextVNode as f, unref as v, toDisplayString as y } from "vue";
|
|
2
2
|
import { caculateDetailComponentStyle as d, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
|
|
3
3
|
import { SuperIcon as T } from "agilebuilder-ui";
|
|
4
4
|
const g = { style: { display: "flex", width: "100%", "justify-content": "space-between" } }, x = ["title"], I = e({ __name: "label-design", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
5
5
|
const I2 = e2;
|
|
6
6
|
I2.configure.runtime || (I2.configure.runtime = {});
|
|
7
7
|
const b = u({}), h = u(""), V = u({}), _ = u({}), w = u({});
|
|
8
|
-
return
|
|
8
|
+
return l(I2.configure.style, () => {
|
|
9
9
|
d(I2.configure, b, h, V), I2.configure.runtime.style = b.value, I2.configure.runtime.class = h.value, I2.configure.runtime.headerStyle = V.value;
|
|
10
|
-
}, { immediate: true }),
|
|
11
|
-
m(I2.configure, _, w), function() {
|
|
10
|
+
}, { immediate: true }), l(I2.configure.props, () => {
|
|
11
|
+
m(I2.configure, _, w), _.value, function() {
|
|
12
12
|
let e3 = I2.configure.props ? I2.configure.props : {};
|
|
13
|
-
const u2 = e3.base ? e3.base : {},
|
|
14
|
-
u2.labelText && (
|
|
13
|
+
const u2 = e3.base ? e3.base : {}, l2 = e3.dataOrigin ? e3.dataOrigin : {}, t2 = {};
|
|
14
|
+
u2.labelText && (t2.labelText = u2.labelText), u2.whetherTittle && (t2.whetherTittle = u2.whetherTittle);
|
|
15
15
|
const a2 = e3.preSuffix ? e3.preSuffix : {};
|
|
16
|
-
(a2.preIconType || a2.preText || a2.sufIconType || a2.sufText) && (
|
|
17
|
-
const o2 =
|
|
16
|
+
(a2.preIconType || a2.preText || a2.sufIconType || a2.sufText) && (t2.preIconType = a2.preIconType, t2.preIconValue = a2.preIconValue, t2.preText = a2.preText, t2.sufIconType = a2.sufIconType, t2.sufIconValue = a2.sufIconValue, t2.sufText = a2.sufText, t2.iconPosition = a2.position);
|
|
17
|
+
const o2 = l2.optionValueSetType;
|
|
18
18
|
let i2 = false;
|
|
19
|
-
o2 && (_.value.formatType = o2, "static" != o2 && "optionGroup" != o2 && "dynamicData" != o2 && "dataTable" != o2 || (i2 = true), _.value.hasOptions = i2, _.value.decimalDigit =
|
|
19
|
+
o2 && (_.value.formatType = o2, "static" != o2 && "optionGroup" != o2 && "dynamicData" != o2 && "dataTable" != o2 || (i2 = true), _.value.hasOptions = i2, _.value.decimalDigit = l2.decimalDigit, _.value.thousandsSeparator = l2.thousandsSeparator, _.value.symbol = l2.symbol, _.value.dateFormat = l2.dateFormat, _.value.timeFormat = l2.timeFormat, _.value.formatFunc = l2.formatFunc), Object.assign(_.value, t2);
|
|
20
20
|
}(), I2.configure.runtime.props = _.value, I2.configure.runtime.titleExceedStyle = w.value;
|
|
21
21
|
}, { immediate: true }), (e3, u2) => {
|
|
22
|
-
const
|
|
23
|
-
return o(), a(
|
|
22
|
+
const l2 = t("el-form-item");
|
|
23
|
+
return o(), a(l2, { required: !!_.value.required, class: n(h.value), "label-width": _.value.labelWidth, style: i(b.value) }, { label: r(() => [_.value.tittleShow ? (o(), p("div", { key: 0, style: i({ ...V.value, ...w.value }) }, y(_.value.title), 5)) : c("", true)]), default: r(() => [s("div", g, [s("span", { style: { overflow: "hidden" }, title: _.value.value }, [_.value.preIconValue || _.value.preText ? (o(), p("span", { key: 0, class: n({ "el-input__suffix": "outer" != _.value.iconPosition, "el-input-group__append": "outer" == _.value.iconPosition }), style: i(e3.appendStyle) }, [_.value.preIconType && _.value.preIconValue ? (o(), a(v(T), { key: 0, iconType: _.value.preIconType, iconValue: _.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), f(" " + y(_.value.preText), 1)], 6)) : c("", true), f(" " + y(_.value.value), 1)], 8, x), _.value.sufIconValue || _.value.sufText ? (o(), p("span", { key: 0, class: n({ "el-input__suffix": "outer" != _.value.iconPosition, "el-input-group__append": "outer" == _.value.iconPosition }) }, [_.value.sufIconType && _.value.sufIconValue ? (o(), a(v(T), { key: 0, style: {}, iconType: _.value.sufIconType, iconValue: _.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), s("span", null, " " + y(_.value.sufText), 1)], 2)) : c("", true)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as t, onMounted as i, onUnmounted as u, resolveComponent as a, createBlock as n, openBlock as r, normalizeStyle as o, normalizeClass as c, withCtx as d, createElementVNode as s, createElementBlock as p, createCommentVNode as f, toDisplayString as
|
|
2
|
-
import { caculateDetailComponentStyle as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as t, onMounted as i, onUnmounted as u, resolveComponent as a, createBlock as n, openBlock as r, normalizeStyle as o, normalizeClass as c, withCtx as d, createElementVNode as s, createElementBlock as p, createCommentVNode as f, toDisplayString as v } from "vue";
|
|
2
|
+
import { caculateDetailComponentStyle as g, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
|
|
3
3
|
import h from "quill";
|
|
4
4
|
import "quill/dist/quill.snow.css";
|
|
5
5
|
const y = { style: { height: "100%", width: "100%" } }, b = e({ __name: "richtext-design", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
6
6
|
const b2 = e2;
|
|
7
7
|
b2.configure.runtime || (b2.configure.runtime = {}), l(null);
|
|
8
|
-
const x = l(null), k = l(null), q = l(null), w = l({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["12px", "13px", "14px", "15px", "16px", "18px", "20px", "24px", "28px", "32px", "36px"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: "", readOnly: true }), S = l({}), _ = l(""), C = l({}), E = l({}), R = l({}),
|
|
9
|
-
function
|
|
8
|
+
const x = l(null), k = l(null), q = l(null), w = l({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["12px", "13px", "14px", "15px", "16px", "18px", "20px", "24px", "28px", "32px", "36px"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: "", readOnly: true }), S = l({}), _ = l(""), C = l({}), E = l({}), R = l({}), T = l({});
|
|
9
|
+
function j() {
|
|
10
10
|
if (k && k.value && k.value.container) {
|
|
11
11
|
const e3 = k.value.container.parentNode.getBoundingClientRect(), l2 = k.value.container.getBoundingClientRect();
|
|
12
12
|
let t2 = e3.height - (l2.top - e3.top);
|
|
@@ -14,15 +14,15 @@ const y = { style: { height: "100%", width: "100%" } }, b = e({ __name: "richtex
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
t(b2.configure.style, () => {
|
|
17
|
-
|
|
17
|
+
g(b2.configure, S, _, C), b2.configure.runtime.style = S.value, b2.configure.runtime.class = _.value, b2.configure.runtime.headerStyle = C.value;
|
|
18
18
|
}, { immediate: true }), t(b2.configure.props, () => {
|
|
19
19
|
m(b2.configure, E, R);
|
|
20
20
|
let e3 = b2.configure.props ? b2.configure.props : {};
|
|
21
21
|
const l2 = e3.base ? e3.base : {};
|
|
22
22
|
let t2 = "";
|
|
23
|
-
t2 = l2.prop ? l2.prop : l2.defaultValue ? l2.defaultValue : "${page." + b2.configure.uuid + "}", E.value.value = t2,
|
|
23
|
+
t2 = l2.prop ? l2.prop : l2.defaultValue ? l2.defaultValue : "${page." + b2.configure.uuid + "}", E.value.value = t2, j(), k && k.value && (k.value.enable("readonly" != E.value.state), k.value.root.dataset.placeholder = E.value.placeholder ? E.value.placeholder : ""), b2.configure.runtime.props = E.value, b2.configure.runtime.titleExceedStyle = R.value;
|
|
24
24
|
}, { immediate: true });
|
|
25
|
-
const
|
|
25
|
+
const B = (e3) => {
|
|
26
26
|
q.value && e3 && q.value.click();
|
|
27
27
|
}, F = (e3) => {
|
|
28
28
|
const l2 = Array.prototype.slice.call(e3.target.files);
|
|
@@ -35,17 +35,18 @@ const y = { style: { height: "100%", width: "100%" } }, b = e({ __name: "richtex
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
let
|
|
38
|
+
let H;
|
|
39
39
|
return i(() => {
|
|
40
|
-
k.value = new h(x.value, w.value), k.value.getModule("toolbar").addHandler("image",
|
|
41
|
-
|
|
40
|
+
k.value = new h(x.value, w.value), k.value.getModule("toolbar").addHandler("image", B), k.value.on("text-change", function(e3, l2, t2) {
|
|
41
|
+
H && clearTimeout(H), H = setTimeout(function() {
|
|
42
|
+
k.value.root.innerHTML;
|
|
42
43
|
}, 1e3);
|
|
43
|
-
}),
|
|
44
|
+
}), j();
|
|
44
45
|
}), u(() => {
|
|
45
|
-
|
|
46
|
+
H && clearTimeout(H);
|
|
46
47
|
}), (e3, l2) => {
|
|
47
48
|
const t2 = a("el-form-item");
|
|
48
|
-
return r(), n(t2, { required: E.value.required, class: c([_.value, "remove-formLabel-formContent-blankStyle"]), "label-width": E.value.labelWidth, style: o(S.value) }, { label: d(() => [E.value.tittleShow ? (r(), p("div", { key: 0, style: o({ ...C.value, ...R.value, "padding-right": "12px" }) },
|
|
49
|
+
return r(), n(t2, { required: E.value.required, class: c([_.value, "remove-formLabel-formContent-blankStyle"]), "label-width": E.value.labelWidth, style: o(S.value) }, { label: d(() => [E.value.tittleShow ? (r(), p("div", { key: 0, style: o({ ...C.value, ...R.value, "padding-right": "12px" }) }, v(E.value.title), 5)) : f("", true)]), default: d(() => [s("div", y, [s("div", { ref_key: "quillEditorRef", ref: x, style: o({ ...T.value }) }, null, 4), s("input", { type: "file", hidden: "", accept: ".jpg,.png", ref_key: "fileBtn", ref: q, onChange: F }, null, 544)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
49
50
|
};
|
|
50
51
|
} });
|
|
51
52
|
export {
|
package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js
CHANGED
|
@@ -23,9 +23,9 @@ const h = { class: "operation-area operation-area-float" }, $ = e({ __name: "set
|
|
|
23
23
|
const l3 = T.value.filter((l4) => l4.dbColumnName && l4.dbColumnName === e4);
|
|
24
24
|
l3 && l3.length > 0 && (q.value.fieldName = l3[0].name);
|
|
25
25
|
}
|
|
26
|
-
q.value.id ? (l2 = q.value.id, a2 = q.value, y.put(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-form-rule-base/${l2}`, a2)).then((e5) => {
|
|
26
|
+
q.value.id ? (q.value, (l2 = q.value.id, a2 = q.value, y.put(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-form-rule-base/${l2}`, a2)).then((e5) => {
|
|
27
27
|
q.value = e5, b({ showClose: true, message: "保存成功", type: "success" });
|
|
28
|
-
}) : (q.value.systemCode = w.systemCode, function(e5) {
|
|
28
|
+
})) : (q.value.systemCode = w.systemCode, q.value, function(e5) {
|
|
29
29
|
return y.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/setting-form-rule-base", e5);
|
|
30
30
|
}(q.value).then((e5) => {
|
|
31
31
|
q.value = e5, b({ showClose: true, message: "保存成功", type: "success" });
|