super-page-designer 2.2.73 → 2.2.77-sit3
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 +6 -6
- package/dist/es/components/design/utils/common-util.js +18 -7
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +33 -33
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +38 -34
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +20 -19
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +9 -8
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +39 -36
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +24 -23
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-i18n-key-input.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +53 -53
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +59 -59
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +43 -38
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-base.vue.js +31 -31
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +30 -30
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/component/return-set-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +14 -11
- 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 +83 -80
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +29 -9
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.d.ts +4 -0
- package/dist/es/components/design/views/assemblys/object-design.vue.js +5 -138
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +140 -0
- 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/component/weight-field-input.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +9 -20
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue2.js +22 -18
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +36 -36
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +64 -64
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +10 -9
- package/dist/es/components/design/views/design/view/attr-container.vue.js +24 -24
- package/dist/es/components/design/views/design/view/components/el-aside-expand-component.vue.js +24 -0
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +2 -2
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue2.js +4 -4
- package/dist/es/components/design/views/design/view/components/i18n-setting.vue.js +4 -4
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +10 -9
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js +8 -8
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +2 -2
- package/dist/es/components/design/views/design/view/view-design.vue.js +27 -26
- package/dist/es/style.css +1834 -737
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/object-design.vue2.js +0 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as
|
|
2
|
-
import { getFormComponentOptions as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as i, withCtx as t, createVNode as u, createElementVNode as n, createElementBlock as d, Fragment as s, renderList as p, unref as r, createTextVNode as c } from "vue";
|
|
2
|
+
import { getFormComponentOptions as m } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import f from "../../common/common-function-code.vue.js";
|
|
4
|
-
import "@element-plus/icons-vue";
|
|
5
|
-
const
|
|
6
|
-
const _2 = e2,
|
|
4
|
+
import { Close as b, Check as g } from "@element-plus/icons-vue";
|
|
5
|
+
const v = { style: { padding: "8px 0px 0px 0px" } }, V = { style: { padding: "8px 0px 0px 0px" } }, _ = e({ __name: "workflowbutton-attr-base", props: { configure: Object, default: () => ({ props: {} }) }, setup(e2) {
|
|
6
|
+
const _2 = e2, x = l([]);
|
|
7
7
|
return _2.configure.props.base.showActivityName || false === _2.configure.props.base.showActivityName || (_2.configure.props.base.showActivityName = true), (l2, _3) => {
|
|
8
|
-
const
|
|
9
|
-
return
|
|
8
|
+
const h = a("el-option"), y = a("el-select"), U = a("el-form-item"), w = a("el-input"), k = a("el-checkbox"), j = a("el-col"), z = a("el-row"), A = a("el-collapse-item"), N = a("el-switch"), O = a("el-radio"), q = a("el-radio-group"), B = a("el-input-number"), C = a("el-collapse"), D = a("el-form");
|
|
9
|
+
return i(), o(D, { "label-width": "80px", size: "small" }, { default: t(() => [u(C, { modelValue: x.value, "onUpdate:modelValue": _3[7] || (_3[7] = (e3) => x.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [u(A, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [n("div", v, [u(U, { label: "组件类型", class: "amb-design-attr-item" }, { default: t(() => [u(y, { modelValue: e2.configure.name, "onUpdate:modelValue": _3[0] || (_3[0] = (l3) => e2.configure.name = l3), placeholder: "请选择" }, { default: t(() => [(i(true), d(s, null, p(r(m)(), (e3) => (i(), o(h, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(U, { label: "唯一编码", class: "amb-design-attr-item" }, { default: t(() => [u(w, { modelValue: e2.configure.uuid, "onUpdate:modelValue": _3[1] || (_3[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), u(U, { label: "绑定权限", class: "amb-design-attr-item" }, { default: t(() => [u(f, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), u(U, { label: "按钮", class: "amb-design-attr-item" }, { default: t(() => [u(z, null, { default: t(() => [(i(true), d(s, null, p(e2.configure.items, (e3, l3) => (i(), o(j, { key: e3, span: 12 }, { default: t(() => [u(k, { modelValue: e3.check, "onUpdate:modelValue": (l4) => e3.check = l4, label: e3.label, value: true, disabled: e3.disabled }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }), u(A, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: t(() => [n("div", V, [u(U, { label: "文字按钮", class: "amb-design-attr-item" }, { default: t(() => [u(N, { modelValue: e2.configure.props.base.text, "onUpdate:modelValue": _3[2] || (_3[2] = (l3) => e2.configure.props.base.text = l3), disabled: !!e2.configure.props.base.plain || !!e2.configure.props.base.plain, "inline-prompt": "", "active-icon": r(g), "inactive-icon": r(b) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), u(U, { label: "朴素按钮", class: "amb-design-attr-item" }, { default: t(() => [u(N, { modelValue: e2.configure.props.base.plain, "onUpdate:modelValue": _3[3] || (_3[3] = (l3) => e2.configure.props.base.plain = l3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": r(g), "inactive-icon": r(b) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), u(U, { label: "圆角按钮", class: "amb-design-attr-item" }, { default: t(() => [u(N, { modelValue: e2.configure.props.base.round, "onUpdate:modelValue": _3[4] || (_3[4] = (l3) => e2.configure.props.base.round = l3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": r(g), "inactive-icon": r(b) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), u(U, { label: "尺寸", class: "amb-design-attr-item" }, { default: t(() => [u(q, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": _3[5] || (_3[5] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: t(() => [u(O, { value: "large" }, { default: t(() => _3[8] || (_3[8] = [c("大")])), _: 1 }), u(O, { value: "default" }, { default: t(() => _3[9] || (_3[9] = [c("中")])), _: 1 }), u(O, { value: "small" }, { default: t(() => _3[10] || (_3[10] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(U, { label: "内容间距" }, { default: t(() => [u(B, { modelValue: e2.configure.props.gap, "onUpdate:modelValue": _3[6] || (_3[6] = (l3) => e2.configure.props.gap = l3), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
10
10
|
};
|
|
11
11
|
} });
|
|
12
12
|
export {
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import { defineComponent as e, ref as i, watch as s, createElementBlock as
|
|
2
|
-
import
|
|
3
|
-
import { caculateDetailComponentStyle as
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { defineComponent as e, ref as o, computed as i, watch as s, createElementBlock as t, openBlock as n, normalizeClass as r, normalizeStyle as u, Fragment as c, renderList as g, withDirectives as p, createBlock as l, vShow as a } from "vue";
|
|
2
|
+
import f from "../../object-design.vue.js";
|
|
3
|
+
import { caculateDetailComponentStyle as d } from "../../../../utils/form-design-util.js";
|
|
4
|
+
const m = e({ __name: "workflowbutton-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget"], setup(e2, { emit: m2 }) {
|
|
5
|
+
const b = e2;
|
|
6
|
+
b.configure.items || (b.configure.items = []);
|
|
7
|
+
const v = m2, j = o({}), W = o(""), w = i(() => {
|
|
8
|
+
var _a;
|
|
9
|
+
const { gap: e3 } = ((_a = b.configure) == null ? void 0 : _a.props) ?? {};
|
|
10
|
+
return { ...e3 ? { gap: `${e3}px` } : {}, ...j.value ?? {} };
|
|
11
|
+
});
|
|
12
|
+
function x(e3, o2) {
|
|
13
|
+
v("onSelectWidget", e3, o2);
|
|
10
14
|
}
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
}, { immediate: true }), s(
|
|
15
|
+
return s(b.configure.style, () => {
|
|
16
|
+
d(b.configure, j, W), j.value["background-color"] = "#f5f6f8", b.configure.runtime.style = j.value, b.configure.runtime.class = W.value;
|
|
17
|
+
}, { immediate: true }), s(b.configure.props, () => {
|
|
14
18
|
!function() {
|
|
15
|
-
let e3 =
|
|
16
|
-
|
|
19
|
+
let e3 = b.configure.props ? b.configure.props : {}, o2 = e3.base ? e3.base : {};
|
|
20
|
+
b.configure.items.forEach((e4) => {
|
|
17
21
|
e4.props || (e4.props = {}), e4.props.base || (e4.props.base = {});
|
|
18
|
-
const
|
|
19
|
-
Object.assign(
|
|
22
|
+
const i2 = e4.props.base;
|
|
23
|
+
Object.assign(i2, o2);
|
|
20
24
|
});
|
|
21
25
|
}();
|
|
22
|
-
}, { immediate: true }), (e3,
|
|
26
|
+
}, { immediate: true }), (e3, o2) => (n(), t("div", { style: u(j.value), class: r([w.value, "el-button-group amb-workflowbutton-design-view"]) }, [(n(true), t(c, null, g(e3.configure.items, (o3, i2) => p((n(), l(f, { key: o3, pageDesign: e3.pageDesign, configure: o3, showSelectedClass: false, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: x }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"])), [[a, o3.check]])), 128))], 6));
|
|
23
27
|
} });
|
|
24
28
|
export {
|
|
25
|
-
|
|
29
|
+
m as default
|
|
26
30
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, onMounted as a, onUnmounted as n, resolveComponent as o, createElementBlock as i, openBlock as s,
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, onMounted as a, onUnmounted as n, resolveComponent as o, createElementBlock as i, openBlock as s, createElementVNode as u, createVNode as r, withCtx as m, unref as p, isRef as d, normalizeStyle as c, toDisplayString as v, withDirectives as f, withModifiers as g, createTextVNode as h, vShow as b } from "vue";
|
|
2
2
|
import { Search as w } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElMessageBox as x } from "element-plus";
|
|
4
|
-
import { getDesignConfByName as
|
|
5
|
-
import
|
|
4
|
+
import { getDesignConfByName as C } from "../../../utils/assemblys-config.js";
|
|
5
|
+
import y from "../view/assemblys-container-explore.vue.js";
|
|
6
6
|
import { deepCopy as _ } from "../../../utils/common-util.js";
|
|
7
7
|
import k from "../../../utils/eventBus.js";
|
|
8
8
|
import { usePageContextStore as E } from "../../../../../stores/page-store.js";
|
|
9
|
-
const V = { style: { "padding-top": "10px" } },
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
const
|
|
9
|
+
const V = { class: "amb-design-assembly-content", ref: "ambPageEventList" }, j = { style: { "padding-top": "10px" } }, $ = ["title"], L = ["title"], T = { key: 0 }, U = { key: 1 }, z = ["title"], S = ["title"], B = ["title"], I = e({ __name: "page-event-container", props: { configure: {}, configureObj: {}, editEvent: {} }, emits: ["add-event", "change-event"], setup(e2, { expose: I2, emit: N }) {
|
|
10
|
+
const P = E(), W = l(null), D = l(), F = l(false);
|
|
11
|
+
let O = l(["searchCollapse", "addCollapse", "unUseEventCollapse"]), R = l(null), H = l("");
|
|
12
|
+
const M = t(() => {
|
|
13
13
|
let e3 = "";
|
|
14
|
-
const l2 =
|
|
14
|
+
const l2 = R.value;
|
|
15
15
|
if ("page" === (l2 && "page" != l2.name ? l2.name : "page")) e3 = "页面";
|
|
16
16
|
else if (e3 = l2 && l2.label ? l2.label : "", l2 && l2.props && l2.props.base) {
|
|
17
17
|
const t2 = l2.props.base.title;
|
|
@@ -19,22 +19,22 @@ const V = { style: { "padding-top": "10px" } }, j = ["title"], $ = ["title"], L
|
|
|
19
19
|
}
|
|
20
20
|
return e3;
|
|
21
21
|
});
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
let e3 =
|
|
22
|
+
let q = t(() => W.value && W.value.customEvents ? W.value.customEvents.filter((e3) => "customFunc" == e3.name) : []);
|
|
23
|
+
const A = t(() => {
|
|
24
|
+
let e3 = R.value ? R.value.name : null;
|
|
25
25
|
e3 = e3 || "page";
|
|
26
|
-
const l2 =
|
|
26
|
+
const l2 = R.value ? R.value.uuid : null;
|
|
27
27
|
let t2 = [];
|
|
28
28
|
const a2 = [];
|
|
29
|
-
if (
|
|
29
|
+
if (W.value && W.value.customEvents) for (let n3 of W.value.customEvents) "customFunc" != n3.name && ("page" !== e3 && n3.uuid !== l2 || (t2.push(n3), a2.includes(n3.name) || a2.push(n3.name)));
|
|
30
30
|
let n2 = null;
|
|
31
|
-
if (n2 = "page" == e3 ?
|
|
31
|
+
if (n2 = "page" == e3 ? W.value ? W.value.events : null : R.value ? R.value.events : null, n2) {
|
|
32
32
|
for (let l4 of n2) {
|
|
33
|
-
l4.componentUuid || (l4.componentUuid =
|
|
33
|
+
l4.componentUuid || (l4.componentUuid = R.value && R.value.uuid ? R.value.uuid : "page"), l4.componentLabel || (l4.componentLabel = "page" == e3 ? "页面" : R.value ? R.value.label : "");
|
|
34
34
|
let n3 = "";
|
|
35
|
-
|
|
35
|
+
R.value && R.value.props && R.value.props.base && (n3 = R.value.props.base.title), l4.title = n3, a2.includes(l4.name) || (t2.push(l4), a2.push(l4.name));
|
|
36
36
|
}
|
|
37
|
-
let l3 =
|
|
37
|
+
let l3 = C(e3);
|
|
38
38
|
const o2 = [];
|
|
39
39
|
if (l3 && l3.events && l3.events.length > 0) {
|
|
40
40
|
for (let e4 of l3.events) if (o2.push(e4.name), !a2.includes(e4.name)) {
|
|
@@ -49,46 +49,46 @@ const V = { style: { "padding-top": "10px" } }, j = ["title"], $ = ["title"], L
|
|
|
49
49
|
}
|
|
50
50
|
} else t2 = [];
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
52
|
+
if (H.value) {
|
|
53
53
|
const e4 = [];
|
|
54
|
-
for (let l3 of t2) (l3.name && l3.name.includes(
|
|
54
|
+
for (let l3 of t2) (l3.name && l3.name.includes(H.value) || l3.label && l3.label.includes(H.value)) && e4.push(l3);
|
|
55
55
|
return e4;
|
|
56
56
|
}
|
|
57
57
|
return t2;
|
|
58
|
-
}),
|
|
59
|
-
function
|
|
60
|
-
|
|
58
|
+
}), G = l([]);
|
|
59
|
+
function J(e3) {
|
|
60
|
+
W.value = e3, G.value = e3 && e3.items ? e3.items : [], Z(null, null);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function K(e3) {
|
|
63
63
|
x.confirm("确定要清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
64
64
|
k.$emit("clearEvent", e3);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Q(e3) {
|
|
68
68
|
k.$emit("editEvent", e3);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function X(e3) {
|
|
71
71
|
k.$emit("editEvent", e3);
|
|
72
72
|
}
|
|
73
|
-
let
|
|
74
|
-
function
|
|
75
|
-
|
|
73
|
+
let Y;
|
|
74
|
+
function Z(e3, l2) {
|
|
75
|
+
R.value = l2, F.value = false;
|
|
76
76
|
}
|
|
77
77
|
return a(() => {
|
|
78
|
-
|
|
78
|
+
J(P.pageContext), D.value = window.innerHeight - 220;
|
|
79
79
|
}), k.$on("changePageDesign", () => {
|
|
80
|
-
|
|
80
|
+
J(P.pageContext);
|
|
81
81
|
}), k.$on("editComponentEvent", (e3) => {
|
|
82
|
-
|
|
82
|
+
Y && clearTimeout(Y), R.value = e3.configureObj, Y = setTimeout(function() {
|
|
83
83
|
k.$emit("editEvent", e3.event);
|
|
84
84
|
}, 100);
|
|
85
85
|
}), n(() => {
|
|
86
|
-
|
|
87
|
-
}),
|
|
88
|
-
const t2 = o("el-button"), a2 = o("el-input"), n2 = o("el-popover"), x2 = o("el-table-column"),
|
|
89
|
-
return s(), i("div",
|
|
86
|
+
Y && clearTimeout(Y), k.$off("changePageDesign"), k.$off("editComponentEvent");
|
|
87
|
+
}), I2({}), (e3, l2) => {
|
|
88
|
+
const t2 = o("el-button"), a2 = o("el-input"), n2 = o("el-popover"), x2 = o("el-table-column"), C2 = o("el-table"), _2 = o("el-collapse-item"), k2 = o("el-collapse");
|
|
89
|
+
return s(), i("div", V, [u("div", null, [u("div", j, [r(n2, { placement: "right", width: 300, visible: F.value, trigger: "manual" }, { reference: m(() => [r(a2, { size: "small", modelValue: M.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => M.value = e4), placeholder: "请选择组件", readonly: "", clearable: "", onClick: l2[2] || (l2[2] = (e4) => F.value = !F.value) }, { append: m(() => [r(t2, { type: "info", icon: p(w), circle: "", text: "", onClick: l2[0] || (l2[0] = (e4) => F.value = !F.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"])]), default: m(() => [r(y, { onSelectComponent: Z, treeMarginTop: "", headerSearchClass: "custom", designItems: G.value, selectWidget: e3.selectWidget }, null, 8, ["designItems", "selectWidget"])]), _: 1 }, 8, ["visible"])])]), u("div", null, [r(k2, { modelValue: p(O), "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => d(O) ? O.value = e4 : O = e4), style: { "margin-top": "10px" } }, { default: m(() => [r(_2, { class: "amb-assembly-collapse-header", name: "searchCollapse", title: "事件列表" }, { default: m(() => [u("div", { style: c("max-height:" + D.value + "px") }, [r(a2, { modelValue: p(H), "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => d(H) ? H.value = e4 : H = e4), placeholder: "名称/别名...", clearable: "", class: "input-with-select", style: { "margin-top": "10px", "margin-bottom": "10px" }, "suffix-icon": p(w) }, null, 8, ["modelValue", "suffix-icon"]), r(C2, { size: "small", data: A.value, style: { width: "100%" }, "max-height": D.value, "highlight-current-row": "", onRowClick: X }, { default: m(() => [r(x2, { label: "名称", width: "90" }, { default: m((e4) => [u("span", { title: e4.row.name }, v(e4.row.name), 9, $)]), _: 1 }), r(x2, { label: "别名", width: "60" }, { default: m((e4) => [u("span", { title: e4.row.label }, v(e4.row.label), 9, L)]), _: 1 }), r(x2, { label: "组件", width: "120", align: "left" }, { default: m((e4) => [e4.row.title || e4.row.componentLabel ? (s(), i("span", T, v(e4.row.title ? e4.row.title + "(" + e4.row.componentLabel + ")" : e4.row.componentLabel), 1)) : (s(), i("span", U, v(p(R) ? p(R).label : "页面"), 1))]), _: 1 }), r(x2, { label: "备注" }, { default: m((e4) => [u("span", { title: e4.row.remark }, v(e4.row.remark), 9, z)]), _: 1 }), r(x2, { fixed: "right", label: "", width: "40", align: "center" }, { default: m((e4) => [f(r(t2, { disabled: false === e4.row.isEdit, link: "", type: "danger", size: "small", onClick: g((l3) => K(e4.row), ["stop"]) }, { default: m(() => l2[5] || (l2[5] = [h("清除")])), _: 2 }, 1032, ["disabled", "onClick"]), [[b, e4.row.isStandard && e4.row.eventName || !e4.row.isStandard && e4.row.jsContent]])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])], 4)]), _: 1 }), r(_2, { class: "amb-assembly-collapse-header", name: "addCollapse", title: "自定义方法" }, { default: m(() => [r(C2, { size: "small", data: p(q), "highlight-current-row": "", style: { width: "100%" }, "max-height": D.value, onRowClick: Q }, { default: m(() => [r(x2, { prop: "label", label: "方法名", width: "90" }, { default: m((e4) => [u("span", { title: e4.row.eventName }, v(e4.row.eventName), 9, S)]), _: 1 }), r(x2, { prop: "label", label: "描述" }, { default: m((e4) => [u("span", { title: e4.row.remark }, v(e4.row.remark), 9, B)]), _: 1 }), r(x2, { fixed: "right", label: "", width: "50", align: "center" }, { default: m((e4) => [r(t2, { disabled: e4.row.disable, link: "", type: "primary", size: "small", onClick: g((l3) => K(e4.row), ["stop"]) }, { default: m(() => l2[6] || (l2[6] = [h("清除")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])])], 512);
|
|
90
90
|
};
|
|
91
91
|
} });
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
I as default
|
|
94
94
|
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as m, withCtx as c, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, Fragment as g, renderList as b, createBlock as y } from "vue";
|
|
2
2
|
import { ElMessageBox as x, ElMessage as h } from "element-plus";
|
|
3
3
|
import C from "./config.vue2.js";
|
|
4
4
|
import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
|
|
5
|
-
import { findDesignItemByUuid as S, getUuidv4 as
|
|
6
|
-
import { usePageContextStore as
|
|
5
|
+
import { findDesignItemByUuid as S, getUuidv4 as V, deepCopy as k } from "../../../utils/common-util.js";
|
|
6
|
+
import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
|
|
7
7
|
import { undoRedo as T } from "../../../../../stores/event-undo-redo-store.js";
|
|
8
8
|
import U from "../../../utils/eventBus.js";
|
|
9
|
-
const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style: { "user-select": "none" } }, $ = { class: "amb-design-tool-item" }, j = { style: { "margin-left": "0px", display: "inline-block", width: "39px" } },
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
function
|
|
9
|
+
const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style: { "user-select": "none", "margin-bottom": "10px" } }, $ = { class: "amb-design-tool-item" }, j = { style: { "margin-left": "0px", display: "inline-block", width: "39px" } }, w = { class: "amb-design-tool-item", style: { "padding-right": "10px" } }, N = { style: { display: "flex", gap: "15px", padding: "0 20px" } }, B = { class: "codemirror", style: { "margin-left": "20px", "margin-top": "-10px" } }, J = e({ __name: "page-event-content", props: { eventForm: {}, configure: {}, customEvent: {}, handleType: {} }, emits: ["changeSelectEvent", "addEvent", "changeSelectStandardEvent"], setup(e2, { expose: J2, emit: A }) {
|
|
10
|
+
const L = e2, O = T(), P = _(), Z = t(null), I = t();
|
|
11
|
+
let q = t();
|
|
12
|
+
const R = E;
|
|
13
|
+
let H = L.customEvent;
|
|
14
|
+
const D = t({ jsContent: "" }), G = t({ jsContent: "" }), K = t(0), M = t(-1), Q = t();
|
|
15
|
+
function W() {
|
|
16
16
|
let e3 = false;
|
|
17
|
-
|
|
17
|
+
G.value && G.value.standardValues && G.value.standardValues.includes("true") && (e3 = true), G.value && (G.value.isStandard = e3);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const e3 =
|
|
19
|
+
function X() {
|
|
20
|
+
const e3 = D.value ? JSON.stringify(D.value) : null, t2 = G.value ? JSON.stringify(G.value) : null;
|
|
21
21
|
e3 && e3 !== t2 ? x.confirm("当前方法有修改,是否需要暂存?", "确认", { confirmButtonText: "确定", cancelButtonText: "忽略", type: "warning" }).then(() => {
|
|
22
|
-
false !==
|
|
22
|
+
false !== te() && Y();
|
|
23
23
|
}).catch((e4) => {
|
|
24
|
-
|
|
25
|
-
}) :
|
|
24
|
+
Y();
|
|
25
|
+
}) : Y();
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Y() {
|
|
28
28
|
const e3 = { name: "customFunc", isStandard: false, jsContent: "" };
|
|
29
|
-
e3.uuid =
|
|
29
|
+
e3.uuid = V(), ee(e3);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
e3 = e3 || {},
|
|
31
|
+
function ee(e3) {
|
|
32
|
+
e3 = e3 || {}, D.value = e3, G.value = k(e3), Z.value && Z.value.updateJsContent && Z.value.updateJsContent(G.value), O.clearSnapshot(), O.addSnapshot(G), K.value = 1, M.value = 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
if (!
|
|
36
|
-
const e3 =
|
|
34
|
+
function te() {
|
|
35
|
+
if (!G.value) return x.confirm("编辑对象不存在,不需要保存!", "提示", { confirmButtonText: "确定", showCancelButton: false, type: "error" }), false;
|
|
36
|
+
const e3 = P.pageContext;
|
|
37
37
|
if (!e3) return x.confirm("页面设计对象不存在,不可保存!", "提示", { confirmButtonText: "确定", showCancelButton: false, type: "error" }), false;
|
|
38
38
|
const t2 = function() {
|
|
39
|
-
const e4 =
|
|
39
|
+
const e4 = G.value;
|
|
40
40
|
if (!e4.isStandard && !e4.jsContent) return h({ message: "方法内容不能为空!", type: "error" }), false;
|
|
41
41
|
if ("customFunc" == e4.name) {
|
|
42
42
|
if (e4.eventName && (e4.eventName = e4.eventName.trim()), !e4.funcParam) return h({ message: "自定义方法参数名不能为空!", type: "error" }), false;
|
|
@@ -48,7 +48,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
48
48
|
if (n3) {
|
|
49
49
|
if (!/^([a-zA-Z_$][a-zA-Z0-9_$]*(?:,[a-zA-Z_$][a-zA-Z0-9_$]*)*)$/.test(n3)) return h({ message: "方法参数只能以字母、下划线或$开头,只能包含数字、字母或$!", type: "error" }), false;
|
|
50
50
|
}
|
|
51
|
-
const a3 =
|
|
51
|
+
const a3 = P.pageContext;
|
|
52
52
|
if (a3 && a3.customEvents) {
|
|
53
53
|
for (let n4 of a3.customEvents) if ("customFunc" == n4.name && n4.eventName == t3 && n4.uuid != e4.uuid) return h({ message: "存在相同的方法名!", type: "error" }), false;
|
|
54
54
|
}
|
|
@@ -56,7 +56,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
56
56
|
}();
|
|
57
57
|
if (false === t2) return false;
|
|
58
58
|
e3.customEvents || (e3.customEvents = []);
|
|
59
|
-
const n2 =
|
|
59
|
+
const n2 = G.value;
|
|
60
60
|
let a2 = null, l2 = -1;
|
|
61
61
|
for (let t3 = 0; t3 < e3.customEvents.length; t3++) {
|
|
62
62
|
const u2 = e3.customEvents[t3];
|
|
@@ -78,20 +78,20 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
78
78
|
e4 > -1 && (t3.events[e4] = a2);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
} else Object.assign(
|
|
82
|
-
|
|
81
|
+
} else Object.assign(D.value, n2), e3.customEvents.push(D.value);
|
|
82
|
+
D.value = n2, G.value = k(n2), h({ message: "暂存成功!", type: "success" });
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ne() {
|
|
85
85
|
x.confirm("确定要清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
86
86
|
!function() {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
G.value && ae(G.value);
|
|
88
|
+
Y();
|
|
89
89
|
}();
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
const t2 = e3, n2 =
|
|
94
|
-
if (e3.isStandard)
|
|
92
|
+
function ae(e3) {
|
|
93
|
+
const t2 = e3, n2 = P.pageContext;
|
|
94
|
+
if (e3.isStandard) le(e3), ue(t2, e3);
|
|
95
95
|
else if (n2 && n2.customEvents) for (let e4 = 0; e4 < n2.customEvents.length; e4++) {
|
|
96
96
|
let a2 = n2.customEvents[e4];
|
|
97
97
|
if ("customFunc" == t2.name) {
|
|
@@ -100,63 +100,63 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
} else if (a2.name == t2.name && t2.componentUuid == a2.componentUuid) {
|
|
103
|
-
|
|
103
|
+
le(a2), n2.customEvents.splice(e4, 1), ue(t2, a2);
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function le(e3) {
|
|
109
109
|
e3.eventName = null, e3.isStandard = false, e3.jsContent = "", e3.remark = "", e3.standardValues = [];
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const n2 =
|
|
111
|
+
function ue(e3, t2) {
|
|
112
|
+
const n2 = P.pageContext, a2 = S(n2, e3.componentUuid);
|
|
113
113
|
if (a2 && a2.events) {
|
|
114
114
|
const n3 = a2.events.findIndex((t3) => t3.name == e3.name && t3.componentUuid == e3.componentUuid);
|
|
115
115
|
n3 > -1 && (a2.events[n3] = t2);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
n(() => {
|
|
119
|
-
|
|
120
|
-
if (
|
|
121
|
-
const t2 =
|
|
122
|
-
"customFunc" == e3.name ? e3.uuid == t2.uuid &&
|
|
119
|
+
I.value = window.innerHeight, q.value = { overflow: "auto", height: I.value + "px" }, U.$on("clearEvent", (e3) => {
|
|
120
|
+
if (ae(e3), G.value) {
|
|
121
|
+
const t2 = G.value;
|
|
122
|
+
"customFunc" == e3.name ? e3.uuid == t2.uuid && Y() : e3.componentUuid == t2.componentUuid && e3.name == t2.name && Y();
|
|
123
123
|
}
|
|
124
124
|
}), U.$on("editEvent", (e3) => {
|
|
125
125
|
let t2 = false;
|
|
126
|
-
if (
|
|
126
|
+
if (G.value && ("customFunc" == e3.name ? G.value.uuid == e3.uuid && (t2 = true) : G.value.componentUuid == e3.componentUuid && e3.name == G.value.name && (t2 = true)), t2) return;
|
|
127
127
|
null == e3.jsContent && (e3.jsContent = ""), null == e3.isStandard && (e3.isStandard = false, e3.standardValues = []), e3.isStandard && !e3.standardValues && (e3.standardValues = ["true"]);
|
|
128
|
-
const n2 =
|
|
128
|
+
const n2 = D.value ? JSON.stringify(D.value) : null, a2 = G.value ? JSON.stringify(G.value) : null;
|
|
129
129
|
n2 && n2 !== a2 ? x.confirm("当前方法有修改,是否需要暂存?", "确认", { confirmButtonText: "确定", cancelButtonText: "忽略", type: "warning" }).then(() => {
|
|
130
|
-
false !==
|
|
130
|
+
false !== te() && ee(e3);
|
|
131
131
|
}).catch((t3) => {
|
|
132
|
-
|
|
133
|
-
}) :
|
|
132
|
+
ee(e3);
|
|
133
|
+
}) : ee(e3);
|
|
134
134
|
});
|
|
135
135
|
}), a(() => {
|
|
136
|
-
U.$off("clearEvent"), U.$off("editEvent"),
|
|
137
|
-
}),
|
|
138
|
-
let
|
|
139
|
-
function
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
U.$off("clearEvent"), U.$off("editEvent"), oe && clearTimeout(oe), se && clearTimeout(se), O.clearSnapshotTimeout();
|
|
137
|
+
}), Y();
|
|
138
|
+
let oe, se, ie = false;
|
|
139
|
+
function re() {
|
|
140
|
+
oe && clearTimeout(oe), ie = true, O.undo(G), K.value = O.getTotalLen(), M.value = O.getCurrentIndex(), Z.value && Z.value.updateJsContent && Z.value.updateJsContent(G.value), oe = setTimeout(() => {
|
|
141
|
+
ie = false;
|
|
142
142
|
}, 100);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
function me() {
|
|
145
|
+
se && clearTimeout(se), ie = true, O.record(G), K.value = O.getTotalLen(), M.value = O.getCurrentIndex(), Z.value && Z.value.updateJsContent && Z.value.updateJsContent(G.value), se = setTimeout(() => {
|
|
146
|
+
ie = false;
|
|
147
147
|
}, 100);
|
|
148
148
|
}
|
|
149
|
-
return l(() =>
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
return l(() => G, (e3) => {
|
|
150
|
+
ie || O.addSnapshot(G, function() {
|
|
151
|
+
K.value = O.getTotalLen(), M.value = O.getCurrentIndex();
|
|
152
152
|
});
|
|
153
|
-
}, { deep: true }),
|
|
154
|
-
|
|
153
|
+
}, { deep: true }), J2({ resize: function() {
|
|
154
|
+
Z.value && Z.value.resize && Z.value.resize();
|
|
155
155
|
} }), (e3, t2) => {
|
|
156
|
-
const n2 = u("Plus"), a2 = u("el-icon"), l2 = u("el-divider"), x2 = u("Check"), h2 = u("View"), E2 = u("el-text"), S2 = u("el-input"),
|
|
157
|
-
return s(), o("div", F, [i("div", z, [i("div", $, [i("label", { class: "amb-page-type", onClick:
|
|
156
|
+
const n2 = u("Plus"), a2 = u("el-icon"), l2 = u("el-divider"), x2 = u("Check"), h2 = u("View"), E2 = u("el-text"), S2 = u("el-input"), V2 = u("el-form-item"), k2 = u("el-checkbox"), _2 = u("el-checkbox-group"), T2 = u("el-option"), U2 = u("el-option-group"), J3 = u("el-select"), A2 = u("el-form");
|
|
157
|
+
return s(), o("div", F, [i("div", z, [i("div", $, [i("label", { class: "amb-page-type", onClick: X }, [r(a2, { size: 18 }, { default: c(() => [r(n2)]), _: 1 }), t2[5] || (t2[5] = i("label", null, "添加自定义方法", -1))]), r(l2, { direction: "vertical" }), m(i("label", j, null, 512), [[d, M.value < 1]]), m(i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: re }, t2[6] || (t2[6] = [i("span", { class: "iconfont icon-chexiaozuo", style: { "font-size": "20px" }, title: "撤销" }, null, -1)]), 512), [[d, M.value > 0]]), m(i("label", { class: "amb-page-type", onClick: me }, t2[7] || (t2[7] = [i("span", { class: "iconfont icon-chexiaoyou", style: { "font-size": "20px" }, title: "恢复" }, null, -1)]), 512), [[d, M.value > -1 && M.value + 1 < K.value]])]), m(i("div", w, [i("label", { class: "amb-page-type", onClick: t2[0] || (t2[0] = (e4) => te()) }, [r(a2, { size: 18 }, { default: c(() => [r(x2)]), _: 1 }), t2[8] || (t2[8] = i("label", null, "确定", -1))]), r(l2, { direction: "vertical" }), i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: ne }, [r(a2, { size: 18 }, { default: c(() => [r(h2)]), _: 1 }), t2[9] || (t2[9] = i("label", null, "清除", -1))])], 512), [[d, G.value.name]])]), r(A2, { class: "amb-design-board", style: { "padding-top": "20px" }, ref_key: "formRef", ref: Q, size: "small", model: v(H), "inline-message": "", "label-width": "80px" }, { default: c(() => [i("div", N, [r(V2, { label: "名称", "label-width": "auto", style: { "min-width": "280px" }, required: "customFunc" == G.value.name }, { default: c(() => [m(r(E2, { type: "primary" }, { default: c(() => [p(f(G.value.title ? G.value.title + (G.value.componentLabel ? "(" + G.value.componentLabel + ")" : "") : G.value.componentLabel) + "." + f(G.value.name), 1)]), _: 1 }, 512), [[d, G.value.name && "customFunc" != G.value.name]]), m(r(S2, { modelValue: G.value.eventName, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => G.value.eventName = e4), title: "自定义方法名" }, null, 8, ["modelValue"]), [[d, "customFunc" == G.value.name]])]), _: 1 }, 8, ["required"]), m(r(_2, { modelValue: G.value.standardValues, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value.standardValues = e4), onChange: W }, { default: c(() => [r(k2, { value: "true", label: "标准功能" })]), _: 1 }, 8, ["modelValue"]), [[d, "customFunc" != G.value.name]]), m(r(J3, { disabled: !G.value.isStandard, modelValue: G.value.eventName, "onUpdate:modelValue": t2[3] || (t2[3] = (e4) => G.value.eventName = e4), placeholder: "请选择", filterable: "", style: { width: "240px", "margin-left": "10px" } }, { default: c(() => [(s(true), o(g, null, b(v(R), (e4) => (s(), y(U2, { key: e4.label, label: e4.label }, { default: c(() => [(s(true), o(g, null, b(e4.options, (e5) => (s(), y(T2, { key: e5.value, label: e5.label, value: e5.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["label"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue"]), [[d, "customFunc" != G.value.name]]), r(V2, { label: "描述", "label-width": "auto", style: { flex: "1 1 auto" } }, { default: c(() => [r(S2, { modelValue: G.value.remark, "onUpdate:modelValue": t2[4] || (t2[4] = (e4) => G.value.remark = e4) }, null, 8, ["modelValue"])]), _: 1 })]), m(i("div", B, [r(C, { eventForm: G.value, ref_key: "editorRef", ref: Z }, null, 8, ["eventForm"])], 512), [[d, "customFunc" == G.value.name || "customFunc" != G.value.name && !G.value.isStandard]])]), _: 1 }, 8, ["model"])]);
|
|
158
158
|
};
|
|
159
159
|
} });
|
|
160
160
|
export {
|
|
161
|
-
|
|
161
|
+
J as default
|
|
162
162
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n, resolveComponent as t, createBlock as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as n, resolveComponent as t, createBlock as o, openBlock as r, withCtx as a, createVNode as u } from "vue";
|
|
2
|
+
import i from "./page-event-container.vue.js";
|
|
3
3
|
import l from "./page-event-content.vue.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import c from "../view/components/el-aside-expand-component.vue.js";
|
|
5
|
+
const f = e({ __name: "page-event-view", setup(e2, { expose: f2 }) {
|
|
6
|
+
const s = n(null);
|
|
7
|
+
return f2({ resize: function() {
|
|
8
|
+
s.value && s.value.resize && s.value.resize();
|
|
8
9
|
} }), (e3, n2) => {
|
|
9
|
-
const
|
|
10
|
-
return r(),
|
|
10
|
+
const f3 = t("el-main"), m = t("el-container");
|
|
11
|
+
return r(), o(m, { class: "amb-container" }, { default: a(() => [u(c, null, { default: a(() => [u(i, { ref: "pageEventContainerRef", configure: e3.configure }, null, 8, ["configure"])]), _: 1 }), u(f3, { class: "amb-container-main" }, { default: a(() => [u(l, { configure: {}, eventForm: {}, ref_key: "contentRef", ref: s }, null, 512)]), _: 1 })]), _: 1 });
|
|
11
12
|
};
|
|
12
13
|
} });
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
f as default
|
|
15
16
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getAttrComponentByName as m, getComponentEventOptions as
|
|
5
|
-
import { deepCopy as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
function
|
|
1
|
+
import { defineComponent as e, ref as n, createBlock as s, openBlock as t, resolveDynamicComponent as a } from "vue";
|
|
2
|
+
import o from "../../assemblys/page/page-attr.vue.js";
|
|
3
|
+
import u from "../../assemblys/error-attr.vue.js";
|
|
4
|
+
import { getAttrComponentByName as m, getComponentEventOptions as l } from "../../../utils/assemblys-config.js";
|
|
5
|
+
import { deepCopy as r } from "../../../utils/common-util.js";
|
|
6
|
+
const i = e({ __name: "attr-container", props: { pageInfo: Object, system: Object }, setup(e2, { expose: i2 }) {
|
|
7
|
+
const f = e2, p = n({}), c = n({});
|
|
8
|
+
p.value = f.pageInfo, c.value = o;
|
|
9
|
+
const v = n({ index: 1 }), g = {};
|
|
10
|
+
function y(e3) {
|
|
11
11
|
if (e3 && e3.name && "page" !== e3.name) {
|
|
12
12
|
!function(e4) {
|
|
13
13
|
if (!e4 || !e4.name || !e4.events) return;
|
|
14
|
-
const n3 =
|
|
14
|
+
const n3 = l(e4.name);
|
|
15
15
|
if (!n3) return;
|
|
16
|
-
const
|
|
17
|
-
for (let n4 of e4.events)
|
|
18
|
-
for (let
|
|
19
|
-
if (t2
|
|
20
|
-
const n4 =
|
|
16
|
+
const s2 = {};
|
|
17
|
+
for (let n4 of e4.events) s2[n4.name] = n4;
|
|
18
|
+
for (let t2 of n3) {
|
|
19
|
+
if (s2[t2.name]) continue;
|
|
20
|
+
const n4 = r(t2);
|
|
21
21
|
e4.events.push(n4);
|
|
22
22
|
}
|
|
23
|
-
}(e3),
|
|
24
|
-
let n2 =
|
|
25
|
-
null == n2 && (n2 = m(e3.name)), null == n2 && (n2 =
|
|
26
|
-
} else
|
|
23
|
+
}(e3), p.value = e3;
|
|
24
|
+
let n2 = g[e3.name];
|
|
25
|
+
null == n2 && (n2 = m(e3.name)), null == n2 && (n2 = u), g[e3.name] = n2, c.value = n2;
|
|
26
|
+
} else p.value = f.pageInfo, c.value = o;
|
|
27
27
|
}
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
} }), (n2,
|
|
28
|
+
return i2({ changeAssembly: y, changeAssemblyByComponent: function(e3, n2) {
|
|
29
|
+
p.value = e3, c.value = n2;
|
|
30
|
+
} }), (n2, o2) => (t(), s(a(c.value), { key: "attr_" + p.value.uuid, indexObj: v.value, pageDesign: e2.pageInfo, system: e2.system, configure: p.value, onChangeAssembly: y }, null, 40, ["indexObj", "pageDesign", "system", "configure"]));
|
|
31
31
|
} });
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
i as default
|
|
34
34
|
};
|