super-page-designer 2.3.4-design1 → 2.3.4-sit1-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/assemblys-config.js +1 -1
- package/dist/es/components/design/utils/page-event-util.js +0 -1
- package/dist/es/components/design/utils/page-i18n-util.js +5 -6
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +4 -5
- package/dist/es/components/design/views/assemblys/chart/pie/series/styles/style-pie.vue.js +6 -6
- 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 +0 -3
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +2 -3
- 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 +2 -3
- 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/data-origin.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.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +20 -14
- 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/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +14 -14
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +8 -8
- 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 +13 -14
- package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +6 -5
- 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.vue.js → config.vue2.js} +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +17 -18
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +0 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +2 -3
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/stores/undo-redo-store.js +1 -1
- package/dist/es/style.css +9 -9
- package/package.json +5 -5
|
@@ -16,18 +16,18 @@ const U = e({ __name: "suffixmodule", props: { configure: {}, pageDesign: {}, ta
|
|
|
16
16
|
const N = l(null);
|
|
17
17
|
A && A.length > 0 && (N.value = O(A));
|
|
18
18
|
const x = l(null);
|
|
19
|
-
U2.tableConfigure && (x.value = O(U2.tableConfigure.modelFields)), U2.isDialog ? w.value = U2.configure : (U2.configure.props.linkPage || (U2.configure.props.linkPage = {}), Array.isArray(U2.configure.props.linkPage) && U2.configure.props.linkPage.length > 0 && (w.value = U2.configure.props.linkPage[0]), w.value = U2.configure.props.linkPage), void 0 === w.value.linkType && (w.value.linkType = "page"), void 0 === w.value.isNewPage && (w.value.isNewPage = true), w.value.dynamicTags || (w.value.dynamicTags = []), w.value.buttonDisplayConditionsList || (w.value.buttonDisplayConditionsList = []), void 0 === w.value.alignCenter && (w.value.alignCenter = true);
|
|
20
|
-
const F = [{ label: "弹窗", value: "popup" }, { label: "新页签", value: "newTab" }, { label: "局部刷新", value: "refresh" }],
|
|
21
|
-
function
|
|
22
|
-
U2.tableConfigure &&
|
|
19
|
+
U2.tableConfigure && (x.value = O(U2.tableConfigure.modelFields)), U2.isDialog ? w.value = U2.configure : (U2.configure.props.linkPage || (U2.configure.props.linkPage = {}), Array.isArray(U2.configure.props.linkPage) && U2.configure.props.linkPage.length > 0 && (w.value = U2.configure.props.linkPage[0]), w.value = U2.configure.props.linkPage), void 0 === w.value.linkType && (w.value.linkType = "page"), void 0 === w.value.isNewPage && (w.value.isNewPage = true), w.value.dynamicTags || (w.value.dynamicTags = []), w.value.buttonDisplayConditionsList || (w.value.buttonDisplayConditionsList = []), void 0 === w.value.alignCenter && (w.value.alignCenter = true), void 0 === w.value.displayTextJudge && (w.value.displayTextJudge = true);
|
|
20
|
+
const F = [{ label: "弹窗", value: "popup" }, { label: "新页签", value: "newTab" }, { label: "局部刷新", value: "refresh" }], J = [{ label: "弹窗", value: "popup" }, { label: "局部刷新", value: "refresh" }], W = [{ label: "弹框", value: "dialog" }, { label: "抽屉", value: "drawer" }], L = [{ label: "右到左", value: "rtl" }, { label: "左到右", value: "ltr" }, { label: "上到下", value: "ttb" }, { label: "下到上", value: "btt" }], R = l(null);
|
|
21
|
+
function z() {
|
|
22
|
+
U2.tableConfigure && R.value && R.value.changeTableFields(U2.tableConfigure.modelFields);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function E() {
|
|
25
25
|
D.value.openDialog();
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function H() {
|
|
28
28
|
w.value.jumpPageCode = "", w.value.jumpPageName = "";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function I(e3) {
|
|
31
31
|
w.value.jumpPageAdditional = e3;
|
|
32
32
|
}
|
|
33
33
|
function S(e3) {
|
|
@@ -38,21 +38,21 @@ const U = e({ __name: "suffixmodule", props: { configure: {}, pageDesign: {}, ta
|
|
|
38
38
|
let u2 = "";
|
|
39
39
|
"page" === a2 && l2.jumpPageCode ? u2 = l2.linkType + ":" + l2.jumpPageCode : "url" === a2 && (u2 = l2.jumpAddress), l2.jumpPageUrl = u2;
|
|
40
40
|
}, { immediate: true }), a(() => U2.tableConfigure, (e3) => {
|
|
41
|
-
|
|
41
|
+
z();
|
|
42
42
|
}), u(() => {
|
|
43
|
-
|
|
43
|
+
z();
|
|
44
44
|
});
|
|
45
45
|
const q = l("");
|
|
46
46
|
function G(e3) {
|
|
47
47
|
q.value = e3, w.value.dynamicTags.push(e3);
|
|
48
48
|
}
|
|
49
49
|
return (e3, l2) => {
|
|
50
|
-
const a2 = o("el-radio"), u2 = o("el-form-item"), O2 = o("el-button"), U3 = o("el-input"), A2 = o("el-radio-group"), B2 = o("el-option"),
|
|
51
|
-
return i(), d(n, null, [p(A2, { modelValue: w.value.linkType, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => w.value.linkType = e4) }, { default: g(() => [p(u2, { class: "amb-design-attr-item", style: { width: "100%" } }, { label: g(() => [p(a2, { value: "" }, { default: g(() => l2[19] || (l2[19] = [v("无跳转 ")])), _: 1 })]), _: 1 }), p(u2, { class: "amb-design-attr-item", style: { width: "100%" } }, { label: g(() => [p(a2, { value: "page" }, { default: g(() => l2[20] || (l2[20] = [v("跳转页面")])), _: 1 })]), default: g(() => [p(U3, { disabled: "page" != w.value.linkType, modelValue: w.value.jumpPageName, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => w.value.jumpPageName = e4), title: w.value.jumpPageCode, onClick: r(
|
|
50
|
+
const a2 = o("el-radio"), u2 = o("el-form-item"), O2 = o("el-button"), U3 = o("el-input"), A2 = o("el-radio-group"), B2 = o("el-option"), z2 = o("el-select"), K = o("el-switch"), Q = o("el-tag"), X = o("el-divider");
|
|
51
|
+
return i(), d(n, null, [p(A2, { modelValue: w.value.linkType, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => w.value.linkType = e4) }, { default: g(() => [p(u2, { class: "amb-design-attr-item", style: { width: "100%" } }, { label: g(() => [p(a2, { value: "" }, { default: g(() => l2[19] || (l2[19] = [v("无跳转 ")])), _: 1 })]), _: 1 }), p(u2, { class: "amb-design-attr-item", style: { width: "100%" } }, { label: g(() => [p(a2, { value: "page" }, { default: g(() => l2[20] || (l2[20] = [v("跳转页面")])), _: 1 })]), default: g(() => [p(U3, { disabled: "page" != w.value.linkType, modelValue: w.value.jumpPageName, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => w.value.jumpPageName = e4), title: w.value.jumpPageCode, onClick: r(E, ["stop"]), readonly: "true" }, { append: g(() => [p(O2, { type: "default", disabled: "page" != w.value.linkType, icon: b(V), onClick: E, size: "small" }, null, 8, ["disabled", "icon"]), p(O2, { type: "default", disabled: "page" != w.value.linkType, icon: b(P), onClick: H, title: "Clear", size: "small" }, null, 8, ["disabled", "icon"])]), _: 1 }, 8, ["disabled", "modelValue", "title"])]), _: 1 }), p(u2, { class: "amb-design-attr-item", style: { width: "100%" } }, { label: g(() => [p(a2, { value: "url" }, { default: g(() => l2[21] || (l2[21] = [v("跳转地址")])), _: 1 })]), default: g(() => [p(U3, { disabled: "url" != w.value.linkType, modelValue: w.value.jumpAddress, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => w.value.jumpAddress = e4), clearable: "" }, null, 8, ["disabled", "modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), p(u2, { label: "打开方式", class: "amb-design-attr-item" }, { default: g(() => [p(z2, { modelValue: w.value.jumpPageOpenMode, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => w.value.jumpPageOpenMode = e4), clearable: "", placeholder: "请选择" }, { default: g(() => [(i(), d(n, null, c(F, (e4, l3) => p(B2, { key: l3, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), p(u2, { label: "移动端打开", class: "amb-design-attr-item" }, { default: g(() => [p(z2, { modelValue: w.value.jumpPageMobileOpenMode, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => w.value.jumpPageMobileOpenMode = e4), clearable: "", placeholder: "请选择" }, { default: g(() => [(i(), d(n, null, c(J, (e4, l3) => p(B2, { key: l3, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), t(p(u2, { label: "弹框方式", class: "amb-design-attr-item" }, { default: g(() => [p(z2, { modelValue: w.value.dialogType, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => w.value.dialogType = e4), clearable: "", placeholder: "请选择" }, { default: g(() => [(i(), d(n, null, c(W, (e4, l3) => p(B2, { key: l3, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "可拖拽", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.draggable, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => w.value.draggable = e4) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, !("popup" != w.value.jumpPageOpenMode && "popup" != w.value.jumpPageMobileOpenMode || w.value.dialogType && "dialog" !== w.value.dialogType)]]), t(p(u2, { label: "显示位置", class: "amb-design-attr-item" }, { default: g(() => [p(z2, { modelValue: w.value.showPosition, "onUpdate:modelValue": l2[7] || (l2[7] = (e4) => w.value.showPosition = e4), clearable: "", placeholder: "请选择" }, { default: g(() => [(i(), d(n, null, c(L, (e4, l3) => p(B2, { key: l3, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[f, ("popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode) && w.value.dialogType && "drawer" === w.value.dialogType]]), t(p(u2, { label: "拖出可视区", title: "拖动范围可以超出可视区", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.overflow, "onUpdate:modelValue": l2[8] || (l2[8] = (e4) => w.value.overflow = e4) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, !("popup" != w.value.jumpPageOpenMode && "popup" != w.value.jumpPageMobileOpenMode || w.value.dialogType && "dialog" !== w.value.dialogType)]]), t(p(u2, { label: "弹窗标题", class: "amb-design-attr-item" }, { default: g(() => [p(h, { modelValue: w.value.jumpPageTitle, "onUpdate:modelValue": l2[9] || (l2[9] = (e4) => w.value.jumpPageTitle = e4) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "是否全屏", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.fullscreen, "onUpdate:modelValue": l2[10] || (l2[10] = (e4) => w.value.fullscreen = e4), disabled: !("dialog" === w.value.dialogType) }, null, 8, ["modelValue", "disabled"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "是否居中", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.alignCenter, "onUpdate:modelValue": l2[11] || (l2[11] = (e4) => w.value.alignCenter = e4), disabled: !("dialog" === w.value.dialogType) }, null, 8, ["modelValue", "disabled"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "弹窗宽度", class: "amb-design-attr-item" }, { default: g(() => [p(U3, { modelValue: w.value.jumpPageWidth, "onUpdate:modelValue": l2[12] || (l2[12] = (e4) => w.value.jumpPageWidth = e4), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "弹窗高度", class: "amb-design-attr-item" }, { default: g(() => [p(U3, { modelValue: w.value.jumpPageHeight, "onUpdate:modelValue": l2[13] || (l2[13] = (e4) => w.value.jumpPageHeight = e4), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "关闭事件", class: "amb-design-attr-item" }, { default: g(() => [p(U3, { modelValue: w.value.closeEvent, "onUpdate:modelValue": l2[14] || (l2[14] = (e4) => w.value.closeEvent = e4), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "关闭后刷新", title: "关闭页面时是否刷新父页面", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.isRefreshWhenClosePopup, "onUpdate:modelValue": l2[15] || (l2[15] = (e4) => w.value.isRefreshWhenClosePopup = e4) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), e3.isButton && e3.showDisplayConditions ? (i(), s(u2, { key: 0, label: "显示判断", class: "amb-design-attr-item" }, { default: g(() => [p(C, { title: "显示判断", list: w.value.buttonDisplayConditionsList, ref_key: "conditionRef", ref: R }, null, 8, ["list"])]), _: 1 })) : m("", true), e3.isButton ? (i(), s(u2, { key: 1, label: "显示文本", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.displayTextJudge, "onUpdate:modelValue": l2[16] || (l2[16] = (e4) => w.value.displayTextJudge = e4) }, null, 8, ["modelValue"])]), _: 1 })) : m("", true), e3.isButton ? (i(), s(u2, { key: 2, label: "图标", class: "amb-design-attr-item" }, { default: g(() => [p(_, { iconType: w.value.iconType, iconValue: w.value.icon, "onUpdate:modelValue": l2[17] || (l2[17] = (e4, l3) => function(e5, l4) {
|
|
52
52
|
w.value.iconType = e5, w.value.icon = l4;
|
|
53
53
|
}(e4, l3)) }, null, 8, ["iconType", "iconValue"])]), _: 1 })) : m("", true), e3.isButton ? (i(), s(u2, { key: 3, label: "显示值", class: "amb-design-attr-item" }, { default: g(() => [p(k, { isTable: e3.configure.isTable, modelValue: q.value, dataModelOptions: N.value, objModelOptions: x.value, "onUpdate:modelValue": G }, null, 8, ["isTable", "modelValue", "dataModelOptions", "objModelOptions"])]), _: 1 })) : m("", true), (i(true), d(n, null, c(w.value.dynamicTags, (e4, l3) => (i(), s(Q, { key: l3, "disable-transitions": true, closable: "", onClose: (e5) => function(e6, l4) {
|
|
54
54
|
w.value.dynamicTags.splice(l4, 1);
|
|
55
|
-
}(0, l3) }, { default: g(() => [v(y(e4), 1)]), _: 2 }, 1032, ["onClose"]))), 128)), p(X, null, { default: g(() => l2[22] || (l2[22] = [v("附加参数")])), _: 1 }), e3.isButton ? (i(), s(u2, { key: 4, label: "自动拼接id", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.isNeedId, "onUpdate:modelValue": l2[18] || (l2[18] = (e4) => w.value.isNeedId = e4) }, null, 8, ["modelValue"])]), _: 1 })) : m("", true), p(T, { data: w.value.jumpPageAdditional, tableConfigure: e3.tableConfigure, onDataChange:
|
|
55
|
+
}(0, l3) }, { default: g(() => [v(y(e4), 1)]), _: 2 }, 1032, ["onClose"]))), 128)), p(X, null, { default: g(() => l2[22] || (l2[22] = [v("附加参数")])), _: 1 }), e3.isButton ? (i(), s(u2, { key: 4, label: "自动拼接id", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.isNeedId, "onUpdate:modelValue": l2[18] || (l2[18] = (e4) => w.value.isNeedId = e4) }, null, 8, ["modelValue"])]), _: 1 })) : m("", true), p(T, { data: w.value.jumpPageAdditional, tableConfigure: e3.tableConfigure, onDataChange: I }, null, 8, ["data", "tableConfigure"]), p(j, { linkPage: w.value }, null, 8, ["linkPage"]), p(M, { ref_key: "selectPageDialog", ref: D, onSelectPage: S, systemCode: e3.pageDesign.systemCode, systemVersion: e3.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"])], 64);
|
|
56
56
|
};
|
|
57
57
|
} });
|
|
58
58
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as e, computed as l, onUnmounted as
|
|
2
|
-
import { Plus as
|
|
3
|
-
import { getUuidv4 as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as e, computed as l, onUnmounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as r, createElementVNode as s, createVNode as n, unref as p, createElementBlock as i, Fragment as m, renderList as d, withDirectives as c, vShow as f } from "vue";
|
|
2
|
+
import { Plus as v, Delete as b } from "@element-plus/icons-vue";
|
|
3
|
+
import { getUuidv4 as y } from "../../../../utils/common-util.js";
|
|
4
|
+
import g from "../../common/common-variable-bind.vue.js";
|
|
5
5
|
const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "depttree-autoset", props: { configure: { type: Object, default: {} }, isTable: { type: Boolean } }, setup(e2) {
|
|
6
6
|
const w2 = e2;
|
|
7
7
|
w2.configure.props || (w2.configure.props = {}), w2.configure.props.base || (w2.configure.props.base = {}), w2.configure.props.base.otherFieldSets || (w2.configure.props.base.otherFieldSets = []);
|
|
@@ -10,12 +10,12 @@ const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "depttree-a
|
|
|
10
10
|
const V = l(() => {
|
|
11
11
|
let e3 = w2.configure.props.base.treeType;
|
|
12
12
|
return e3 = e3 || "DeptUserTree", e3.includes("User") ? "user" : "dept";
|
|
13
|
-
}), k = [{ name: "ID", value: "id", types: ["user", "dept"] }, { name: "编码", value: "code", types: ["dept"] }, { name: "名称", value: "name", types: ["user", "dept"] }, { name: "登录名", value: "loginName", types: ["user"] }, { name: "Email", value: "email", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "领导登录名", value: "divisionManager", types: ["user"] }, { name: "正职部门编码", value: "mainDeptCode", types: ["user"] }, { name: "正职部门名称", value: "mainDeptName", types: ["user"] }, { name: "正职部门ID", value: "mainDeptId", types: ["user"] }, { name: "分支机构名称", value: "subCompanyName", types: ["user"] }, { name: "分支机构ID", value: "subCompanyId", types: ["user"] }];
|
|
13
|
+
}), k = [{ name: "ID", value: "id", types: ["user", "dept"] }, { name: "编码", value: "code", types: ["dept"] }, { name: "名称", value: "name", types: ["user", "dept"] }, { name: "领导登录名", value: "leader", types: ["dept"] }, { name: "领导名称", value: "leaderName", types: ["dept"] }, { name: "登录名", value: "loginName", types: ["user"] }, { name: "Email", value: "email", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "领导登录名", value: "divisionManager", types: ["user"] }, { name: "领导名称", value: "divisionManagerName", types: ["user"] }, { name: "正职部门编码", value: "mainDeptCode", types: ["user"] }, { name: "正职部门名称", value: "mainDeptName", types: ["user"] }, { name: "正职部门ID", value: "mainDeptId", types: ["user"] }, { name: "分支机构名称", value: "subCompanyName", types: ["user"] }, { name: "分支机构ID", value: "subCompanyId", types: ["user"] }];
|
|
14
14
|
function C(e3) {
|
|
15
15
|
let l2 = -1;
|
|
16
|
-
const
|
|
17
|
-
for (let
|
|
18
|
-
l2 =
|
|
16
|
+
const a2 = _.length;
|
|
17
|
+
for (let t2 = 0; t2 < a2; t2++) if (_[t2].uuid == e3.uuid) {
|
|
18
|
+
l2 = t2;
|
|
19
19
|
break;
|
|
20
20
|
}
|
|
21
21
|
return l2;
|
|
@@ -23,23 +23,23 @@ const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "depttree-a
|
|
|
23
23
|
function D(e3) {
|
|
24
24
|
let l2 = -1;
|
|
25
25
|
e3 && (l2 = C(e3));
|
|
26
|
-
const
|
|
27
|
-
_.splice(l2 + 1, 0,
|
|
26
|
+
const a2 = { uuid: y(), source: "", target: "" };
|
|
27
|
+
_.splice(l2 + 1, 0, a2);
|
|
28
28
|
}
|
|
29
29
|
let x;
|
|
30
|
-
return
|
|
30
|
+
return a(() => {
|
|
31
31
|
x && clearTimeout(x);
|
|
32
|
-
}), (l2,
|
|
33
|
-
const
|
|
34
|
-
return u(), o(
|
|
32
|
+
}), (l2, a2) => {
|
|
33
|
+
const y2 = t("el-option"), w3 = t("el-select"), U = t("el-table-column"), F = t("el-icon"), I = t("el-table"), N = t("el-collapse-item");
|
|
34
|
+
return u(), o(N, { title: "其他字段设值", name: "otherFieldSet", class: "amb-design-attr-group-header" }, { default: r(() => [s("div", h, [n(I, { data: p(T).otherFieldSets }, { default: r(() => [n(U, { prop: "label", label: "字段", width: "90" }, { default: r((e3) => [n(w3, { size: "small", modelValue: e3.row.source, "onUpdate:modelValue": (l3) => e3.row.source = l3, title: e3.row.source, filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择" }, { default: r(() => [(u(), i(m, null, d(k, (e4) => c(n(y2, { key: e4.name, label: e4.name, value: e4.value }, null, 8, ["label", "value"]), [[f, e4.types.includes(V.value)]])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), n(U, { prop: "value", label: "设置到", width: "120" }, { default: r((l3) => [n(g, { isTable: e2.configure.isTable, modelValue: l3.row.target, paramTypes: ["data", "page"], "onUpdate:modelValue": (e3) => function(e4, l4) {
|
|
35
35
|
l4.target = e4;
|
|
36
|
-
}(e3, l3.row) }, null, 8, ["isTable", "modelValue", "onUpdate:modelValue"])]), _: 1 }), n(U, { label: "操作", width: "60" }, { default: r((e3) => [n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => D(e3.row) }, { default: r(() => [n(p(
|
|
36
|
+
}(e3, l3.row) }, null, 8, ["isTable", "modelValue", "onUpdate:modelValue"])]), _: 1 }), n(U, { label: "操作", width: "60" }, { default: r((e3) => [n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => D(e3.row) }, { default: r(() => [n(p(v))]), _: 2 }, 1032, ["onClick"]), n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
37
37
|
x && clearTimeout(x);
|
|
38
38
|
let l4 = C(e4);
|
|
39
39
|
l4 > -1 && (_.splice(l4, 1), 0 == _.length && (x = setTimeout(function() {
|
|
40
40
|
D(null);
|
|
41
41
|
}, 10)));
|
|
42
|
-
}(e3.row) }, { default: r(() => [n(p(
|
|
42
|
+
}(e3.row) }, { default: r(() => [n(p(b))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|
package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js
CHANGED
|
@@ -8,18 +8,18 @@ import h from "../../common/common-function-code.vue.js";
|
|
|
8
8
|
import w from "../../common/common-i18n-key-input.vue.js";
|
|
9
9
|
const U = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { padding: "8px 0px 0px 0px" } }, k = e({ __name: "fileupload-attr-base", props: { configure: { type: Object, required: true, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => {
|
|
10
10
|
} } }, emits: ["changeAssembly"], setup(e2, { emit: k2 }) {
|
|
11
|
-
const j = e2, S = l(j.configure.name),
|
|
11
|
+
const j = e2, S = l(j.configure.name), N = k2;
|
|
12
12
|
j.configure.props || (j.configure.props = {}), j.configure.props.uploadConfig || (j.configure.props.uploadConfig = {});
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const z = l(["base"]), C = l(false);
|
|
14
|
+
function T(e3, l2, a2) {
|
|
15
15
|
"prop" == l2 ? j.configure.props.base.prop = e3 : j.configure.props.base.propName = e3, a2 && (j.configure.props.base.title = a2);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
V(j.configure, e3,
|
|
17
|
+
function W(e3) {
|
|
18
|
+
V(j.configure, e3, N);
|
|
19
19
|
}
|
|
20
|
-
return j.configure.isTable && (
|
|
21
|
-
const k3 = a("el-option"), j2 = a("el-select"),
|
|
22
|
-
return t(), o(K, { "label-width": "80px", size: "small" }, { default: u(() => [i(J, { modelValue:
|
|
20
|
+
return j.configure.isTable && (C.value = true), (l2, V2) => {
|
|
21
|
+
const k3 = a("el-option"), j2 = a("el-select"), N2 = a("el-form-item"), q = a("el-input"), D = a("el-radio"), O = a("el-radio-group"), P = a("el-input-number"), A = a("el-switch"), B = a("el-collapse-item"), E = a("el-radio-button"), F = a("el-text"), G = a("el-checkbox"), H = a("el-col"), I = a("el-button"), J = a("el-collapse"), K = a("el-form");
|
|
22
|
+
return t(), o(K, { "label-width": "80px", size: "small" }, { default: u(() => [i(J, { modelValue: z.value, "onUpdate:modelValue": V2[13] || (V2[13] = (e3) => z.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(B, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", U, [i(N2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [i(j2, { modelValue: S.value, "onUpdate:modelValue": V2[0] || (V2[0] = (e3) => S.value = e3), onChange: W, placeholder: "请选择" }, { default: u(() => [(t(true), n(p, null, m(c(g)(), (e3) => (t(), o(k3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(N2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [i(q, { modelValue: e2.configure.uuid, "onUpdate:modelValue": V2[1] || (V2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), C.value ? d("", true) : (t(), o(N2, { key: 0, label: "文件路径", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data"], "onUpdate:modelValue": V2[2] || (V2[2] = (e3, l3) => T(e3, "prop", l3)) }, null, 8, ["modelValue"]))]), _: 1 })), C.value ? d("", true) : (t(), o(N2, { key: 1, label: "文件名", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.propName, paramTypes: ["data", "fixed"], "onUpdate:modelValue": V2[3] || (V2[3] = (e3) => T(e3, "propName")) }, null, 8, ["modelValue"]))]), _: 1 })), C.value ? d("", true) : (t(), o(N2, { key: 2, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), C.value ? d("", true) : (t(), o(N2, { key: 3, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": V2[4] || (V2[4] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [i(D, { value: true }, { default: u(() => V2[14] || (V2[14] = [f("显示")])), _: 1 }), i(D, { value: false }, { default: u(() => V2[15] || (V2[15] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), r(i(N2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [i(w, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": V2[5] || (V2[5] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), r(i(N2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [i(P, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": V2[6] || (V2[6] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), r(i(N2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": V2[7] || (V2[7] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [i(D, { value: "block" }, { default: u(() => V2[16] || (V2[16] = [f("换行")])), _: 1 }), i(D, { value: "inline" }, { default: u(() => V2[17] || (V2[17] = [f("不换行")])), _: 1 }), i(D, { value: "omit" }, { default: u(() => V2[18] || (V2[18] = [f("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(N2, { label: "输入提示", class: "amb-design-attr-item" }, { default: u(() => [i(w, { modelValue: e2.configure.props.base.placeholder, "onUpdate:modelValue": V2[8] || (V2[8] = (l3) => e2.configure.props.base.placeholder = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(N2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": V2[9] || (V2[9] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [i(D, { value: "default" }, { default: u(() => V2[19] || (V2[19] = [f("普通")])), _: 1 }), i(D, { value: "disabled" }, { default: u(() => V2[20] || (V2[20] = [f("禁用")])), _: 1 }), i(D, { value: "hidden" }, { default: u(() => V2[21] || (V2[21] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(N2, { label: "禁用时不可预览", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e2.configure.props.base.disabledNoPreview, "onUpdate:modelValue": V2[10] || (V2[10] = (l3) => e2.configure.props.base.disabledNoPreview = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(N2, { label: "禁用时不可下载", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e2.configure.props.base.disabledNoDownload, "onUpdate:modelValue": V2[11] || (V2[11] = (l3) => e2.configure.props.base.disabledNoDownload = l3) }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(v, { uploadConfig: e2.configure.props.uploadConfig }, { addition: u((e3) => [i(N2, { label: "上传方式", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e3.row.displayType, "onUpdate:modelValue": (l3) => e3.row.displayType = l3, size: "small" }, { default: u(() => [i(E, { label: "输入框", value: "input" }), i(E, { label: "按钮", value: "button" }), i(E, { label: "拖拽", value: "drag" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), i(N2, { label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [i(q, { modelValue: e3.row.accept, "onUpdate:modelValue": (l3) => e3.row.accept = l3, placeholder: "*" }, null, 8, ["modelValue", "onUpdate:modelValue"]), i(F, { type: "success" }, { default: u(() => V2[22] || (V2[22] = [f("格式如:.doc,.docx,.xml...")])), _: 1 })]), _: 2 }, 1024)]), _: 1 }, 8, ["uploadConfig"]), (t(), o(B, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [s("div", x, [i(N2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(G, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": V2[12] || (V2[12] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(N2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(H, { span: 8 }, { default: u(() => [i(G, { label: "自定义", value: "custom" })]), _: 1 }), i(H, { span: 14 }, { default: u(() => [i(I, { type: "default" }, { default: u(() => V2[23] || (V2[23] = [f("自定义逻辑")])), _: 1 }), i(I, { type: "default", icon: l2.Search, circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), C.value ? d("", true) : (t(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as i, resolveComponent as o, createBlock as t, openBlock as a, normalizeStyle as u, normalizeClass as r, withCtx as p, createVNode as s, unref as n, createElementBlock as m, createCommentVNode as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as i, resolveComponent as o, createBlock as t, openBlock as a, normalizeStyle as u, normalizeClass as r, withCtx as p, createVNode as s, unref as n, createElementBlock as m, createCommentVNode as d, toDisplayString as c } from "vue";
|
|
2
2
|
import { caculateDetailComponentStyle as f, caculateComponentProps as v } from "../../../../utils/form-design-util.js";
|
|
3
3
|
import { FsUploadNew as g } from "agilebuilder-ui";
|
|
4
4
|
import "@element-plus/icons-vue";
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
return i(
|
|
10
|
-
f(
|
|
11
|
-
}, { immediate: true }), i(
|
|
12
|
-
v(
|
|
13
|
-
let e3 =
|
|
5
|
+
const y = e({ __name: "fileupload-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
|
|
6
|
+
const y2 = e2;
|
|
7
|
+
y2.configure.runtime || (y2.configure.runtime = {});
|
|
8
|
+
const b = l({}), h = l(""), C = l({}), w = l({}), S = l({});
|
|
9
|
+
return i(y2.configure.style, () => {
|
|
10
|
+
f(y2.configure, b, h, C), y2.configure.runtime.style = b.value, y2.configure.runtime.class = h.value, y2.configure.runtime.headerStyle = C.value;
|
|
11
|
+
}, { immediate: true }), i(y2.configure.props, () => {
|
|
12
|
+
v(y2.configure, w, S), function() {
|
|
13
|
+
let e3 = y2.configure.props ? y2.configure.props : {};
|
|
14
14
|
const l2 = e3.uploadConfig ? e3.uploadConfig : {}, i2 = e3.base ? e3.base : {}, o2 = {};
|
|
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.
|
|
16
|
-
}(),
|
|
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;
|
|
17
17
|
}, { immediate: true }), (e3, l2) => {
|
|
18
18
|
const i2 = o("el-form-item");
|
|
19
|
-
return a(), t(i2, { required: !!w.value.required, class: r([h.value, "remove-formLabel-formContent-blankStyle"]), "label-width": w.value.labelWidth, style: u(
|
|
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"]);
|
|
20
20
|
};
|
|
21
21
|
} });
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
y as default
|
|
24
24
|
};
|
package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as t, createVNode as i, withDirectives as s, createCommentVNode as r, createElementVNode as n, createElementBlock as p, Fragment as d, renderList as f, unref as m, createTextVNode as c, vShow as g } from "vue";
|
|
2
2
|
import { getFormComponentOptions as b } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import { componentNameChange as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { componentNameChange as V } from "../../../../utils/form-design-util.js";
|
|
4
|
+
import v from "../common/verification.vue.js";
|
|
5
|
+
import _ from "../../common/common-attr-size.vue.js";
|
|
6
6
|
import y from "../common/pre-suffix.vue.js";
|
|
7
7
|
import x from "../common/bar-code-rule.vue.js";
|
|
8
8
|
import h from "../../common/common-variable-bind.vue.js";
|
|
@@ -14,10 +14,10 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, z = { style: { padding: "8p
|
|
|
14
14
|
} }, pageDesign: { type: Object, default: () => {
|
|
15
15
|
} } }, emits: ["changeAssembly"], setup(e2, { emit: T2 }) {
|
|
16
16
|
const L = e2, W = l(L.configure.name), O = T2;
|
|
17
|
-
L.configure.props.base || (L.configure.props.base = { prop: "" }), L.configure.props.preSuffix || (L.configure.props.preSuffix = {}), L.configure.props.prefix || (L.configure.props.prefix = {}), L.configure.props.scan || (L.configure.props.scan = {});
|
|
17
|
+
L.configure.props.base || (L.configure.props.base = { prop: "" }), L.configure.props.preSuffix || (L.configure.props.preSuffix = {}), L.configure.props.prefix || (L.configure.props.prefix = {}), L.configure.props.scan || (L.configure.props.scan = {}), void 0 === L.configure.props.base.trimable && (L.configure.props.base.trimable = true);
|
|
18
18
|
const C = l(false);
|
|
19
19
|
function I(e3) {
|
|
20
|
-
|
|
20
|
+
V(L.configure, e3, O);
|
|
21
21
|
}
|
|
22
22
|
L.configure.isTable && (C.value = true);
|
|
23
23
|
const N = l(["base"]), q = l(false);
|
|
@@ -33,9 +33,9 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, z = { style: { padding: "8p
|
|
|
33
33
|
function B(e3) {
|
|
34
34
|
L.configure.props.base.defaultValue = e3;
|
|
35
35
|
}
|
|
36
|
-
return (l2,
|
|
36
|
+
return (l2, V2) => {
|
|
37
37
|
const T3 = a("el-option"), L2 = a("el-select"), O2 = a("el-form-item"), E = a("el-input"), F = a("el-radio"), G = a("el-radio-group"), H = a("el-input-number"), J = a("el-switch"), K = a("el-collapse-item"), M = a("el-button"), Q = a("el-collapse"), X = a("el-form");
|
|
38
|
-
return
|
|
38
|
+
return u(), o(X, { "label-width": "80px", size: "small" }, { default: t(() => [i(Q, { modelValue: N.value, "onUpdate:modelValue": V2[15] || (V2[15] = (e3) => N.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [i(K, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [n("div", w, [i(O2, { label: "组件类型", class: "amb-design-attr-item" }, { default: t(() => [i(L2, { modelValue: W.value, "onUpdate:modelValue": V2[0] || (V2[0] = (e3) => W.value = e3), onChange: I, placeholder: "请选择" }, { default: t(() => [(u(true), p(d, null, f(m(b)(), (e3) => (u(), o(T3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(O2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: t(() => [i(E, { modelValue: e2.configure.uuid, "onUpdate:modelValue": V2[1] || (V2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), C.value ? r("", true) : (u(), o(O2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(h, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": R }, null, 8, ["modelValue"]))]), _: 1 })), i(O2, { label: "默认值", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(h, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": B }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), C.value ? r("", true) : (u(), o(O2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), C.value ? r("", true) : (u(), o(O2, { key: 2, label: "标题显示", class: "amb-design-attr-item" }, { default: t(() => [i(G, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": V2[2] || (V2[2] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: t(() => [i(F, { value: true }, { default: t(() => V2[16] || (V2[16] = [c("显示")])), _: 1 }), i(F, { value: false }, { default: t(() => V2[17] || (V2[17] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), s(i(O2, { label: "标题", class: "amb-design-attr-item" }, { default: t(() => [i(j, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": V2[3] || (V2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), s(i(O2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: t(() => [i(H, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": V2[4] || (V2[4] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), s(i(O2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: t(() => [i(G, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": V2[5] || (V2[5] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: t(() => [i(F, { value: "block" }, { default: t(() => V2[18] || (V2[18] = [c("换行")])), _: 1 }), i(F, { value: "inline" }, { default: t(() => V2[19] || (V2[19] = [c("不换行")])), _: 1 }), i(F, { value: "omit" }, { default: t(() => V2[20] || (V2[20] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(O2, { label: "输入提示", class: "amb-design-attr-item" }, { default: t(() => [i(j, { modelValue: e2.configure.props.base.placeholder, "onUpdate:modelValue": V2[6] || (V2[6] = (l3) => e2.configure.props.base.placeholder = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(O2, { label: "清除按钮", class: "amb-design-attr-item" }, { default: t(() => [i(G, { modelValue: e2.configure.props.base.clearable, "onUpdate:modelValue": V2[7] || (V2[7] = (l3) => e2.configure.props.base.clearable = l3), class: "ml-4" }, { default: t(() => [i(F, { value: true }, { default: t(() => V2[21] || (V2[21] = [c("显示")])), _: 1 }), i(F, { value: false }, { default: t(() => V2[22] || (V2[22] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(O2, { label: "显示字数", class: "amb-design-attr-item" }, { default: t(() => [i(J, { modelValue: e2.configure.props.base.showInputNum, "onUpdate:modelValue": V2[8] || (V2[8] = (l3) => e2.configure.props.base.showInputNum = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(O2, { label: "尺寸", class: "amb-design-attr-item" }, { default: t(() => [i(G, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": V2[9] || (V2[9] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: t(() => [i(F, { value: "large" }, { default: t(() => V2[23] || (V2[23] = [c("大")])), _: 1 }), i(F, { value: "default" }, { default: t(() => V2[24] || (V2[24] = [c("中")])), _: 1 }), i(F, { value: "small" }, { default: t(() => V2[25] || (V2[25] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(O2, { label: "状态", class: "amb-design-attr-item" }, { default: t(() => [i(G, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": V2[10] || (V2[10] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: t(() => [i(F, { value: "default" }, { default: t(() => V2[26] || (V2[26] = [c("普通")])), _: 1 }), i(F, { value: "disabled" }, { default: t(() => V2[27] || (V2[27] = [c("禁用")])), _: 1 }), i(F, { value: "readonly" }, { default: t(() => V2[28] || (V2[28] = [c("只读")])), _: 1 }), i(F, { value: "hidden" }, { default: t(() => V2[29] || (V2[29] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(O2, { label: "清空前后空格", class: "amb-design-attr-item" }, { default: t(() => [i(J, { modelValue: e2.configure.props.base.trimable, "onUpdate:modelValue": V2[11] || (V2[11] = (l3) => e2.configure.props.base.trimable = l3) }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(K, { title: "条码扫描", name: "scan", class: "amb-design-attr-group-header" }, { default: t(() => [n("div", z, [i(O2, { label: "是否开启", class: "amb-design-attr-item" }, { default: t(() => [i(G, { modelValue: e2.configure.props.scan.enable, "onUpdate:modelValue": V2[12] || (V2[12] = (l3) => e2.configure.props.scan.enable = l3), class: "ml-4" }, { default: t(() => [i(F, { value: true }, { default: t(() => V2[30] || (V2[30] = [c("是")])), _: 1 }), i(F, { value: false }, { default: t(() => V2[31] || (V2[31] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(O2, { label: "自动打开扫描", class: "amb-design-attr-item" }, { default: t(() => [i(G, { modelValue: e2.configure.props.scan.autoOpen, "onUpdate:modelValue": V2[13] || (V2[13] = (l3) => e2.configure.props.scan.autoOpen = l3), class: "ml-4" }, { default: t(() => [i(F, { value: true }, { default: t(() => V2[32] || (V2[32] = [c("是")])), _: 1 }), i(F, { value: false }, { default: t(() => V2[33] || (V2[33] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(O2, { label: "解析规则", class: "amb-design-attr-item" }, { default: t(() => [i(M, { type: "primary", onClick: V2[14] || (V2[14] = (e3) => q.value = true) }, { default: t(() => V2[34] || (V2[34] = [c("添加")])), _: 1 })]), _: 1 })])]), _: 1 }), s(i(S, { configure: e2.configure }, null, 8, ["configure"]), [[g, e2.configure.props.base.tittleShow]]), (u(), o(y, { key: e2.configure.uuid, preSuffix: e2.configure.props.preSuffix }, null, 8, ["preSuffix"])), s(i(K, { title: "后缀图标跳转配置", name: "linkPage", class: "amb-design-attr-group-header" }, { default: t(() => [n("div", D, [i(k, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"])])]), _: 1 }, 512), [[g, e2.configure.props.preSuffix && e2.configure.props.preSuffix.sufIconType]]), (u(), o(v, { key: e2.configure.uuid, pageDesign: e2.pageDesign, verification: e2.configure.props.verification }, null, 8, ["pageDesign", "verification"])), C.value ? r("", true) : (u(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"])), q.value ? (u(), o(x, { key: 1, ruleList: e2.configure.props.scan.ruleList, onRemove: P, onClose: A }, null, 8, ["ruleList"])) : r("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
39
39
|
};
|
|
40
40
|
} });
|
|
41
41
|
export {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as e, ref as u, watch as
|
|
1
|
+
import { defineComponent as e, ref as u, watch as t, resolveComponent as l, 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 t(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),
|
|
10
|
+
}, { immediate: true }), t(I2.configure.props, () => {
|
|
11
|
+
m(I2.configure, _, w), 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 : {}, t2 = e3.dataOrigin ? e3.dataOrigin : {}, l2 = {};
|
|
14
|
+
u2.labelText && (l2.labelText = u2.labelText), u2.whetherTittle && (l2.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) && (l2.preIconType = a2.preIconType, l2.preIconValue = a2.preIconValue, l2.preText = a2.preText, l2.sufIconType = a2.sufIconType, l2.sufIconValue = a2.sufIconValue, l2.sufText = a2.sufText, l2.iconPosition = a2.position);
|
|
17
|
+
const o2 = t2.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 = t2.decimalDigit, _.value.thousandsSeparator = t2.thousandsSeparator, _.value.symbol = t2.symbol, _.value.dateFormat = t2.dateFormat, _.value.timeFormat = t2.timeFormat, _.value.formatFunc = t2.formatFunc), Object.assign(_.value, l2);
|
|
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 t2 = l("el-form-item");
|
|
23
|
+
return o(), a(t2, { 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 g } from "vue";
|
|
2
|
+
import { caculateDetailComponentStyle as v, 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({}), j = l({});
|
|
9
|
+
function B() {
|
|
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
|
+
v(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, B(), 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 T = (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,18 +35,17 @@ const y = { style: { height: "100%", width: "100%" } }, b = e({ __name: "richtex
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
let
|
|
38
|
+
let O;
|
|
39
39
|
return i(() => {
|
|
40
|
-
k.value = new h(x.value, w.value), k.value.getModule("toolbar").addHandler("image",
|
|
41
|
-
|
|
42
|
-
k.value.root.innerHTML;
|
|
40
|
+
k.value = new h(x.value, w.value), k.value.getModule("toolbar").addHandler("image", T), k.value.on("text-change", function(e3, l2, t2) {
|
|
41
|
+
O && clearTimeout(O), O = setTimeout(function() {
|
|
43
42
|
}, 1e3);
|
|
44
|
-
}),
|
|
43
|
+
}), B();
|
|
45
44
|
}), u(() => {
|
|
46
|
-
|
|
45
|
+
O && clearTimeout(O);
|
|
47
46
|
}), (e3, l2) => {
|
|
48
47
|
const t2 = a("el-form-item");
|
|
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" }) },
|
|
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" }) }, g(E.value.title), 5)) : f("", true)]), default: d(() => [s("div", y, [s("div", { ref_key: "quillEditorRef", ref: x, style: o({ ...j.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"]);
|
|
50
49
|
};
|
|
51
50
|
} });
|
|
52
51
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./object-design.vue3.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = o(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = o(e, [["__scopeId", "data-v-06007c80"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -5,7 +5,7 @@ import { getDesignComponentByName as C } from "../../utils/assemblys-config.js";
|
|
|
5
5
|
import { caculateCommonStyle as W } from "../../utils/container-design-util.js";
|
|
6
6
|
import { PageDimensions as k } from "../../utils/interfaces/page-design-types.js";
|
|
7
7
|
import { batchUpdatePermissions as O, batchRemovePermissions as S } from "../../utils/page-permission-util.js";
|
|
8
|
-
import { watchValidate as P, getRefrencePropMap as
|
|
8
|
+
import { watchValidate as P, getRefrencePropMap as M, removePropFromRefrencePropMap as B } from "../../utils/form-design-util.js";
|
|
9
9
|
import { usePageContextStore as T } from "../../../../stores/page-store.js";
|
|
10
10
|
import { getListCode as w } from "super-page-runtime";
|
|
11
11
|
import { getFormPropName as U } from "../../utils/page-helper-util.js";
|
|
@@ -18,7 +18,7 @@ const I = { class: "amb-widget-item-tool" }, N = e({ __name: "object-design", pr
|
|
|
18
18
|
Object.assign(q.configure, i2), delete q.pageDesign.tableRuntimes[q.configure.uuid];
|
|
19
19
|
}
|
|
20
20
|
q.indexObj && q.indexObj.index++, null == q.configure.props && (q.configure.props = {}), null == q.configure.style && (q.configure.style = {});
|
|
21
|
-
|
|
21
|
+
let z = R.getModelField(U((_b = (_a = q.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
|
|
22
22
|
if (q.pageDesign && q.configure && "table" == q.configure.name) {
|
|
23
23
|
if (q.configure.uuid) {
|
|
24
24
|
q.pageDesign.tableUuids || (q.pageDesign.tableUuids = []);
|
|
@@ -68,10 +68,11 @@ const I = { class: "amb-widget-item-tool" }, N = e({ __name: "object-design", pr
|
|
|
68
68
|
}), q.configure.props && q.configure.props.verification && (q.configure.props.base && q.configure.props.base.title && n(() => q.configure.props.base.title, (e3) => {
|
|
69
69
|
P(q.configure, q.configure.props.verification, z);
|
|
70
70
|
}), q.configure.props.base && q.configure.props.base.prop && (n(() => q.configure.props.base.prop, (e3, i2) => {
|
|
71
|
-
|
|
71
|
+
var _a2, _b2;
|
|
72
|
+
z || (z = R.getModelField(U((_b2 = (_a2 = q.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.prop))), P(q.configure, q.configure.props.verification, z), q.pageDesign.runtime || (q.pageDesign.runtime = {}), q.pageDesign.runtime.refercePropMap || (q.pageDesign.runtime.refercePropMap = {}), M(e3, i2, q.pageDesign.runtime.refercePropMap);
|
|
72
73
|
}), i(() => {
|
|
73
74
|
var _a2, _b2;
|
|
74
|
-
|
|
75
|
+
B(q.configure.props.base.prop, (_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
|
|
75
76
|
})), n(q.configure.props.verification, (e3, i2) => {
|
|
76
77
|
P(q.configure, e3, z);
|
|
77
78
|
})), q.pageDesign.props && n(() => q.pageDesign.props.activeWorkflow, (e3, i2) => {
|
|
@@ -88,7 +89,7 @@ const I = { class: "amb-widget-item-tool" }, N = e({ __name: "object-design", pr
|
|
|
88
89
|
}
|
|
89
90
|
if (q.configure.props && q.configure.props && (n(q.configure.props.size, (e3) => {
|
|
90
91
|
Q();
|
|
91
|
-
}), n(q.configure.props.position, (e3) => {
|
|
92
|
+
}), n(() => q.configure.props.position, (e3) => {
|
|
92
93
|
Q();
|
|
93
94
|
}, { immediate: true })), q.configure.style && q.configure.style && n(q.configure.style, () => {
|
|
94
95
|
Q();
|
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 ? (
|
|
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) => {
|
|
27
27
|
q.value = e5, b({ showClose: true, message: "保存成功", type: "success" });
|
|
28
|
-
})
|
|
28
|
+
}) : (q.value.systemCode = w.systemCode, 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" });
|
|
@@ -25,7 +25,7 @@ const I = { style: { padding: "8px 0px 0px 0px" } }, N = { class: "amb-design-at
|
|
|
25
25
|
e3 && !R2.configure.props.formNoRuleCode && (R2.configure.props.formNoRuleCode = e3), F(), S.value = false;
|
|
26
26
|
}
|
|
27
27
|
function E(e3) {
|
|
28
|
-
e3.target.value
|
|
28
|
+
e3.target.value = e3.target.value.trim();
|
|
29
29
|
}
|
|
30
30
|
function F() {
|
|
31
31
|
let e3 = window.$vueApp.config.globalProperties.baseAPI + "/mms/systems/getByCode/" + R2.configure.systemCode;
|
package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js
CHANGED
|
@@ -19,7 +19,7 @@ const a = ["id"], g = e({ __name: "pictureflow-design", props: { configure: Obje
|
|
|
19
19
|
}, { immediate: true });
|
|
20
20
|
const v = t({ nodes: [{ id: "1", type: "rect", x: 0, y: 70, text: "经办人填写" }, { id: "2", type: "rect", x: 0, y: 70, text: "品质主管审核" }, { id: "3", type: "rect", x: 0, y: 70, text: "品质总监确认" }], edges: [{ sourceNodeId: "1", targetNodeId: "2", type: "polyline" }, { sourceNodeId: "2", targetNodeId: "3", type: "polyline" }] }), m = t(null), y = new ResizeObserver((e3) => {
|
|
21
21
|
var t2;
|
|
22
|
-
m.value && (v.value.nodes[0].x = m.value.offsetWidth / 3 - 116, v.value.nodes[1].x = m.value.offsetWidth / 3 + 134, v.value.nodes[2].x = m.value.offsetWidth / 3 + 384,
|
|
22
|
+
m.value && (v.value.nodes[0].x = m.value.offsetWidth / 3 - 116, v.value.nodes[1].x = m.value.offsetWidth / 3 + 134, v.value.nodes[2].x = m.value.offsetWidth / 3 + 384, t2 = g2.configure.uuid, new s({ container: document.getElementById(t2), grid: true, isSilentMode: true, stopZoomGraph: true, stopScrollGraph: true, stopMoveGraph: true }).render(v.value));
|
|
23
23
|
});
|
|
24
24
|
return i(() => {
|
|
25
25
|
y.observe(m.value);
|