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,78 +1,78 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as a, onUnmounted as t, reactive as o, computed as n, watch as u, resolveComponent as r, createElementBlock as s, createBlock as i, openBlock as p, toDisplayString as c, withCtx as d, createVNode as m, createCommentVNode as v,
|
|
2
|
-
import { ElMessage as
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, onUnmounted as t, reactive as o, computed as n, watch as u, resolveComponent as r, createElementBlock as s, createBlock as i, openBlock as p, toDisplayString as c, withCtx as d, createVNode as m, createCommentVNode as v, createElementVNode as f, Fragment as g, renderList as y, normalizeClass as h, withDirectives as b, unref as w, vShow as V, normalizeStyle as C, createTextVNode as _, withModifiers as k, nextTick as z } from "vue";
|
|
2
|
+
import { ElMessage as x } from "element-plus";
|
|
3
3
|
import { Check as S, Search as j, Plus as O, CircleClose as P } from "@element-plus/icons-vue";
|
|
4
4
|
import { EnableStates as T } from "../../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import A from "agilebuilder-ui/src/utils/request";
|
|
6
|
-
const N = { key: 0 }, D = { style: { height: "230px", padding: "0 10px" } },
|
|
6
|
+
const N = { key: 0 }, D = { class: "amb-component-popover-left-menu-main" }, U = ["onClick"], E = { style: { height: "230px", padding: "0 10px" } }, $ = ["title"], I = ["title"], L = e({ __name: "page-permission-select", props: { rowObj: Object, pageDesign: Object, size: { type: String, default: "medium" }, showLabel: { type: Boolean, default: false }, onlyService: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: L2 }) {
|
|
7
7
|
var _a, _b;
|
|
8
|
-
const
|
|
8
|
+
const R = L2, B = e2, F = l(false), X = l(null), q = l(), G = l(null), H = l(false), J = l(""), K = l();
|
|
9
9
|
a(() => {
|
|
10
|
-
window.addEventListener("click",
|
|
10
|
+
window.addEventListener("click", Q);
|
|
11
11
|
}), t(() => {
|
|
12
|
-
window.removeEventListener("click",
|
|
12
|
+
window.removeEventListener("click", Q), re && clearTimeout(re);
|
|
13
13
|
});
|
|
14
|
-
let
|
|
15
|
-
function
|
|
14
|
+
let M = null;
|
|
15
|
+
function Q(e3) {
|
|
16
16
|
let l2 = null;
|
|
17
|
-
if (
|
|
18
|
-
if (e3.target ===
|
|
19
|
-
const a2 =
|
|
20
|
-
a2 && (e3.target === a2 || a2.contains(e3.target)) || (e3.target === l2 || l2.contains(e3.target) ?
|
|
17
|
+
if (G.value && (l2 = G.value.$el.parentNode), !e3.target || !l2) return;
|
|
18
|
+
if (e3.target === M) return;
|
|
19
|
+
const a2 = X.value ? X.value.input : null;
|
|
20
|
+
a2 && (e3.target === a2 || a2.contains(e3.target)) || (e3.target === l2 || l2.contains(e3.target) ? M = e3.target : (G.value.$el, H.value && W()));
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
22
|
+
function W(e3) {
|
|
23
|
+
H.value = false;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
}, get: () =>
|
|
31
|
-
let
|
|
32
|
-
function
|
|
33
|
-
|
|
25
|
+
const Y = [{ value: "service", label: "服务" }, { value: "custom", label: "自定义" }], Z = o({ currentPage: 1, pageSize: 50, total: 0 }), ee = l((_a = B.rowObj) == null ? void 0 : _a.type);
|
|
26
|
+
ee.value || (ee.value = Y[0].value), B.onlyService && (ee.value = "service");
|
|
27
|
+
const le = l("");
|
|
28
|
+
le.value = (_b = B.rowObj) == null ? void 0 : _b.simpleCode;
|
|
29
|
+
const ae = n({ set(e3) {
|
|
30
|
+
}, get: () => B.rowObj.simpleCode }), te = o({ systemCode: "", searchValue: "" }), oe = l([{ value: "", version: 1, label: "" }]), ne = l([]);
|
|
31
|
+
let ue, re = null;
|
|
32
|
+
function se() {
|
|
33
|
+
ce();
|
|
34
34
|
}
|
|
35
|
-
u(
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
u(te, () => {
|
|
36
|
+
re && clearTimeout(re), re = setTimeout(function() {
|
|
37
|
+
Z.currentPage = 1, ce();
|
|
38
38
|
}, 300);
|
|
39
39
|
});
|
|
40
|
-
let
|
|
41
|
-
function
|
|
42
|
-
|
|
40
|
+
let ie = null;
|
|
41
|
+
function pe({ column: e3 }) {
|
|
42
|
+
ie = e3, ce();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ce() {
|
|
45
45
|
var _a2, _b2;
|
|
46
|
-
const e3 = { pagination: { currentPage:
|
|
47
|
-
null !=
|
|
46
|
+
const e3 = { pagination: { currentPage: Z.currentPage, pageSize: Z.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [], sorts: [] };
|
|
47
|
+
null != ie && e3.sorts.push({ prop: ie.property, order: "ascending" == ie.order ? "asc" : "desc" }), te.searchValue && (e3.searchForm.push({ propName: "name", propDbName: "name", operator: "CONTAIN", dataType: "TEXT", propValue: te.searchValue, joinSign: "or" }), e3.searchForm.push({ propName: "code", propDbName: "code", operator: "CONTAIN", dataType: "TEXT", propValue: te.searchValue }));
|
|
48
48
|
let l2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/list", a2 = null;
|
|
49
|
-
if (
|
|
50
|
-
let e4 =
|
|
49
|
+
if (te.systemCode) {
|
|
50
|
+
let e4 = oe.value.filter((e5) => e5.value == te.systemCode);
|
|
51
51
|
e4.length > 0 && (a2 = e4[0].version);
|
|
52
52
|
}
|
|
53
|
-
l2 += "?systemCode=" + (
|
|
54
|
-
|
|
53
|
+
l2 += "?systemCode=" + (te.systemCode ? te.systemCode : (_a2 = B.pageDesign) == null ? void 0 : _a2.systemCode), l2 += "&publishVersion=" + (a2 || ((_b2 = B.pageDesign) == null ? void 0 : _b2.systemVersion)), l2 += "&parentCode=", A.post(l2, e3).then((e4) => {
|
|
54
|
+
ne.value = e4.data, Z.currentPage = e4.page, Z.pageSize = e4.size, Z.total = e4.total;
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const de = n(() => {
|
|
58
58
|
let e3 = 185;
|
|
59
|
-
return "custom" ==
|
|
59
|
+
return "custom" == ee.value && (e3 = 170), e3;
|
|
60
60
|
});
|
|
61
|
-
function
|
|
62
|
-
if (e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), e3 || (e3 = "service"),
|
|
63
|
-
if (
|
|
64
|
-
|
|
61
|
+
function me(e3) {
|
|
62
|
+
if (e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), e3 || (e3 = "service"), ee.value = e3, "service" == ee.value) {
|
|
63
|
+
if (ue == te.searchValue) return;
|
|
64
|
+
ue = te.searchValue, ce();
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
67
|
+
function ve() {
|
|
68
|
+
ee.value = "", le.value = "", R("update:modelValue", "", "", ""), W();
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
|
|
70
|
+
function fe() {
|
|
71
|
+
J.value ? (le.value = J.value, R("update:modelValue", ee.value, le.value, ""), W()) : x.error("请输入权限编码!");
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
function ge() {
|
|
74
|
+
H.value = true, z(() => {
|
|
75
|
+
me(ee.value), A.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
|
|
76
76
|
var _a2, _b2;
|
|
77
77
|
const l2 = e3, a2 = [], t2 = {};
|
|
78
78
|
for (let e4 of l2) {
|
|
@@ -81,26 +81,26 @@ const N = { key: 0 }, D = { style: { height: "230px", padding: "0 10px" } }, U =
|
|
|
81
81
|
const l3 = t2[e4.code];
|
|
82
82
|
null != l3 && e4.publishVersion > l3.publishVersion ? t2[e4.code] = e4 : null == l3 && (t2[e4.code] = e4, a2.push(e4.code));
|
|
83
83
|
}
|
|
84
|
-
const o2 = (_a2 =
|
|
85
|
-
|
|
84
|
+
const o2 = (_a2 = B.pageDesign) == null ? void 0 : _a2.systemCode, n2 = (_b2 = B.pageDesign) == null ? void 0 : _b2.systemVersion;
|
|
85
|
+
oe.value = [];
|
|
86
86
|
for (let e4 of a2) {
|
|
87
87
|
const l3 = t2[e4], a3 = e4 === o2 ? n2 : l3.publishVersion;
|
|
88
|
-
|
|
88
|
+
oe.value.push({ value: e4, label: l3.name + "(" + a3 + ")", version: a3 });
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
return e3 ? `${
|
|
93
|
+
function ye(e3) {
|
|
94
|
+
return e3 ? `${B.rowObj.name}:${e3}` : null;
|
|
95
95
|
}
|
|
96
96
|
return (l2, a2) => {
|
|
97
|
-
const t2 = r("el-icon"), o2 = r("el-input"), n2 = r("el-
|
|
98
|
-
return e2.showLabel ? (p(), s("span", N, c(e2.rowObj.name ? e2.rowObj.name : e2.rowObj.simpleCode), 1)) : (p(), i(
|
|
99
|
-
return a3 = e3.row,
|
|
97
|
+
const t2 = r("el-icon"), o2 = r("el-input"), n2 = r("el-col"), u2 = r("el-empty"), z2 = r("el-option"), x2 = r("el-select"), T2 = r("el-button"), A2 = r("el-row"), L3 = r("el-text"), B2 = r("el-table-column"), M2 = r("el-table"), Q2 = r("el-pagination"), ue2 = r("el-popover");
|
|
98
|
+
return e2.showLabel ? (p(), s("span", N, c(e2.rowObj.name ? e2.rowObj.name : e2.rowObj.simpleCode), 1)) : (p(), i(ue2, { key: 1, modelValue: F.value, "onUpdate:modelValue": a2[6] || (a2[6] = (e3) => F.value = e3), ref_key: "popoverRef", ref: q, visible: H.value, width: 400 }, { reference: d(() => [m(o2, { ref_key: "inputRef", ref: X, readonly: "", size: "small", onClick: ge, title: e2.rowObj.name + "(" + e2.rowObj.simpleCode + ")", formatter: ye, modelValue: ae.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ae.value = e3), placeholder: "请选择" }, { suffix: d(() => [b(m(t2, { style: { cursor: "pointer" }, onClick: k(ve, ["stop"]) }, { default: d(() => [m(w(P))]), _: 1 }, 512), [[V, le.value]])]), _: 1 }, 8, ["title", "modelValue"])]), default: d(() => [m(A2, { ref_key: "contentRef", ref: G }, { default: d(() => [e2.onlyService ? v("", true) : (p(), i(n2, { key: 0, span: 8 }, { default: d(() => [f("div", D, [(p(), s(g, null, y(Y, (e3) => f("div", { class: h(["amb-popover-menu-item", e3.value == ee.value ? "is-active" : ""]), onClick: (l3) => me(e3.value) }, [m(t2, null, { default: d(() => [b(m(w(S), null, null, 512), [[V, e3.value == l2.iconType]])]), _: 2 }, 1024), f("span", null, c(e3.label), 1)], 10, U)), 64))])]), _: 1 })), ee.value ? (p(), i(n2, { key: 2, span: e2.onlyService ? 24 : 16, style: { "padding-left": "10px" } }, { default: d(() => [m(A2, null, { default: d(() => [b(m(x2, { modelValue: te.systemCode, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => te.systemCode = e3), placeholder: "当前应用", clearable: "", style: { width: "100px" } }, { default: d(() => [(p(true), s(g, null, y(oe.value, (e3) => (p(), i(z2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), [[V, "service" == ee.value]]), b(m(o2, { size: "small", modelValue: te.searchValue, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => te.searchValue = e3), placeholder: "搜索", "suffix-icon": w(j), style: C([{ "margin-left": "6px" }, { width: e2.onlyService ? "250px" : "130px" }]) }, null, 8, ["modelValue", "suffix-icon", "style"]), [[V, "service" == ee.value]]), b(m(o2, { size: "small", modelValue: J.value, "onUpdate:modelValue": a2[3] || (a2[3] = (e3) => J.value = e3), placeholder: "请输入", style: { "margin-left": "6px", width: "200px" } }, null, 8, ["modelValue"]), [[V, "custom" == ee.value]]), b(m(T2, { style: { "margin-left": "4px" }, onClick: fe, size: "small", type: "primary", icon: w(O), circle: "" }, null, 8, ["icon"]), [[V, "custom" == ee.value]])]), _: 1 }), b(f("div", E, [m(L3, { type: "primary" }, { default: d(() => a2[7] || (a2[7] = [_("请输入自定义Controller中Permission注解中的code后点击添加图标.")])), _: 1 })], 512), [[V, "service" != ee.value]]), b(m(M2, { ref_key: "tableRef", ref: K, height: de.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "highlight-current-row": true, onSortChange: pe, data: ne.value }, { default: d(() => [m(B2, { width: "65" }, { default: d((e3) => [m(T2, { type: "default", size: "small", onClick: (l3) => {
|
|
99
|
+
return a3 = e3.row, le.value = a3.code, R("update:modelValue", ee.value, le.value, a3.name, a3.id), void W();
|
|
100
100
|
var a3;
|
|
101
|
-
} }, { default: d(() => a2[8] || (a2[8] = [_(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), m(
|
|
101
|
+
} }, { default: d(() => a2[8] || (a2[8] = [_(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), m(B2, { label: "名称", prop: "name", width: "120", sortable: "custom" }, { default: d((e3) => [f("span", { style: { "text-align": "left" }, title: e3.row.name }, c(e3.row.name), 9, $)]), _: 1 }), m(B2, { label: "编码", sortable: "custom" }, { default: d((e3) => [f("span", { style: { "text-align": "left" }, title: e3.row.code }, c(e3.row.code), 9, I)]), _: 1 })]), _: 1 }, 8, ["height", "data"]), [[V, "service" == ee.value]]), b(m(Q2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": Z.currentPage, "onUpdate:currentPage": a2[4] || (a2[4] = (e3) => Z.currentPage = e3), "page-size": Z.pageSize, "onUpdate:pageSize": a2[5] || (a2[5] = (e3) => Z.pageSize = e3), size: l2.small, "pager-count": 3, layout: "pager,total", total: Z.total, onCurrentChange: se }, null, 8, ["current-page", "page-size", "size", "total"]), [[V, "service" == ee.value]])]), _: 1 }, 8, ["span"])) : (p(), i(n2, { key: 1, span: 16 }, { default: d(() => [m(u2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 }, 512)]), _: 1 }, 8, ["modelValue", "visible"]));
|
|
102
102
|
};
|
|
103
103
|
} });
|
|
104
104
|
export {
|
|
105
|
-
|
|
105
|
+
L as default
|
|
106
106
|
};
|
|
@@ -1,56 +1,61 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, computed as i, ref as n, watch as t, resolveComponent as o, createBlock as s, openBlock as l, unref as r, normalizeStyle as u, normalizeClass as c, createSlots as a, withCtx as g, createElementVNode as p, createElementBlock as f, Fragment as m, renderList as d, createCommentVNode as y, createTextVNode as x, toDisplayString as b, reactive as v } from "vue";
|
|
2
2
|
import { ElCard as h } from "element-plus";
|
|
3
3
|
import { useDraggable as j } from "vue-draggable-plus";
|
|
4
|
-
import O from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import { ArrowUp as O, ArrowDown as C } from "@element-plus/icons-vue";
|
|
5
|
+
import W from "../../object-design.vue.js";
|
|
6
|
+
import { deepCopy as S, getUuidv4 as k } from "../../../../utils/common-util.js";
|
|
7
|
+
import { caculateComponentStyle as w } from "../../../../utils/container-design-util.js";
|
|
7
8
|
import { copyHandleEvents as D, deleteDesignItem as _ } from "../../../../utils/page-design-util.js";
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const T = e({ __name: "card-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: T2 }) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const V = e2;
|
|
12
|
+
V.configure.items || (V.configure.items = []), V.configure.props = { isCollapse: true, isCollapseShow: true, ...V.configure.props ?? {} };
|
|
13
|
+
const A = i(() => {
|
|
14
|
+
var _a2;
|
|
15
|
+
return [true, void 0].includes((_a2 = V.configure.props) == null ? void 0 : _a2.isCollapse);
|
|
16
|
+
}), F = n(!((_a = V.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = V.configure.props) == null ? void 0 : _b.isCollapseShow)), J = n({}), z = n(""), I = n({});
|
|
17
|
+
q(), t(V.configure.style, () => {
|
|
18
|
+
q();
|
|
14
19
|
});
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
|
|
20
|
+
const P = i(() => [...V.configure.items]);
|
|
21
|
+
function q() {
|
|
22
|
+
w(V.configure, J, z, I), V.configure.runtime || (V.configure.runtime = {}), V.configure.runtime.style = J.value, V.configure.runtime.class = z.value, V.configure.runtime.headerStyle = I.value;
|
|
18
23
|
}
|
|
19
|
-
|
|
20
|
-
e3.length >
|
|
24
|
+
t(P, (e3, i2) => {
|
|
25
|
+
e3.length > i2.length && K(V.indexObj.index, e3[e3.length - 1]);
|
|
21
26
|
}, { important: true, deep: true });
|
|
22
|
-
const
|
|
23
|
-
|
|
27
|
+
const B = n({});
|
|
28
|
+
t(V.configure.props, () => {
|
|
24
29
|
!function() {
|
|
25
|
-
const e3 =
|
|
26
|
-
e3.isFlex && (
|
|
27
|
-
|
|
30
|
+
const e3 = V.configure.props, i2 = {};
|
|
31
|
+
e3.isFlex && (i2.display = "flex", i2["flex-wrap"] = "wrap", i2["align-content"] = "flex-start", e3.flexJustify && (i2["justify-content"] = e3.flexJustify));
|
|
32
|
+
B.value = i2, V.configure.runtime.contentStyle = i2;
|
|
28
33
|
}();
|
|
29
34
|
}, { immediate: true });
|
|
30
|
-
const
|
|
31
|
-
function
|
|
32
|
-
|
|
35
|
+
const E = n(null), { start: G } = j(E, V.configure.items, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: { name: "amb-assembly-item" }, animation: 300, ghostClass: "amb-item-ghost", forceFallback: true }), H = T2;
|
|
36
|
+
function K(e3, i2) {
|
|
37
|
+
H("onSelectWidget", e3, i2);
|
|
33
38
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
39
|
+
function L(e3, i2) {
|
|
40
|
+
H("onCustomAttrWidget", e3, i2);
|
|
36
41
|
}
|
|
37
|
-
function
|
|
38
|
-
let
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
const
|
|
42
|
-
|
|
42
|
+
function M(e3) {
|
|
43
|
+
let i2 = V.configure.items;
|
|
44
|
+
const n2 = i2.indexOf(e3);
|
|
45
|
+
if (n2 > -1) {
|
|
46
|
+
const t2 = v(S(e3));
|
|
47
|
+
t2.uuid = k(), D(t2), i2.splice(n2, 0, t2);
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
|
-
function
|
|
46
|
-
let
|
|
47
|
-
_(
|
|
50
|
+
function N(e3) {
|
|
51
|
+
let i2 = V.configure.items;
|
|
52
|
+
_(i2, e3, e3.items && e3.items.length > 0, true);
|
|
48
53
|
}
|
|
49
|
-
return (e3,
|
|
50
|
-
const
|
|
51
|
-
return
|
|
54
|
+
return (e3, i2) => {
|
|
55
|
+
const n2 = o("SuperIcon"), t2 = o("el-link");
|
|
56
|
+
return l(), s(r(h), { class: c(["amb-design-item-default yx-card-box-view-main", z.value]), style: u(J.value) }, a({ default: g(() => [p("div", { ref_key: "ambDragParent", ref: E, class: "amb-design-item-default", style: u([{ "padding-bottom": "40px" }, B.value]) }, [(l(true), f(m, null, d(e3.configure.items, (i3, n3) => (l(), s(W, { key: i3, pageDesign: e3.pageDesign, configure: i3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: K, onOnCustomAttrWidget: L, onOnCopy: M, onOnDelete: N }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: g(() => [p("div", { class: "yx-card-box-view-title", style: u(I.value) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (l(), s(n2, { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + b(e3.configure.props.base.title), 1)], 4), A.value ? (l(), s(t2, { key: 0, underline: false, icon: F.value ? r(O) : r(C), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : y("", true)]), key: "0" } : void 0]), 1032, ["style", "class"]);
|
|
52
57
|
};
|
|
53
58
|
} });
|
|
54
59
|
export {
|
|
55
|
-
|
|
60
|
+
T as default
|
|
56
61
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as u, withCtx as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as u, withCtx as t, createVNode as d, createElementVNode as p, createTextVNode as r, toDisplayString as i, unref as n } from "vue";
|
|
2
2
|
import { Search as m } from "@element-plus/icons-vue";
|
|
3
3
|
import s from "../../common/common-attr-size.vue.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import f from "../../common/common-function-code.vue.js";
|
|
5
|
+
const c = { style: { padding: "8px 0px 0px 0px" } }, g = { style: { padding: "8px 0px 0px 0px" } }, b = e({ __name: "iframe-attr-base", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
6
6
|
const b2 = l(["1", "2", "attrSize"]);
|
|
7
7
|
return (l2, x) => {
|
|
8
8
|
const V = o("el-text"), _ = o("el-form-item"), y = o("el-input"), v = o("el-collapse-item"), h = o("el-radio"), z = o("el-button"), U = o("el-radio-group"), k = o("el-collapse"), T = o("el-form");
|
|
9
|
-
return u(), a(T, { "label-width": "80px", size: "small" }, { default:
|
|
9
|
+
return u(), a(T, { "label-width": "80px", size: "small" }, { default: t(() => [d(k, { modelValue: b2.value, "onUpdate:modelValue": x[5] || (x[5] = (e3) => b2.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [d(v, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: t(() => [p("div", c, [d(_, { label: "组件类型" }, { default: t(() => [d(V, null, { default: t(() => [r(i(e2.configure.label) + "(" + i(e2.configure.name) + ")", 1)]), _: 1 })]), _: 1 }), d(_, { label: "唯一编码", style: { "margin-top": "-10px" } }, { default: t(() => [d(y, { modelValue: e2.configure.uuid, "onUpdate:modelValue": x[0] || (x[0] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), d(_, { label: "自定义编码", style: { "margin-top": "-10px" } }, { default: t(() => [d(y, { modelValue: e2.configure.code, "onUpdate:modelValue": x[1] || (x[1] = (l3) => e2.configure.code = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), d(_, { label: "绑定权限", style: { "margin-top": "-10px", "margin-bottom": "-10px" } }, { default: t(() => [d(f, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 })])]), _: 1 }), d(v, { title: "链接", name: "2", class: "amb-design-attr-group-header" }, { default: t(() => [p("div", g, [d(U, { modelValue: e2.configure.props.linkType, "onUpdate:modelValue": x[4] || (x[4] = (l3) => e2.configure.props.linkType = l3) }, { default: t(() => [d(_, null, { label: t(() => [d(h, { value: "address" }, { default: t(() => x[6] || (x[6] = [r("地址")])), _: 1 })]), default: t(() => [d(y, { modelValue: e2.configure.props.src, "onUpdate:modelValue": x[2] || (x[2] = (l3) => e2.configure.props.src = l3), disabled: "address" != e2.configure.props.linkType }, null, 8, ["modelValue", "disabled"])]), _: 1 }), d(_, { style: { "margin-top": "-8px", "margin-bottom": "-10px" } }, { label: t(() => [d(h, { value: "page" }, { default: t(() => x[7] || (x[7] = [r("页面")])), _: 1 })]), default: t(() => [d(y, { modelValue: e2.configure.props.pageName, "onUpdate:modelValue": x[3] || (x[3] = (l3) => e2.configure.props.pageName = l3), readonly: "", disabled: "page" != e2.configure.props.linkType }, { append: t(() => [d(z, { type: "default", icon: n(m), disabled: "page" != e2.configure.props.linkType }, null, 8, ["icon", "disabled"])]), _: 1 }, 8, ["modelValue", "disabled"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])])]), _: 1 }), d(s, { size: e2.configure.props.size, showCalcHeight: true }, null, 8, ["size"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
10
10
|
};
|
|
11
11
|
} });
|
|
12
12
|
export {
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as o, createBlock as t, openBlock as
|
|
2
|
-
import { Top as s, Bottom as g, Plus as b, Delete as x } from "@element-plus/icons-vue";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as o, createBlock as t, openBlock as i, withCtx as a, createVNode as n, createElementVNode as u, createTextVNode as r, toDisplayString as d, unref as c, createElementBlock as p, Fragment as m, renderList as f } from "vue";
|
|
2
|
+
import { Top as s, Bottom as g, Plus as b, Delete as x, Close as V, Check as _ } from "@element-plus/icons-vue";
|
|
3
|
+
import y from "../../common/common-attr-size.vue.js";
|
|
4
|
+
import v from "../../common/common-function-code.vue.js";
|
|
5
|
+
import h from "../../common/common-icon-bind.vue.js";
|
|
6
|
+
import w from "../../common/common-i18n-key-input.vue.js";
|
|
7
|
+
const U = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { padding: "8px 0px 0px 0px" }, ref: "panels" }, z = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, C = e({ __name: "tabs-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
|
|
8
8
|
} } }, setup(e2) {
|
|
9
|
-
const
|
|
9
|
+
const C2 = e2;
|
|
10
10
|
l([2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 24]);
|
|
11
|
-
const
|
|
12
|
-
return (l2,
|
|
13
|
-
const
|
|
14
|
-
return
|
|
11
|
+
const T = l(["1", "2", "attrSize"]);
|
|
12
|
+
return (l2, j) => {
|
|
13
|
+
const O = o("el-text"), F = o("el-form-item"), P = o("el-input"), R = o("el-collapse-item"), q = o("el-icon"), D = o("el-table-column"), H = o("el-table"), S = o("el-option"), A = o("el-select"), B = o("el-radio-button"), E = o("el-radio-group"), G = o("el-switch"), I = o("el-collapse"), J = o("el-form");
|
|
14
|
+
return i(), t(J, { "label-width": "80px", size: "small" }, { default: a(() => [n(I, { modelValue: T.value, "onUpdate:modelValue": j[7] || (j[7] = (e3) => T.value = e3), style: { "margin-top": "6px" } }, { default: a(() => [n(R, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: a(() => [u("div", U, [n(F, { label: "组件类型" }, { default: a(() => [n(O, null, { default: a(() => [r(d(e2.configure.label) + "(" + d(e2.configure.name) + ")", 1)]), _: 1 })]), _: 1 }), n(F, { label: "唯一编码", style: { "margin-top": "-10px" } }, { default: a(() => [n(P, { modelValue: e2.configure.uuid, "onUpdate:modelValue": j[0] || (j[0] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), n(F, { label: "自定义编码", style: { "margin-top": "-10px" } }, { default: a(() => [n(P, { modelValue: e2.configure.code, "onUpdate:modelValue": j[1] || (j[1] = (l3) => e2.configure.code = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), n(F, { label: "绑定权限", style: { "margin-top": "-10px", "margin-bottom": "-10px" } }, { default: a(() => [n(v, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 })])]), _: 1 }), n(R, { title: "页签列表", name: "2", class: "amb-design-attr-group-header" }, { default: a(() => [u("div", k, [n(H, { data: e2.configure.items, border: "", style: { width: "100%" }, class: "panelTable" }, { default: a(() => [n(D, { label: "", width: "32" }, { default: a((e3) => [u("div", z, [n(q, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
15
15
|
let l4 = -1;
|
|
16
|
-
const o2 =
|
|
17
|
-
for (let t3 = 0; t3 < o2; t3++) if (
|
|
16
|
+
const o2 = C2.configure.items.length;
|
|
17
|
+
for (let t3 = 0; t3 < o2; t3++) if (C2.configure.items[t3].index == e4.index) {
|
|
18
18
|
l4 = t3;
|
|
19
19
|
break;
|
|
20
20
|
}
|
|
21
21
|
if (l4 < 1) return;
|
|
22
|
-
const t2 =
|
|
22
|
+
const t2 = C2.configure.items;
|
|
23
23
|
[t2[l4 - 1], t2[l4]] = [t2[l4], t2[l4 - 1]];
|
|
24
|
-
}(e3.row) }, { default:
|
|
24
|
+
}(e3.row) }, { default: a(() => [n(c(s))]), _: 2 }, 1032, ["onClick"]), n(q, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
25
25
|
let l4 = -1;
|
|
26
|
-
const o2 =
|
|
27
|
-
for (let t3 = 0; t3 < o2; t3++) if (
|
|
26
|
+
const o2 = C2.configure.items.length;
|
|
27
|
+
for (let t3 = 0; t3 < o2; t3++) if (C2.configure.items[t3].index == e4.index) {
|
|
28
28
|
l4 = t3;
|
|
29
29
|
break;
|
|
30
30
|
}
|
|
31
|
-
if (-1 == l4 ||
|
|
32
|
-
const t2 =
|
|
31
|
+
if (-1 == l4 || C2.configure.items.length == l4 + 1) return;
|
|
32
|
+
const t2 = C2.configure.items;
|
|
33
33
|
[t2[l4], t2[l4 + 1]] = [t2[l4 + 1], t2[l4]];
|
|
34
|
-
}(e3.row) }, { default:
|
|
34
|
+
}(e3.row) }, { default: a(() => [n(c(g))]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), n(D, { prop: "label", label: "标题", width: "110" }, { default: a((e3) => [n(w, { modelValue: e3.row.label, "onUpdate:modelValue": (l3) => e3.row.label = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(D, { label: "图标", width: "70" }, { default: a((e3) => [n(h, { iconType: e3.row.iconType, iconValue: e3.row.iconValue, "onUpdate:modelValue": (l3, o2) => function(e4, l4, o3) {
|
|
35
35
|
e4.iconType = l4, e4.iconValue = o3;
|
|
36
|
-
}(e3.row, l3, o2) }, null, 8, ["iconType", "iconValue", "onUpdate:modelValue"])]), _: 1 }), n(D, { label: "编码", width: "70" }, { default:
|
|
36
|
+
}(e3.row, l3, o2) }, null, 8, ["iconType", "iconValue", "onUpdate:modelValue"])]), _: 1 }), n(D, { label: "编码", width: "70" }, { default: a((e3) => [n(P, { modelValue: e3.row.code, "onUpdate:modelValue": (l3) => e3.row.code = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(D, { label: "操作", width: "90" }, { default: a((e3) => [n(q, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => function(e4) {
|
|
37
37
|
let l4 = -1, o2 = -1;
|
|
38
|
-
|
|
39
|
-
t2.index == e4.index && (o2 =
|
|
40
|
-
}), o2 > -1 &&
|
|
41
|
-
}(e3.row) }, { default:
|
|
42
|
-
if (1 ==
|
|
38
|
+
C2.configure.items.find((t2, i2) => {
|
|
39
|
+
t2.index == e4.index && (o2 = i2), t2.index > l4 && (l4 = t2.index);
|
|
40
|
+
}), o2 > -1 && C2.configure.items.splice(o2 + 1, 0, { label: "Tab" + (l4 + 1), index: l4 + 1, items: [] });
|
|
41
|
+
}(e3.row) }, { default: a(() => [n(c(b))]), _: 2 }, 1032, ["onClick"]), n(q, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
42
|
+
if (1 == C2.configure.items.length) return void alert("必须保留一个Tab!");
|
|
43
43
|
if (!confirm("确定要删除吗?")) return;
|
|
44
44
|
let l4 = -1;
|
|
45
|
-
for (let o2 in
|
|
45
|
+
for (let o2 in C2.configure.items) if (C2.configure.items[o2].index == e4.index) {
|
|
46
46
|
l4 = o2;
|
|
47
47
|
break;
|
|
48
48
|
}
|
|
49
|
-
l4 > -1 &&
|
|
50
|
-
}(e3.row) }, { default:
|
|
49
|
+
l4 > -1 && C2.configure.items.splice(l4, 1);
|
|
50
|
+
}(e3.row) }, { default: a(() => [n(c(x))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), n(F, { label: "默认打开", style: { "margin-top": "10px" } }, { default: a(() => [n(A, { modelValue: e2.configure.props.defaultOpen, "onUpdate:modelValue": j[2] || (j[2] = (l3) => e2.configure.props.defaultOpen = l3), placeholder: "默认", clearable: "" }, { default: a(() => [(i(true), p(m, null, f(e2.configure.items, (e3) => (i(), t(S, { label: e3.label, value: e3.index }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(F, { label: "标签风格", style: { "margin-top": "-10px" } }, { default: a(() => [n(A, { modelValue: e2.configure.props.cardType, "onUpdate:modelValue": j[3] || (j[3] = (l3) => e2.configure.props.cardType = l3), placeholder: "默认", clearable: "" }, { default: a(() => [n(S, { label: "卡片", value: "card" }), n(S, { label: "边框", value: "border-card" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(F, { label: "标签位置", style: { "margin-top": "-10px" } }, { default: a(() => [n(E, { modelValue: e2.configure.props.tabPosition, "onUpdate:modelValue": j[4] || (j[4] = (l3) => e2.configure.props.tabPosition = l3) }, { default: a(() => [n(B, { value: "top" }, { default: a(() => j[8] || (j[8] = [r("上")])), _: 1 }), n(B, { value: "right" }, { default: a(() => j[9] || (j[9] = [r("右")])), _: 1 }), n(B, { value: "bottom" }, { default: a(() => j[10] || (j[10] = [r("下")])), _: 1 }), n(B, { value: "left" }, { default: a(() => j[11] || (j[11] = [r("左")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(F, { label: "全部渲染", style: { "margin-top": "-10px" } }, { default: a(() => [n(G, { modelValue: e2.configure.props.isFullyRendered, "onUpdate:modelValue": j[5] || (j[5] = (l3) => e2.configure.props.isFullyRendered = l3), "inline-prompt": "", "active-icon": c(_), "inactive-icon": c(V) }, null, 8, ["modelValue", "active-icon", "inactive-icon"])]), _: 1 }), n(F, { label: "延迟渲染", style: { "margin-top": "-10px" } }, { default: a(() => [n(G, { modelValue: e2.configure.props.lazy, "onUpdate:modelValue": j[6] || (j[6] = (l3) => e2.configure.props.lazy = l3), "inline-prompt": "", "active-icon": c(_), "inactive-icon": c(V) }, null, 8, ["modelValue", "active-icon", "inactive-icon"])]), _: 1 })], 512)]), _: 1 }), n(y, { size: e2.configure.props.size, showCalcHeight: true }, null, 8, ["size"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
51
51
|
};
|
|
52
52
|
} });
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
C as default
|
|
55
55
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as t, watch as n, resolveComponent as s, createElementBlock as a, openBlock as l, createElementVNode as r, normalizeClass as c, isRef as i, unref as o, createTextVNode as u, createBlock as d, createCommentVNode as g, withDirectives as v, createVNode as f, vShow as b } from "vue";
|
|
2
|
+
import p from "./tabs-attr-base.vue.js";
|
|
3
|
+
import m from "./tabs-attr-style.vue.js";
|
|
4
4
|
import y from "./tabs-attr-event.vue.js";
|
|
5
5
|
import j from "./tabs-attr-advanced.vue.js";
|
|
6
|
-
const
|
|
6
|
+
const C = { class: "amb-design-attr-content" }, k = { class: "amb-design-attr-header" }, D = { class: "amb-design-attr-header-type" }, h = { class: "amb-design-attr-list" }, O = e({ __name: "tabs-attr", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
|
|
7
7
|
} } }, emits: [], setup(e2, { emit: O2 }) {
|
|
8
8
|
const _ = e2;
|
|
9
9
|
let q = t("base");
|
|
10
|
-
null == _.configure.events && (_.configure.events = []);
|
|
10
|
+
_.configure.props = { isFullyRendered: true, isContentEmbedded: true, ..._.configure.props ?? {} }, null == _.configure.events && (_.configure.events = []);
|
|
11
11
|
const x = t(0);
|
|
12
|
-
function
|
|
12
|
+
function E() {
|
|
13
13
|
const e3 = _.configure.events;
|
|
14
14
|
for (let t2 = 0; t2 < e3.length; t2++) e3[t2].selLogicCode && x.value++;
|
|
15
15
|
}
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
}), (t2,
|
|
16
|
+
return E(), n(_.configure.events, (e3) => {
|
|
17
|
+
E();
|
|
18
|
+
}), (t2, n2) => {
|
|
19
19
|
const O3 = s("el-badge");
|
|
20
|
-
return l(),
|
|
20
|
+
return l(), a("div", C, [r("div", k, [r("div", D, [r("label", { class: c({ selected: "base" == o(q) }), onClick: n2[0] || (n2[0] = (e3) => i(q) ? q.value = "base" : q = "base") }, "属性", 2), r("label", { class: c({ selected: "style" == o(q) }), onClick: n2[1] || (n2[1] = (e3) => i(q) ? q.value = "style" : q = "style") }, "样式", 2), r("label", { class: c({ selected: "event" == o(q) }), onClick: n2[2] || (n2[2] = (e3) => i(q) ? q.value = "event" : q = "event") }, [n2[4] || (n2[4] = u(" 事件 ")), x.value > 0 ? (l(), d(O3, { key: 0, value: x.value }, null, 8, ["value"])) : g("", true)], 2), r("label", { class: c({ selected: "advanced" == o(q) }), onClick: n2[3] || (n2[3] = (e3) => i(q) ? q.value = "advanced" : q = "advanced") }, "高级", 2)])]), r("div", h, [v(f(p, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"]), [[b, "base" == o(q)]]), v(f(m, { configure: e2.configure }, null, 8, ["configure"]), [[b, "style" == o(q)]]), v(f(y, { configure: e2.configure }, null, 8, ["configure"]), [[b, "event" == o(q)]]), v(f(j, { configure: e2.configure }, null, 8, ["configure"]), [[b, "advanced" == o(q)]])])]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./tabs-design.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const s = t(e, [["__scopeId", "data-v-eca0c768"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as i, createBlock as n, openBlock as l, unref as o, normalizeStyle as s, normalizeClass as a, withCtx as u, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, watch as i, createBlock as n, openBlock as l, unref as o, normalizeStyle as s, normalizeClass as a, withCtx as u, createElementBlock as r, Fragment as m, renderList as c, createVNode as g, createCommentVNode as d, createElementVNode as p, toDisplayString as f, reactive as b } from "vue";
|
|
2
2
|
import { ElTabs as y, ElTabPane as v } from "element-plus";
|
|
3
3
|
import { SuperIcon as x } from "agilebuilder-ui";
|
|
4
4
|
import { VueDraggable as O } from "vue-draggable-plus";
|
|
@@ -7,26 +7,26 @@ import { deepCopy as W, getUuidv4 as j } from "../../../../utils/common-util.js"
|
|
|
7
7
|
import { caculateComponentStyle as h } from "../../../../utils/container-design-util.js";
|
|
8
8
|
import { copyHandleEvents as T, deleteDesignItem as _ } from "../../../../utils/page-design-util.js";
|
|
9
9
|
const D = e({ __name: "tabs-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: D2 }) {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const S = t({}),
|
|
15
|
-
function
|
|
16
|
-
h(
|
|
10
|
+
const k = e2;
|
|
11
|
+
k.configure.items || (k.configure.items = [{ label: "Tab1", index: 1, items: [] }, { label: "Tab2", index: 2, items: [] }]);
|
|
12
|
+
const C = t(1);
|
|
13
|
+
k.configure.runtime || (k.configure.runtime = {});
|
|
14
|
+
const S = t({}), z = t(""), A = t({});
|
|
15
|
+
function U() {
|
|
16
|
+
h(k.configure, S, z, A), k.configure.runtime.style = S.value, k.configure.runtime.class = z.value, k.configure.runtime.headerStyle = A.value;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
U(), i(k.configure.style, () => {
|
|
19
|
+
U();
|
|
20
20
|
});
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
|
|
21
|
+
const w = D2;
|
|
22
|
+
function F(e3, t2) {
|
|
23
|
+
w("onSelectWidget", e3, t2);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function P(e3, t2) {
|
|
26
|
+
w("onCustomAttrWidget", e3, t2);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
let t2 =
|
|
28
|
+
function q(e3) {
|
|
29
|
+
let t2 = k.configure.items;
|
|
30
30
|
for (let i2 = 0; i2 < t2.length; i2++) {
|
|
31
31
|
let n2 = t2[i2];
|
|
32
32
|
if (n2.items) for (let t3 = 0; t3 < n2.items.length; t3++) {
|
|
@@ -38,10 +38,10 @@ const D = e({ __name: "tabs-design", props: { pageDesign: {}, configure: {}, ind
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
return (e3, t2) => (l(), n(o(y), { modelValue:
|
|
41
|
+
return (e3, t2) => (l(), n(o(y), { modelValue: C.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => C.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, class: a(["amb-design-item-default runtime-page-container-tabs-view", z.value]), style: s(S.value) }, { default: u(() => [(l(true), r(m, null, c(e3.configure.items, (t3, i2) => (l(), n(o(v), { key: i2, label: t3.label, name: t3.index, lazy: !!e3.configure.props.lazy }, { label: u(() => [t3.iconType && t3.iconValue ? (l(), n(o(x), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", true), p("span", { style: s(A.value) }, f(t3.label), 5)]), default: u(() => [g(o(O), { tag: "div", class: "amb-design-item-default", style: { "padding-bottom": "40px" }, group: "amb-assembly-item", "force-fallback": true, modelValue: t3.items, "onUpdate:modelValue": (e4) => t3.items = e4, sort: true, filter: ".el-scrollbar__bar", preventOnFilter: false, animation: 300, "ghost-class": "amb-item-ghost", fallbackClass: true }, { default: u(() => [(l(true), r(m, null, c(t3.items, (i3, o2) => (l(), n(V, { key: i3, pageDesign: e3.pageDesign, configure: i3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: F, onOnCustomAttrWidget: P, onOnCopy: q, onOnDelete: (e4) => function(e5, t4) {
|
|
42
42
|
const i4 = e5.items;
|
|
43
43
|
_(i4, t4, t4.items && t4.items.length > 0, true);
|
|
44
|
-
}(t3, e4) }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj", "onOnDelete"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["label", "name"]))),
|
|
44
|
+
}(t3, e4) }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj", "onOnDelete"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128))]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class"]));
|
|
45
45
|
} });
|
|
46
46
|
export {
|
|
47
47
|
D as default
|