super-page-designer 2.2.97 → 2.3.0-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 +1 -1
- package/dist/es/components/design/utils/page-design-util.d.ts +3 -1
- package/dist/es/components/design/utils/page-design-util.js +23 -22
- package/dist/es/components/design/utils/page-table-util.js +62 -54
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +20 -20
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +24 -24
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +69 -55
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +6 -6
- 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 +6 -6
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +8 -8
- 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 +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +24 -24
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +13 -10
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +13 -13
- package/dist/es/components/design/views/design/page-event/completion-data.d.ts +7 -0
- package/dist/es/components/design/views/design/page-event/completion-data.js +4 -0
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +56 -50
- 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.vue.js +16 -16
- package/dist/es/style.css +37 -37
- package/package.json +5 -5
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +0 -0
|
@@ -1,94 +1,108 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as o, resolveComponent as a, resolveDirective as n, createElementBlock as t, createBlock as u, openBlock as i, toDisplayString as c, withCtx as s, createVNode as
|
|
2
|
-
import { Close as k, Check as I, Search as x, Plus as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as o, resolveComponent as a, resolveDirective as n, createElementBlock as t, createBlock as u, openBlock as i, toDisplayString as c, withCtx as s, createVNode as p, withDirectives as v, unref as r, createElementVNode as m, Fragment as d, renderList as f, normalizeClass as g, vShow as b, createCommentVNode as y, createTextVNode as h, withModifiers as w, nextTick as _ } from "vue";
|
|
2
|
+
import { Close as k, Check as I, Search as x, Plus as C, InfoFilled as A, CircleClose as $ } from "@element-plus/icons-vue";
|
|
3
3
|
import * as V from "@element-plus/icons";
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import P from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { ElMessage as z } from "element-plus";
|
|
6
|
+
const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j = ["onClick"], S = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, T = { key: 2 }, L = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, N = { class: "amb-component-popover-icon-grid" }, E = ["onClick"], q = { key: 4, style: { "text-align": "right" } }, D = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: D2 }) {
|
|
6
7
|
var _a, _b;
|
|
7
|
-
const
|
|
8
|
+
const R = D2, B = e2, F = l([]), G = l([]), W = l([]), H = l([]), J = l([{ value: "ElementUI", label: "ElementUI" }, { value: "ambIcon", label: "Amb图标库" }, { value: "ambColorIcon", label: "Amb彩色图标库", dataList: [] }, { value: "custom", label: "自定义" }]);
|
|
8
9
|
l(false);
|
|
9
|
-
const
|
|
10
|
+
const K = l(1), M = l(B.iconType ?? ((_b = (_a = J.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), Q = l("");
|
|
10
11
|
Q.value = B.iconValue;
|
|
11
|
-
const
|
|
12
|
-
let e3 =
|
|
13
|
-
return
|
|
12
|
+
const X = l({}), Y = l(""), Z = l(), ee = l(), le = l(false), oe = o(() => ["ElementUI"].includes(M.value) ? F.value : ["ambIcon"].includes(M.value) ? G.value : ["ambColorIcon"].includes(M.value) ? W.value : H.value), ae = o(() => {
|
|
13
|
+
let e3 = oe.value ?? [];
|
|
14
|
+
return Y.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
|
|
14
15
|
var _a2;
|
|
15
|
-
return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(
|
|
16
|
-
}))), e3.slice(0, 50 *
|
|
17
|
-
}),
|
|
18
|
-
|
|
16
|
+
return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(Y.value.toLowerCase());
|
|
17
|
+
}))), e3.slice(0, 50 * K.value);
|
|
18
|
+
}), ne = () => {
|
|
19
|
+
ae.value.length > 0 && !le.value && oe.value.length > ae.value.length && !Y.value && K.value++;
|
|
19
20
|
};
|
|
20
|
-
const
|
|
21
|
-
if (!(
|
|
21
|
+
const te = async () => {
|
|
22
|
+
if (!(H.value.length > 0)) {
|
|
22
23
|
try {
|
|
23
|
-
|
|
24
|
-
const e3 = await
|
|
24
|
+
le.value = true;
|
|
25
|
+
const e3 = await P.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 }), l2 = (e3 == null ? void 0 : e3.data) ?? [], o2 = [];
|
|
25
26
|
for (let e4 of l2) o2.push({ value: e4.iconName, label: e4.iconName });
|
|
26
|
-
|
|
27
|
+
X.value.customOptions = o2, H.value = o2;
|
|
27
28
|
} catch (e3) {
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
+
le.value = false;
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
|
-
function
|
|
33
|
+
function ue(e3) {
|
|
33
34
|
var l2;
|
|
34
|
-
|
|
35
|
+
K.value = 1, M.value = e3, "ElementUI" === (l2 = M.value) ? F.value = X.value.elementUIOptions : "custom" === l2 ? te() : ["ambIcon"].includes(l2) ? (async () => {
|
|
35
36
|
var _a2, _b2, _c;
|
|
36
|
-
if (!(
|
|
37
|
+
if (!(G.value.length > 0)) {
|
|
37
38
|
try {
|
|
38
|
-
|
|
39
|
+
le.value = true;
|
|
39
40
|
let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
|
|
40
41
|
((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}/iconfont.json`);
|
|
41
42
|
const l3 = await fetch(e4, { mode: "cors" }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
|
|
42
|
-
|
|
43
|
+
G.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
|
|
43
44
|
} catch (e4) {
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
+
le.value = false;
|
|
46
47
|
}
|
|
47
48
|
})() : ["ambColorIcon"].includes(l2) && async function() {
|
|
48
49
|
var _a2, _b2, _c;
|
|
49
|
-
if (!(
|
|
50
|
+
if (!(W.value.length > 0)) {
|
|
50
51
|
try {
|
|
51
|
-
|
|
52
|
+
le.value = true;
|
|
52
53
|
let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
|
|
53
54
|
((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}-color/iconfont.json`);
|
|
54
55
|
const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
|
|
55
|
-
|
|
56
|
+
W.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
|
|
56
57
|
} catch (e4) {
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
+
le.value = false;
|
|
59
60
|
}
|
|
60
61
|
}();
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function ie() {
|
|
63
64
|
var _a2, _b2;
|
|
64
|
-
(_b2 = (_a2 =
|
|
65
|
+
(_b2 = (_a2 = Z.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
Q.value = "",
|
|
67
|
+
function ce() {
|
|
68
|
+
Q.value = "", R("update:modelValue", "", ""), Z.value.hide();
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
71
|
-
const e3 =
|
|
70
|
+
function se() {
|
|
71
|
+
if (Y.value = Y.value.trim(), !Y.value) return void z.warning("请输入图标名!");
|
|
72
|
+
const e3 = X.value.customOptions || [];
|
|
72
73
|
let l2 = false;
|
|
73
|
-
for (let
|
|
74
|
+
for (let o2 of e3) if (o2.value === Y.value) {
|
|
74
75
|
l2 = true;
|
|
75
76
|
break;
|
|
76
77
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
const e4 =
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
if (!l2 && Y.value.startsWith("svg-img-")) z.info("请选择需要上传的SVG文件!"), ee.value.click();
|
|
79
|
+
else {
|
|
80
|
+
M.value = "custom", Q.value = Y.value;
|
|
81
|
+
const e4 = Y.value;
|
|
82
|
+
if (Y.value = "", R("update:modelValue", M.value, Q.value), Z.value.hide(), !l2) {
|
|
83
|
+
const l3 = { iconName: e4 };
|
|
84
|
+
P.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", l3).then((e5) => {
|
|
85
|
+
"custom" == M.value && te();
|
|
86
|
+
}).catch((e5) => {
|
|
87
|
+
z.warning("保存图标失败!");
|
|
88
|
+
});
|
|
89
|
+
}
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
|
-
function
|
|
92
|
+
function pe(e3) {
|
|
93
|
+
const l2 = e3.target.files[0];
|
|
94
|
+
if (!l2) return;
|
|
95
|
+
const o2 = new FormData();
|
|
96
|
+
o2.append("file", l2), o2.append("iconName", Y.value.trim()), P.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/upload-icon", o2, { headers: { "Content-Type": "multipart/form-data" } }).then((e4) => {
|
|
97
|
+
ee.value.value = "", z.success("上传成功!"), H.value.unshift({ value: Y.value.trim(), label: Y.value.trim() }), Y.value = "";
|
|
98
|
+
}).catch((e4) => {
|
|
99
|
+
z.warning("保存图标失败!");
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function ve() {
|
|
89
103
|
_(() => {
|
|
90
104
|
!function() {
|
|
91
|
-
if (!
|
|
105
|
+
if (!X.value.elementUIOptions) {
|
|
92
106
|
if (!window.temp_Icon_Options) {
|
|
93
107
|
const e3 = [];
|
|
94
108
|
for (const [l2, o2] of Object.entries(V)) e3.push({ value: l2, label: l2, component: o2 });
|
|
@@ -97,19 +111,19 @@ const U = { key: 0 }, j = { class: "amb-component-popover-left-menu-main" }, z =
|
|
|
97
111
|
return o2.localeCompare(a2);
|
|
98
112
|
}), window.temp_Icon_Options = e3;
|
|
99
113
|
}
|
|
100
|
-
|
|
114
|
+
X.value.elementUIOptions = window.temp_Icon_Options;
|
|
101
115
|
}
|
|
102
|
-
}(),
|
|
116
|
+
}(), ue(M.value);
|
|
103
117
|
});
|
|
104
118
|
}
|
|
105
119
|
return l(), (l2, o2) => {
|
|
106
|
-
const _2 = a("el-icon"), V2 = a("el-input"),
|
|
107
|
-
return e2.showLabel ? (i(), t("span",
|
|
108
|
-
return o3 = e3, Q.value = o3.value,
|
|
120
|
+
const _2 = a("el-icon"), V2 = a("el-input"), P2 = a("el-button"), z2 = a("el-tooltip"), D3 = a("el-scrollbar"), B2 = a("el-col"), F2 = a("el-empty"), G2 = a("el-tag"), W2 = a("SuperIcon"), H2 = a("ArrowDown"), K2 = a("el-row"), X2 = a("el-popover"), te2 = n("infinite-scroll"), re = n("loading");
|
|
121
|
+
return e2.showLabel ? (i(), t("span", O, c(Q.value), 1)) : (i(), u(X2, { key: 1, ref_key: "popoverRef", ref: Z, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [p(V2, { readonly: "", size: e2.size, onClick: ve, modelValue: Q.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => Q.value = e3), placeholder: "请选择" }, { suffix: s(() => [v(p(_2, { style: { cursor: "pointer" }, onClick: w(ce, ["stop"]) }, { default: s(() => [p(r($))]), _: 1 }, 512), [[b, Q.value]])]), _: 1 }, 8, ["size", "modelValue"])]), default: s(() => [p(K2, null, { default: s(() => [p(z2, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [p(P2, { type: "text", class: "amb-component-popover-close-btn", icon: r(k), onClick: ie }, null, 8, ["icon"])]), _: 1 }), p(B2, { span: 8 }, { default: s(() => [m("div", U, [p(D3, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, f(J.value, (e3) => (i(), t("div", { class: g(["amb-popover-menu-item", e3.value == M.value ? "is-active" : ""]), onClick: (l3) => ue(e3.value) }, [p(_2, null, { default: s(() => [v(p(r(I), null, null, 512), [[b, e3.value == M.value]])]), _: 2 }, 1024), m("span", null, c(e3.label), 1)], 10, j))), 256))]), _: 1 })])]), _: 1 }), v((i(), u(B2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [M.value ? y("", true) : (i(), u(F2, { key: 0, description: "请选择类型", "image-size": 80 })), M.value ? (i(), t("div", S, [p(V2, { modelValue: Y.value, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => Y.value = e3), placeholder: "搜索", size: "default", "prefix-icon": r(x), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(M.value) && Y.value && !ae.value.length ? (i(), u(z2, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [p(P2, { type: "primary", circle: "", icon: r(C), onClick: se }, null, 8, ["icon"])]), _: 1 })) : y("", true)])) : y("", true), m("input", { ref_key: "uplooadSvgInputRef", ref: ee, type: "file", accept: ".svg", style: { display: "none" }, onChange: pe }, null, 544), ["custom"].includes(M.value) ? (i(), t("div", T, [p(_2, null, { default: s(() => [p(r(A))]), _: 1 }), o2[5] || (o2[5] = m("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), o2[6] || (o2[6] = h(" ")), p(z2, null, { content: s(() => o2[3] || (o2[3] = [h(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), m("br", null, null, -1), h(" 2.支持svg图标,需以svg-img-开头,接svg内容,如:svg-img-xxxxxx. ")])), default: s(() => [p(G2, { type: "primary" }, { default: s(() => o2[4] || (o2[4] = [h("更多")])), _: 1 })]), _: 1 })])) : y("", true), M.value ? v((i(), t("div", L, [ae.value.length || le.value ? y("", true) : (i(), u(F2, { key: 0, description: "没有相关图标", "image-size": 80 })), m("div", N, [(i(true), t(d, null, f(ae.value, (e3) => (i(), u(z2, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [m("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
|
|
122
|
+
return o3 = e3, Q.value = o3.value, R("update:modelValue", M.value, Q.value), void Z.value.hide();
|
|
109
123
|
var o3;
|
|
110
|
-
} }, [
|
|
124
|
+
} }, [p(W2, { iconType: M.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, E)]), _: 2 }, 1032, ["content"]))), 128))])])), [[te2, ne]]) : y("", true), M.value ? (i(), t("div", q, [ae.value.length < oe.value.length ? (i(), u(_2, { key: 0, style: { "padding-left": "10px", "font-size": "20px" }, onClick: o2[2] || (o2[2] = (e3) => ne()) }, { default: s(() => [p(H2)]), _: 1 })) : y("", true), h(c(ae.value.length) + "/" + c(oe.value.length), 1)])) : y("", true)]), _: 1 })), [[re, le.value]])]), _: 1 })]), _: 1 }, 512));
|
|
111
125
|
};
|
|
112
126
|
} });
|
|
113
127
|
export {
|
|
114
|
-
|
|
128
|
+
D as default
|
|
115
129
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./card-design.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const o = r(e, [["__scopeId", "data-v-231a66cb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
o as default
|
|
7
7
|
};
|
|
@@ -44,7 +44,7 @@ const T = e({ __name: "card-design", props: { pageDesign: {}, configure: {}, ind
|
|
|
44
44
|
const n2 = i2.indexOf(e3);
|
|
45
45
|
if (n2 > -1) {
|
|
46
46
|
const t2 = v(S(e3));
|
|
47
|
-
t2.uuid = k(), D(t2), i2.splice(n2, 0, t2);
|
|
47
|
+
t2.uuid = k(), D(t2, V.pageDesign), i2.splice(n2, 0, t2);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
function N(e3) {
|
package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js
CHANGED
|
@@ -3,9 +3,9 @@ import { VueDraggable as x } from "vue-draggable-plus";
|
|
|
3
3
|
import O from "../../object-design.vue.js";
|
|
4
4
|
import { SuperIcon as V } from "agilebuilder-ui";
|
|
5
5
|
import { deepCopy as j, getUuidv4 as W } from "../../../../utils/common-util.js";
|
|
6
|
-
import { caculateComponentStyle as
|
|
6
|
+
import { caculateComponentStyle as D } from "../../../../utils/container-design-util.js";
|
|
7
7
|
import "element-plus";
|
|
8
|
-
import { copyHandleEvents as
|
|
8
|
+
import { copyHandleEvents as _, deleteDesignItem as k } from "../../../../utils/page-design-util.js";
|
|
9
9
|
const C = e({ __name: "collapse-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: C2 }) {
|
|
10
10
|
const S = e2;
|
|
11
11
|
S.configure.items || (S.configure.items = [{ label: "Panel", index: 1, items: [] }, { label: "Panel", items: [], index: 2 }]);
|
|
@@ -17,7 +17,7 @@ const C = e({ __name: "collapse-design", props: { pageDesign: {}, configure: {},
|
|
|
17
17
|
});
|
|
18
18
|
const P = l(() => [...S.configure.items]);
|
|
19
19
|
function w() {
|
|
20
|
-
|
|
20
|
+
D(S.configure, A, U, E), S.configure.runtime.style = A.value, S.configure.runtime.class = U.value, S.configure.runtime.headerStyle = E.value;
|
|
21
21
|
}
|
|
22
22
|
i(P, (e3, t2) => {
|
|
23
23
|
e3.forEach((e4) => {
|
|
@@ -42,7 +42,7 @@ const C = e({ __name: "collapse-design", props: { pageDesign: {}, configure: {},
|
|
|
42
42
|
const i3 = l2.items.indexOf(e3);
|
|
43
43
|
if (i3 > -1) {
|
|
44
44
|
const t4 = h(j(e3));
|
|
45
|
-
return t4.uuid = W(),
|
|
45
|
+
return t4.uuid = W(), _(t4, S.pageDesign), void l2.items.splice(i3, 0, t4);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js
CHANGED
|
@@ -49,7 +49,7 @@ const j = e({ __name: "container-design", props: { pageDesign: {}, configure: {}
|
|
|
49
49
|
const n2 = i2.indexOf(e3);
|
|
50
50
|
if (-1 == n2) return void alert("无可复制对象!");
|
|
51
51
|
const l2 = h(W(e3));
|
|
52
|
-
l2.uuid = y(), A(l2), i2.splice(n2, 0, l2);
|
|
52
|
+
l2.uuid = y(), A(l2, D.pageDesign), i2.splice(n2, 0, l2);
|
|
53
53
|
}
|
|
54
54
|
function H(e3) {
|
|
55
55
|
K(e3, "left");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as i, computed as n, resolveComponent as o, createBlock as l, openBlock as s, normalizeClass as u, normalizeStyle as r, withCtx as g, createElementBlock as f, Fragment as c, renderList as
|
|
1
|
+
import { defineComponent as e, ref as t, watch as i, computed as n, resolveComponent as o, createBlock as l, openBlock as s, normalizeClass as u, normalizeStyle as r, withCtx as g, createElementBlock as f, Fragment as c, renderList as a, reactive as m } from "vue";
|
|
2
2
|
import { useDraggable as p } from "vue-draggable-plus";
|
|
3
3
|
import d from "../../object-design.vue.js";
|
|
4
4
|
import { deepCopy as x, getUuidv4 as b } from "../../../../utils/common-util.js";
|
|
@@ -46,8 +46,8 @@ const O = e({ __name: "flex-design", props: { pageDesign: {}, configure: {}, ind
|
|
|
46
46
|
let t2 = W.configure.items;
|
|
47
47
|
const i2 = t2.indexOf(e3);
|
|
48
48
|
if (-1 == i2) return void alert("无可复制对象!");
|
|
49
|
-
const n2 =
|
|
50
|
-
n2.uuid = b(), y(n2), t2.splice(i2, 0, n2);
|
|
49
|
+
const n2 = m(x(e3));
|
|
50
|
+
n2.uuid = b(), y(n2, W.pageDesign), t2.splice(i2, 0, n2);
|
|
51
51
|
}
|
|
52
52
|
function w(e3) {
|
|
53
53
|
let t2 = W.configure.items;
|
|
@@ -55,7 +55,7 @@ const O = e({ __name: "flex-design", props: { pageDesign: {}, configure: {}, ind
|
|
|
55
55
|
}
|
|
56
56
|
return (e3, t2) => {
|
|
57
57
|
const i2 = o("el-row");
|
|
58
|
-
return s(), l(i2, { title: "flex", ref_key: "ambDragParent", ref: k, style: r([{ "min-height": "40px", "padding-bottom": "20px" }, h.value]), justify: _.value.flexJustify, align: _.value.alignItems, class: u([D.value, "amb-design-item-default"]) }, { default: g(() => [(s(true), f(c, null,
|
|
58
|
+
return s(), l(i2, { title: "flex", ref_key: "ambDragParent", ref: k, style: r([{ "min-height": "40px", "padding-bottom": "20px" }, h.value]), justify: _.value.flexJustify, align: _.value.alignItems, class: u([D.value, "amb-design-item-default"]) }, { default: g(() => [(s(true), f(c, null, a(e3.configure.items, (t3, i3) => (s(), l(d, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: F, onOnCustomAttrWidget: G, onOnCopy: S, onOnDelete: w }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))]), _: 1 }, 8, ["justify", "align", "style", "class"]);
|
|
59
59
|
};
|
|
60
60
|
} });
|
|
61
61
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as i, computed as n, resolveComponent as o, createElementBlock as l, openBlock as s, createVNode as r, normalizeClass as u, normalizeStyle as c, withCtx as g, createCommentVNode as
|
|
1
|
+
import { defineComponent as e, ref as t, watch as i, computed as n, resolveComponent as o, createElementBlock as l, openBlock as s, createVNode as r, normalizeClass as u, normalizeStyle as c, withCtx as g, createCommentVNode as a, toDisplayString as f, Fragment as m, renderList as p, createBlock as d, reactive as b } from "vue";
|
|
2
2
|
import { useDraggable as v } from "vue-draggable-plus";
|
|
3
3
|
import y from "../../object-design.vue.js";
|
|
4
4
|
import { deepCopy as O, getUuidv4 as h } from "../../../../utils/common-util.js";
|
|
5
5
|
import { caculateComponentStyle as j } from "../../../../utils/container-design-util.js";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
import { copyHandleEvents as W, deleteDesignItem as x } from "../../../../utils/page-design-util.js";
|
|
8
|
-
const
|
|
8
|
+
const D = { class: "amb-design-item-default" }, S = e({ __name: "form-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: S2 }) {
|
|
9
9
|
const _ = e2;
|
|
10
10
|
_.configure.items || (_.configure.items = []), null == _.configure.props && (_.configure.props = {}), _.configure.runtime || (_.configure.runtime = {});
|
|
11
11
|
const C = _.configure.default ? _.configure.default : {}, k = t({});
|
|
@@ -44,7 +44,7 @@ const S = { class: "amb-design-item-default" }, D = e({ __name: "form-design", p
|
|
|
44
44
|
N(), i(_.configure.style, () => {
|
|
45
45
|
N();
|
|
46
46
|
});
|
|
47
|
-
const P = t(null), { start: q } = v(P, _.configure.items, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: { name: "amb-assembly-item" }, animation: 300, ghostClass: "amb-item-ghost", forceFallback: true }), B =
|
|
47
|
+
const P = t(null), { start: q } = v(P, _.configure.items, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: { name: "amb-assembly-item" }, animation: 300, ghostClass: "amb-item-ghost", forceFallback: true }), B = S2;
|
|
48
48
|
function E(e3, t2) {
|
|
49
49
|
B("onSelectWidget", e3, t2);
|
|
50
50
|
}
|
|
@@ -55,7 +55,7 @@ const S = { class: "amb-design-item-default" }, D = e({ __name: "form-design", p
|
|
|
55
55
|
const t2 = _.configure.items.indexOf(e3);
|
|
56
56
|
if (-1 == t2) return void alert("无可复制对象!");
|
|
57
57
|
const i2 = b(O(e3));
|
|
58
|
-
i2.uuid = h(), W(i2), _.configure.items.splice(t2, 0, i2);
|
|
58
|
+
i2.uuid = h(), W(i2, _.pageDesign), _.configure.items.splice(t2, 0, i2);
|
|
59
59
|
}
|
|
60
60
|
function I(e3) {
|
|
61
61
|
const t2 = _.configure.items;
|
|
@@ -63,9 +63,9 @@ const S = { class: "amb-design-item-default" }, D = e({ __name: "form-design", p
|
|
|
63
63
|
}
|
|
64
64
|
return (e3, t2) => {
|
|
65
65
|
const i2 = o("el-form");
|
|
66
|
-
return s(), l("div",
|
|
66
|
+
return s(), l("div", D, [r(i2, { ref_key: "ambDragParent", ref: P, "label-width": k.value.labelWidth, "label-position": k.value.labelPosition, size: k.value.componentSize, style: c([z.value, { "padding-bottom": "40px" }]), class: u(A.value) }, { default: g(() => [k.value.formTitle ? (s(), l("div", { key: 0, class: "amb-widget-form-title", style: c(F.value) }, f(k.value.formTitle), 5)) : a("", true), (s(true), l(m, null, p(e3.configure.items, (t3, i3) => (s(), d(y, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: E, onOnCustomAttrWidget: G, onOnCopy: H, onOnDelete: I }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
|
|
67
67
|
};
|
|
68
68
|
} });
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
S as default
|
|
71
71
|
};
|
|
@@ -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-626f9a46"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -5,8 +5,8 @@ import { VueDraggable as O } from "vue-draggable-plus";
|
|
|
5
5
|
import V from "../../object-design.vue.js";
|
|
6
6
|
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
|
-
import { copyHandleEvents as
|
|
9
|
-
const
|
|
8
|
+
import { copyHandleEvents as D, deleteDesignItem as T } from "../../../../utils/page-design-util.js";
|
|
9
|
+
const _ = e({ __name: "tabs-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: _2 }) {
|
|
10
10
|
const k = e2;
|
|
11
11
|
k.configure.items || (k.configure.items = [{ label: "Tab1", index: 1, items: [] }, { label: "Tab2", index: 2, items: [] }]);
|
|
12
12
|
const C = t(1);
|
|
@@ -18,7 +18,7 @@ const D = e({ __name: "tabs-design", props: { pageDesign: {}, configure: {}, ind
|
|
|
18
18
|
U(), i(k.configure.style, () => {
|
|
19
19
|
U();
|
|
20
20
|
});
|
|
21
|
-
const w =
|
|
21
|
+
const w = _2;
|
|
22
22
|
function F(e3, t2) {
|
|
23
23
|
w("onSelectWidget", e3, t2);
|
|
24
24
|
}
|
|
@@ -33,16 +33,16 @@ const D = e({ __name: "tabs-design", props: { pageDesign: {}, configure: {}, ind
|
|
|
33
33
|
const t4 = n2.items.indexOf(e3);
|
|
34
34
|
if (t4 > -1) {
|
|
35
35
|
const i3 = b(W(e3));
|
|
36
|
-
return i3.uuid = j(),
|
|
36
|
+
return i3.uuid = j(), D(i3, k.pageDesign), void n2.items.splice(t4, 0, i3);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
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
|
+
T(i4, t4, t4.items && t4.items.length > 0, true);
|
|
44
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
|
+
_ as default
|
|
48
48
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, computed as n, watch as i, onMounted as o, onUnmounted as s, createElementBlock as u, openBlock as r, createElementVNode as l, normalizeStyle as g, normalizeClass as c, Fragment as f, renderList as p, createBlock as m, reactive as a } from "vue";
|
|
2
2
|
import { useDraggable as d } from "vue-draggable-plus";
|
|
3
|
-
import
|
|
4
|
-
import { deepCopy as
|
|
3
|
+
import v from "../../object-design.vue.js";
|
|
4
|
+
import { deepCopy as b, getUuidv4 as y } from "../../../../utils/common-util.js";
|
|
5
5
|
import { caculateComponentStyle as j } from "../../../../utils/container-design-util.js";
|
|
6
6
|
import "element-plus";
|
|
7
|
-
import { copyHandleEvents as
|
|
7
|
+
import { copyHandleEvents as h, deleteDesignItem as x } from "../../../../utils/page-design-util.js";
|
|
8
8
|
import { getInputTypeComponentNames as O } from "../../../../utils/assemblys-config.js";
|
|
9
9
|
const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({ __name: "tools-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: D2 }) {
|
|
10
10
|
const C = e2;
|
|
@@ -29,7 +29,7 @@ const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
i(S, (e3, t2) => {
|
|
32
|
-
e3.length > t2.length && z(
|
|
32
|
+
e3.length > t2.length && z(-1, e3[e3.length - 1]), "list" === C.pageDesign.pageType && (C.pageDesign.toolsInputComponents = [], _(e3));
|
|
33
33
|
}, { important: true, deep: true });
|
|
34
34
|
const N = t(null);
|
|
35
35
|
function R() {
|
|
@@ -62,14 +62,14 @@ const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({
|
|
|
62
62
|
let t2 = C.configure.items;
|
|
63
63
|
const n2 = t2.indexOf(e3);
|
|
64
64
|
if (-1 == n2) return void alert("无可复制对象!");
|
|
65
|
-
const i2 = a(
|
|
66
|
-
i2.uuid = y(),
|
|
65
|
+
const i2 = a(b(e3));
|
|
66
|
+
i2.uuid = y(), h(i2, C.pageDesign), t2.splice(n2 + 1, 0, i2);
|
|
67
67
|
}
|
|
68
68
|
function T(e3) {
|
|
69
69
|
let t2 = C.configure.items;
|
|
70
|
-
|
|
70
|
+
x(t2, e3, e3.items && e3.items.length > 0, true);
|
|
71
71
|
}
|
|
72
|
-
return (e3, t2) => (r(), u("div", W, [l("div", { class: c(["amb-widget-tools", w.value]), style: g(k.value), ref_key: "thisRef", ref: N }, [(r(true), u(f, null, p(e3.configure.items, (t3, n2) => (r(), m(
|
|
72
|
+
return (e3, t2) => (r(), u("div", W, [l("div", { class: c(["amb-widget-tools", w.value]), style: g(k.value), ref_key: "thisRef", ref: N }, [(r(true), u(f, null, p(e3.configure.items, (t3, n2) => (r(), m(v, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: z, onOnCustomAttrWidget: E, onOnCopy: F, onOnDelete: T }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))], 6)]));
|
|
73
73
|
} });
|
|
74
74
|
export {
|
|
75
75
|
D as default
|
|
@@ -2,7 +2,7 @@ import e from "./table-design.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const o = t(e, [["__scopeId", "data-v-
|
|
5
|
+
const o = t(e, [["__scopeId", "data-v-f6dbf7b2"]]);
|
|
6
6
|
export {
|
|
7
7
|
o as default
|
|
8
8
|
};
|
|
@@ -20,7 +20,7 @@ const B = { class: "amb-object-design-table-ref" }, P = { id: "tableDesignMenu",
|
|
|
20
20
|
z.configure.props.groupHeaders;
|
|
21
21
|
const q = o([]), X = o(), Y = o([]);
|
|
22
22
|
function A(e3, o2) {
|
|
23
|
-
N("onSelectWidget", e3, o2);
|
|
23
|
+
N("onSelectWidget", e3, o2, z.configure);
|
|
24
24
|
}
|
|
25
25
|
z.configure && function() {
|
|
26
26
|
const e3 = z.configure.tableSysCode ? z.configure.tableSysCode : z.pageDesign.systemCode, o2 = z.configure.tableSysVersion ? z.configure.tableSysVersion : z.pageDesign.systemVersion, n2 = z.configure.props.dataOrigin.tableName;
|
|
@@ -11,6 +11,7 @@ import T from "../component/variate-select.vue.js";
|
|
|
11
11
|
import "@element-plus/icons";
|
|
12
12
|
import "agilebuilder-ui/src/utils/request";
|
|
13
13
|
import { queryTableFields as S, tableResetConfigIndo as H } from "../../../../utils/page-table-util.js";
|
|
14
|
+
import "element-plus";
|
|
14
15
|
/* empty css */
|
|
15
16
|
import N from "../../common/common-i18n-key-input.vue.js";
|
|
16
17
|
import j from "../../form/common/hyperlink-mult-config.vue.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./data-origin.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(o, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(o, [["__scopeId", "data-v-307b2416"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|