epic-designer-gold 1.0.6 → 1.0.7
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/ETable-adkZzXhI.cjs +1 -0
- package/dist/ETable-ogvH56w7.js +50 -0
- package/dist/ETd-BCM7zA8V.cjs +1 -0
- package/dist/{row-DAy14ve9.js → ETd-CRUvOVnZ.js} +13 -13
- package/dist/ETr-BqGghav2.cjs +1 -0
- package/dist/ETr-nIjGkdzO.js +43 -0
- package/dist/attributeView-BCjRZKcy.cjs +1 -0
- package/dist/{attributeView-C_rnFDGo.js → attributeView-CcnkUeu9.js} +7 -7
- package/dist/axios-CXDYiOMX.js +1704 -0
- package/dist/axios-tuVKNgv9.cjs +6 -0
- package/dist/card-C9ua0f7r.cjs +1 -0
- package/dist/card-CI6L3YKU.js +33 -0
- package/dist/cell-AML-qIH9.cjs +1 -0
- package/dist/cell-B_q5hgzb.js +35 -0
- package/dist/col-C4lVVBzC.cjs +1 -0
- package/dist/col-DcVPBKEc.js +31 -0
- package/dist/core/components/builder/src/builder.vue.d.ts +2 -2
- package/dist/core/components/designer/src/modules/attributeView/eventView.vue.d.ts +2 -0
- package/dist/core/components/node/src/node.vue.d.ts +3 -2
- package/dist/core/extensions/EColumnEditor/columnItem.vue.d.ts +10 -0
- package/dist/core/extensions/EColumnEditor/index.vue.d.ts +18 -0
- package/dist/core/extensions/PaddingMarginControl/index.vue.d.ts +10 -0
- package/dist/eventView-5fa6mfSD.cjs +1 -0
- package/dist/eventView-C2wKhfU_.js +63 -0
- package/dist/{form-CthzLIgs.cjs → form-Bofkrmkd.cjs} +1 -1
- package/dist/{form-6cUK-Ari.js → form-VbfBmb63.js} +5 -5
- package/dist/iframe-CRF3GSRv.cjs +1 -0
- package/dist/iframe-Fgbk3vqJ.js +48 -0
- package/dist/index-0WmqAKuy.js +4 -0
- package/dist/index-5yjG3fiB.cjs +1 -0
- package/dist/{index-CoCyrWM2.js → index-B0OgKtuT.js} +72 -71
- package/dist/{index-DWxy0GSJ.js → index-B1s67XDZ.js} +11 -15
- package/dist/index-BEUYVwRA.cjs +1 -0
- package/dist/{index-DaJuXp0q.cjs → index-BHEw6RsQ.cjs} +1 -1
- package/dist/index-BHZbtFEF.cjs +1 -0
- package/dist/index-BU05X44j.cjs +1 -0
- package/dist/index-BY37Ndo7.cjs +10 -0
- package/dist/{index-BpROfyMH.cjs → index-BoL2PSBk.cjs} +1 -1
- package/dist/index-BvfkMKTv.cjs +1 -0
- package/dist/{index-Ce470l1n.js → index-BvvGezNc.js} +3 -3
- package/dist/{index-CeVV_SOj.js → index-BydHABbW.js} +3 -3
- package/dist/index-C2s4IuAR.cjs +1 -0
- package/dist/index-CCCx1tbF.cjs +1 -0
- package/dist/index-CD00bJyK.js +839 -0
- package/dist/{index-DpF9E6J8.js → index-CG0UEELU.js} +1 -1
- package/dist/index-CdnV7DS4.js +265 -0
- package/dist/{index-BfdYrl-Q.js → index-Cln9MN7u.js} +1 -1
- package/dist/index-CpBfljmg.cjs +1 -0
- package/dist/{index-BEMPXyNN.js → index-CpTA2IRB.js} +2 -2
- package/dist/index-CpevxZqj.cjs +1 -0
- package/dist/{index-AH-Lj15r.js → index-CraRg8wh.js} +6 -6
- package/dist/{index-cElDeAm2.js → index-Cx7gKpkD.js} +2 -2
- package/dist/index-DYQi05p8.cjs +1 -0
- package/dist/{index-P13z5c0g.js → index-E8jDNKrc.js} +3 -3
- package/dist/index-FgdbKgb5.cjs +1 -0
- package/dist/index-GIYb626z.js +1422 -0
- package/dist/{index-CFZioB1O.js → index-IGxCNti8.js} +48 -28
- package/dist/{index-DK4PrvRF.cjs → index-IPz4bbk7.cjs} +1 -1
- package/dist/index-R2r9Rw5O.cjs +1 -0
- package/dist/{index-DENcRmIy.js → index-WkZdU_zw.js} +2 -2
- package/dist/index-v2u1WTMm.cjs +1 -0
- package/dist/index-vCJWgHu-.js +142 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/modal-DCBqsiP2.cjs +1 -0
- package/dist/modal-DZRBS-Mt.js +58 -0
- package/dist/outline-BE98qFHQ.cjs +1 -0
- package/dist/{outline-DQ8wgGyH.js → outline-Ch5PHy3c.js} +2 -2
- package/dist/pluginManager-BCnrHPYv.js +660 -0
- package/dist/pluginManager-DWHAX8kP.cjs +1 -0
- package/dist/sign-BS-9u6is.cjs +1 -0
- package/dist/{sign-Dfqcv4Fg.js → sign-l63EYvVo.js} +21 -20
- package/dist/style.css +1 -1
- package/dist/styleView-Dhj1GDqf.js +140 -0
- package/dist/styleView-DocskQJQ.cjs +1 -0
- package/dist/tabPanel-CXZYMEwi.cjs +1 -0
- package/dist/{col-D4hvKfJ6.js → tabPanel-DAw7ENrC.js} +7 -7
- package/dist/table-75K2lqjD.js +65 -0
- package/dist/table-CN2LNWqY.cjs +1 -0
- package/dist/tabs-CYH9lAUk.cjs +1 -0
- package/dist/tabs-DCyifACM.js +41 -0
- package/dist/text-B92ioaoV.cjs +1 -0
- package/dist/text-C-b94tBH.js +47 -0
- package/dist/{tree.vue_vue_type_script_setup_true_lang-B-8wkdQS.js → tree.vue_vue_type_script_setup_true_lang-BsVyMb-n.js} +2 -2
- package/dist/tree.vue_vue_type_script_setup_true_lang-VGvT-OYl.cjs +1 -0
- package/dist/ui/elementPlus/ETable/ETable.d.ts +20 -0
- package/dist/ui/elementPlus/ETd/ETd.d.ts +20 -0
- package/dist/ui/elementPlus/ETr/ETr.d.ts +20 -0
- package/dist/ui/elementPlus/ETr/index.d.ts +3 -0
- package/dist/ui/elementPlus/iframe/iframe.d.ts +29 -0
- package/dist/ui/elementPlus/iframe/index.d.ts +3 -0
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +904 -403
- package/dist/ui/elementPlus/rate/index.d.ts +3 -0
- package/dist/ui/elementPlus/tab-panel/index.d.ts +3 -0
- package/dist/ui/elementPlus/table/table.d.ts +9 -0
- package/dist/ui/elementPlus/table-cell/index.d.ts +3 -0
- package/dist/ui/elementPlus/tabs/index.d.ts +2 -0
- package/dist/ui/elementPlus/tabs/tabs.d.ts +29 -0
- package/dist/ui/elementPlus/text/text.d.ts +9 -0
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +1 -1
- package/dist/uploadFile-pgvj4Lm9.cjs +1 -0
- package/dist/uploadFile-qCbXuHfd.js +81 -0
- package/dist/uploadImage-B3sOX-5F.cjs +1 -0
- package/dist/{uploadImage-B3tV49Mm.cjs → uploadImage-CNMsK4Lh.cjs} +1 -1
- package/dist/uploadImage-DQmVV0jl.js +121 -0
- package/dist/{uploadImage-Z6Y6KN1R.js → uploadImage-VFICaVgX.js} +1 -1
- package/package.json +1 -1
- package/dist/attributeView-CEFjPemt.cjs +0 -1
- package/dist/axios-B5oA4AjJ.cjs +0 -6
- package/dist/axios-awtfJhsA.js +0 -2362
- package/dist/card-BowzD9vN.cjs +0 -1
- package/dist/card-CNGNDzPp.js +0 -31
- package/dist/col-B1GUMkMK.cjs +0 -1
- package/dist/col-BNNn9Yx8.cjs +0 -1
- package/dist/col-u5YiB-UK.js +0 -41
- package/dist/index-B0rUZfG_.js +0 -742
- package/dist/index-BOUKAGKU.cjs +0 -1
- package/dist/index-B_BKVTct.cjs +0 -1
- package/dist/index-Ba8KVYrQ.cjs +0 -1
- package/dist/index-BnLI5N3M.cjs +0 -1
- package/dist/index-BxCrqMkz.cjs +0 -1
- package/dist/index-CBBK4Aze.cjs +0 -1
- package/dist/index-CDTcUcwY.cjs +0 -1
- package/dist/index-Cq5wbnmA.cjs +0 -1
- package/dist/index-D8olMR4m.cjs +0 -10
- package/dist/index-DfRZtELz.js +0 -4
- package/dist/index-J9twEwWw.cjs +0 -1
- package/dist/index-oMkqg9Zb.js +0 -1367
- package/dist/index-tR-Y01R8.cjs +0 -1
- package/dist/index-vzxiD3pz.cjs +0 -1
- package/dist/modal-BLOgN3us.cjs +0 -1
- package/dist/modal-UFu4bD6x.js +0 -57
- package/dist/outline-JJ0IbSzs.cjs +0 -1
- package/dist/row-BWnbt6dh.cjs +0 -1
- package/dist/sign-BBoshwS_.cjs +0 -1
- package/dist/styleView-CZEOSq2l.cjs +0 -1
- package/dist/styleView-CajgzMOm.js +0 -106
- package/dist/table-CnBJm7Bx.js +0 -43
- package/dist/table-DM2-xHlv.cjs +0 -1
- package/dist/text-C-52xLjs.js +0 -33
- package/dist/text-X9fl5oe8.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-BS6Anq-8.cjs +0 -1
- package/dist/uploadFile-BHn9oVA8.cjs +0 -1
- package/dist/uploadFile-D_0_6ghp.js +0 -77
- package/dist/uploadImage-4U4YGGfK.js +0 -96
- package/dist/uploadImage-C-OyUMFn.cjs +0 -1
- /package/dist/ui/elementPlus/{table-col → ETable}/index.d.ts +0 -0
- /package/dist/ui/elementPlus/{table-row → ETd}/index.d.ts +0 -0
- /package/dist/ui/elementPlus/{table-col/col.d.ts → tab-panel/tabPanel.d.ts} +0 -0
- /package/dist/ui/elementPlus/{table-row/row.d.ts → table-cell/cell.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, ref as p, onMounted as h, watch as v, nextTick as V, openBlock as _, createElementBlock as T } from "vue";
|
|
2
2
|
import * as a from "monaco-editor";
|
|
3
|
-
import { h as b } from "./index-
|
|
3
|
+
import { h as b } from "./index-GIYb626z.js";
|
|
4
4
|
import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const x = /* @__PURE__ */ g({
|
|
6
6
|
__name: "index",
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { defineComponent as W, onMounted as z, ref as b, openBlock as S, createElementBlock as j, createElementVNode as e, normalizeStyle as M, createVNode as V, unref as c } from "vue";
|
|
2
|
+
import { p as E } from "./pluginManager-BCnrHPYv.js";
|
|
3
|
+
import { u as q } from "./index-B1s67XDZ.js";
|
|
4
|
+
import { ElMessage as A } from "element-plus";
|
|
5
|
+
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const F = { class: "box-model-container" }, G = { class: "visual-box" }, H = { class: "margin-area" }, J = { class: "margin-btns" }, K = { class: "margin-input top" }, O = { class: "margin-input right" }, Q = { class: "margin-input bottom" }, T = { class: "margin-input left" }, X = { class: "border-area" }, Y = { class: "padding-area" }, Z = { class: "padding-btns" }, y = { class: "padding-input top" }, ll = { class: "padding-input right" }, tl = { class: "padding-input bottom" }, el = { class: "padding-input left" }, nl = /* @__PURE__ */ W({
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(L, { emit: P }) {
|
|
13
|
+
q();
|
|
14
|
+
const m = E.getComponent("input");
|
|
15
|
+
E.getComponent("select");
|
|
16
|
+
const i = L;
|
|
17
|
+
z(() => {
|
|
18
|
+
var a, l, t, u, p, g, s, d, v, f, x, C;
|
|
19
|
+
(a = i.modelValue) != null && a.padding ? o.value = $((l = i.modelValue) == null ? void 0 : l.padding) : (o.value.top = (t = i.modelValue) == null ? void 0 : t["padding-top"], o.value.right = (u = i.modelValue) == null ? void 0 : u["padding-right"], o.value.bottom = (p = i.modelValue) == null ? void 0 : p["padding-bottom"], o.value.left = (g = i.modelValue) == null ? void 0 : g["padding-left"]), (s = i.modelValue) != null && s.margin ? n.value = $((d = i.modelValue) == null ? void 0 : d.margin) : (n.value.top = (v = i.modelValue) == null ? void 0 : v["margin-top"], n.value.right = (f = i.modelValue) == null ? void 0 : f["margin-right"], n.value.bottom = (x = i.modelValue) == null ? void 0 : x["margin-bottom"], n.value.left = (C = i.modelValue) == null ? void 0 : C["margin-left"]);
|
|
20
|
+
});
|
|
21
|
+
function I() {
|
|
22
|
+
n.value.left = null, n.value.top = null, n.value.right = null, n.value.bottom = null, h("update:modelValue", {
|
|
23
|
+
...i.modelValue,
|
|
24
|
+
"margin-left": null,
|
|
25
|
+
"margin-top": null,
|
|
26
|
+
"margin-right": null,
|
|
27
|
+
"margin-bottom": null
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
const k = b(!1), U = b(!1);
|
|
31
|
+
function N() {
|
|
32
|
+
k.value = !k.value;
|
|
33
|
+
}
|
|
34
|
+
function _() {
|
|
35
|
+
U.value = !U.value;
|
|
36
|
+
}
|
|
37
|
+
function w() {
|
|
38
|
+
o.value.left = null, o.value.top = null, o.value.right = null, o.value.bottom = null, h("update:modelValue", {
|
|
39
|
+
...i.modelValue,
|
|
40
|
+
"padding-left": null,
|
|
41
|
+
"padding-top": null,
|
|
42
|
+
"padding-right": null,
|
|
43
|
+
"padding-bottom": null
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function r(a, l, t) {
|
|
47
|
+
const u = a.target.value.trim();
|
|
48
|
+
if (!u) return;
|
|
49
|
+
if (["px", "%", "vw", "vh", "rem", "em", "pt"].some((d) => u.endsWith(d))) {
|
|
50
|
+
B(l, t, u, a.target.value);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (/^\d+$/.test(u)) {
|
|
54
|
+
const d = u + "px";
|
|
55
|
+
a.target.value = d, B(l, t, d, a.target.value);
|
|
56
|
+
} else
|
|
57
|
+
R(a, l, t);
|
|
58
|
+
}
|
|
59
|
+
function B(a, l, t, u) {
|
|
60
|
+
const p = a === "padding", g = p ? U.value : k.value, s = p ? o : n;
|
|
61
|
+
if (!g)
|
|
62
|
+
s.value[l] = t, h("update:modelValue", {
|
|
63
|
+
...i.modelValue,
|
|
64
|
+
[`${a}-${l}`]: u
|
|
65
|
+
});
|
|
66
|
+
else {
|
|
67
|
+
const d = ["left", "right", "top", "bottom"];
|
|
68
|
+
d.forEach((f) => {
|
|
69
|
+
s.value[f] = t;
|
|
70
|
+
});
|
|
71
|
+
const v = d.reduce(
|
|
72
|
+
(f, x) => ({
|
|
73
|
+
...f,
|
|
74
|
+
[`${a}-${x}`]: u
|
|
75
|
+
}),
|
|
76
|
+
{}
|
|
77
|
+
);
|
|
78
|
+
h("update:modelValue", {
|
|
79
|
+
...i.modelValue,
|
|
80
|
+
...v
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function R(a, l, t) {
|
|
85
|
+
a.target.value = "";
|
|
86
|
+
const u = l === "padding", p = u ? U.value : k.value, g = u ? o : n;
|
|
87
|
+
if (!p)
|
|
88
|
+
g.value[t] = "", h("update:modelValue", {
|
|
89
|
+
...i.modelValue,
|
|
90
|
+
[`${l}-${t}`]: null
|
|
91
|
+
});
|
|
92
|
+
else {
|
|
93
|
+
const s = ["left", "right", "top", "bottom"];
|
|
94
|
+
s.forEach((v) => {
|
|
95
|
+
g.value[v] = null;
|
|
96
|
+
});
|
|
97
|
+
const d = s.reduce(
|
|
98
|
+
(v, f) => ({
|
|
99
|
+
...v,
|
|
100
|
+
[`${l}-${f}`]: null
|
|
101
|
+
}),
|
|
102
|
+
{}
|
|
103
|
+
);
|
|
104
|
+
h("update:modelValue", {
|
|
105
|
+
...i.modelValue,
|
|
106
|
+
...d
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
A.info("请输入有效值(数字或带单位的值)");
|
|
110
|
+
}
|
|
111
|
+
function $(a) {
|
|
112
|
+
const l = a.split(/\s+/);
|
|
113
|
+
return l.length === 1 ? {
|
|
114
|
+
top: l[0],
|
|
115
|
+
right: l[0],
|
|
116
|
+
bottom: l[0],
|
|
117
|
+
left: l[0]
|
|
118
|
+
} : l.length === 2 ? {
|
|
119
|
+
top: l[0],
|
|
120
|
+
right: l[1],
|
|
121
|
+
bottom: l[0],
|
|
122
|
+
left: l[1]
|
|
123
|
+
} : l.length === 3 ? {
|
|
124
|
+
top: l[0],
|
|
125
|
+
right: l[1],
|
|
126
|
+
bottom: l[2],
|
|
127
|
+
left: l[1]
|
|
128
|
+
} : l.length === 4 ? {
|
|
129
|
+
top: l[0],
|
|
130
|
+
right: l[1],
|
|
131
|
+
bottom: l[2],
|
|
132
|
+
left: l[3]
|
|
133
|
+
} : null;
|
|
134
|
+
}
|
|
135
|
+
const n = b({
|
|
136
|
+
top: null,
|
|
137
|
+
right: null,
|
|
138
|
+
bottom: null,
|
|
139
|
+
left: null
|
|
140
|
+
});
|
|
141
|
+
b({
|
|
142
|
+
width: null,
|
|
143
|
+
style: "solid",
|
|
144
|
+
color: "#3498db"
|
|
145
|
+
});
|
|
146
|
+
const o = b({
|
|
147
|
+
top: null,
|
|
148
|
+
right: null,
|
|
149
|
+
bottom: null,
|
|
150
|
+
left: null
|
|
151
|
+
}), h = P;
|
|
152
|
+
return b(null), b("px"), (a, l) => (S(), j("div", F, [
|
|
153
|
+
e("div", G, [
|
|
154
|
+
e("div", H, [
|
|
155
|
+
l[18] || (l[18] = e("div", { class: "margin-title" }, "外边距", -1)),
|
|
156
|
+
e("div", J, [
|
|
157
|
+
e("span", {
|
|
158
|
+
title: "同时修改每个方向外边距",
|
|
159
|
+
style: M({
|
|
160
|
+
color: k.value ? "#016bf3" : ""
|
|
161
|
+
}),
|
|
162
|
+
onClick: N,
|
|
163
|
+
class: "icon iconfont icon--epic icon--epic--links-fill"
|
|
164
|
+
}, null, 4),
|
|
165
|
+
e("span", {
|
|
166
|
+
title: "清空外边距",
|
|
167
|
+
onClick: I,
|
|
168
|
+
class: "icon iconfont icon--epic icon--epic--delete-bin-line"
|
|
169
|
+
})
|
|
170
|
+
]),
|
|
171
|
+
e("div", K, [
|
|
172
|
+
V(c(m), {
|
|
173
|
+
modelValue: n.value.top,
|
|
174
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => n.value.top = t),
|
|
175
|
+
min: "0",
|
|
176
|
+
onBlur: l[1] || (l[1] = (t) => r(t, "margin", "top"))
|
|
177
|
+
}, null, 8, ["modelValue"])
|
|
178
|
+
]),
|
|
179
|
+
e("div", O, [
|
|
180
|
+
V(c(m), {
|
|
181
|
+
modelValue: n.value.right,
|
|
182
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => n.value.right = t),
|
|
183
|
+
min: "0",
|
|
184
|
+
onBlur: l[3] || (l[3] = (t) => r(t, "margin", "right"))
|
|
185
|
+
}, null, 8, ["modelValue"])
|
|
186
|
+
]),
|
|
187
|
+
e("div", Q, [
|
|
188
|
+
V(c(m), {
|
|
189
|
+
modelValue: n.value.bottom,
|
|
190
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => n.value.bottom = t),
|
|
191
|
+
min: "0",
|
|
192
|
+
onBlur: l[5] || (l[5] = (t) => r(t, "margin", "bottom"))
|
|
193
|
+
}, null, 8, ["modelValue"])
|
|
194
|
+
]),
|
|
195
|
+
e("div", T, [
|
|
196
|
+
V(c(m), {
|
|
197
|
+
modelValue: n.value.left,
|
|
198
|
+
"onUpdate:modelValue": l[6] || (l[6] = (t) => n.value.left = t),
|
|
199
|
+
min: "0",
|
|
200
|
+
onBlur: l[7] || (l[7] = (t) => r(t, "margin", "left"))
|
|
201
|
+
}, null, 8, ["modelValue"])
|
|
202
|
+
]),
|
|
203
|
+
e("div", X, [
|
|
204
|
+
e("div", Y, [
|
|
205
|
+
l[16] || (l[16] = e("div", { class: "padding-title" }, "内边距", -1)),
|
|
206
|
+
e("div", Z, [
|
|
207
|
+
e("span", {
|
|
208
|
+
onClick: _,
|
|
209
|
+
title: "同时修改每个方向内边距",
|
|
210
|
+
style: M({
|
|
211
|
+
color: U.value ? "#016bf3" : ""
|
|
212
|
+
}),
|
|
213
|
+
class: "icon iconfont icon--epic icon--epic--links-fill"
|
|
214
|
+
}, null, 4),
|
|
215
|
+
e("span", {
|
|
216
|
+
title: "清空内边距",
|
|
217
|
+
onClick: w,
|
|
218
|
+
class: "icon iconfont icon--epic icon--epic--delete-bin-line"
|
|
219
|
+
})
|
|
220
|
+
]),
|
|
221
|
+
e("div", y, [
|
|
222
|
+
V(c(m), {
|
|
223
|
+
modelValue: o.value.top,
|
|
224
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => o.value.top = t),
|
|
225
|
+
min: "0",
|
|
226
|
+
onBlur: l[9] || (l[9] = (t) => r(t, "padding", "top"))
|
|
227
|
+
}, null, 8, ["modelValue"])
|
|
228
|
+
]),
|
|
229
|
+
e("div", ll, [
|
|
230
|
+
V(c(m), {
|
|
231
|
+
modelValue: o.value.right,
|
|
232
|
+
"onUpdate:modelValue": l[10] || (l[10] = (t) => o.value.right = t),
|
|
233
|
+
min: "0",
|
|
234
|
+
onBlur: l[11] || (l[11] = (t) => r(t, "padding", "right"))
|
|
235
|
+
}, null, 8, ["modelValue"])
|
|
236
|
+
]),
|
|
237
|
+
e("div", tl, [
|
|
238
|
+
V(c(m), {
|
|
239
|
+
modelValue: o.value.bottom,
|
|
240
|
+
"onUpdate:modelValue": l[12] || (l[12] = (t) => o.value.bottom = t),
|
|
241
|
+
min: "0",
|
|
242
|
+
onBlur: l[13] || (l[13] = (t) => r(t, "padding", "bottom"))
|
|
243
|
+
}, null, 8, ["modelValue"])
|
|
244
|
+
]),
|
|
245
|
+
e("div", el, [
|
|
246
|
+
V(c(m), {
|
|
247
|
+
modelValue: o.value.left,
|
|
248
|
+
"onUpdate:modelValue": l[14] || (l[14] = (t) => o.value.left = t),
|
|
249
|
+
min: "0",
|
|
250
|
+
onBlur: l[15] || (l[15] = (t) => r(t, "padding", "left"))
|
|
251
|
+
}, null, 8, ["modelValue"])
|
|
252
|
+
]),
|
|
253
|
+
l[17] || (l[17] = e("div", { class: "content-area" }, [
|
|
254
|
+
e("div", { class: "content-controls" }, " content ")
|
|
255
|
+
], -1))
|
|
256
|
+
])
|
|
257
|
+
])
|
|
258
|
+
])
|
|
259
|
+
])
|
|
260
|
+
]));
|
|
261
|
+
}
|
|
262
|
+
}), sl = /* @__PURE__ */ D(nl, [["__scopeId", "data-v-539d5450"]]);
|
|
263
|
+
export {
|
|
264
|
+
sl as default
|
|
265
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, inject as B, openBlock as t, createElementBlock as s, Fragment as C, renderList as y, unref as n, createCommentVNode as h, createBlock as w, createElementVNode as r, withModifiers as f, toDisplayString as x, ref as g, computed as S, shallowRef as H, createVNode as k, normalizeClass as v, resolveDynamicComponent as R } from "vue";
|
|
2
|
-
import { p as $ } from "./
|
|
2
|
+
import { p as $ } from "./pluginManager-BCnrHPYv.js";
|
|
3
3
|
import { _ as M } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
4
4
|
const V = { class: "epic-breadcrumb pl-4 py-2 truncate h-40px flex items-center" }, j = {
|
|
5
5
|
key: 0,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("./pluginManager-DWHAX8kP.cjs"),_=require("./index-BY37Ndo7.cjs"),w=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),k=require("./index-BoL2PSBk.cjs"),B=[{label:"string",value:"string"},{label:"number",value:"number"},{label:"boolean",value:"boolean"},{label:"method",value:"method"},{label:"regexp",value:"regexp"},{label:"integer",value:"integer"},{label:"float",value:"float"},{label:"array",value:"array"},{label:"object",value:"object"},{label:"date",value:"date"},{label:"url",value:"url"},{label:"hex",value:"hex"},{label:"email",value:"email"},{label:"any",value:"any"}],x=[{label:"change",value:"change"},{label:"blur",value:"blur"}],f=["string","number","url","array","email"],E={class:"rule-item-main bg-white m-t-2 p-2 rounded border border-solid border-gray-200 hover:border-primary transition-all relative"},q={key:0,class:"flex m-t-2 first:m-0"},C=["title"],N={class:"epic-attr-input"},P=e.defineComponent({__name:"ERuleItem",props:{rule:{}},emits:["change","delete","update:rule"],setup(v,{emit:g}){const{t:l}=k.useLocale(),s=g,c=v,n=e.computed({get(){return c.rule},set(t){s("update:rule",t)}}),i=e.inject("pageManager",{}),r=e.computed(()=>Object.entries(i.funcs.value).filter(([t,p])=>typeof p=="function").map(([t])=>({label:t,value:t}))),h=[{type:"select",label:l("validationTrigger"),model:"trigger",componentProps:{options:x,placeholder:l("validationTrigger"),multiple:!0,mode:"multiple"}},{type:"switch",label:l("customRule"),model:"isValidator"},{type:"select",label:l("validationFunction"),model:"validator",show(){return!!n.value.isValidator},componentProps:{options:r.value,placeholder:l("validationFunction")}},{type:"select",label:l("type"),model:"type",show(){return!n.value.isValidator},componentProps:{options:B,placeholder:l("type")}},{type:"input",label:l("regexValidation"),model:"pattern",show(){return!n.value.isValidator},componentProps:{placeholder:l("regexValidation")}},{type:"number",label:l("fieldLength"),model:"len",show(){return f.includes(n.value.type??"")},componentProps:{min:0,placeholder:l("fieldLength")}},{type:"number",label:l("minLength"),model:"min",show(){return f.includes(n.value.type??"")},componentProps:{min:0,placeholder:l("minLength")}},{type:"number",label:l("maxLength"),model:"max",show(){return f.includes(n.value.type??"")},componentProps:{min:0,placeholder:l("maxLength")}},{type:"input",label:l("validationMessage"),model:"message",componentProps:{placeholder:l("validationMessage")}}];function a(){const t=n.value;t.isValidator?(delete t.type,delete t.pattern,delete t.len,delete t.min,delete t.max):delete t.validator,s("change",t)}function b(){s("delete")}return(t,p)=>(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,(o,V)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:V},[!o.show||o.show()?(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("div",{class:"epic-attr-label",title:e.unref(l)("validationTrigger")},e.toDisplayString(o.label),9,C),e.createElementVNode("div",N,[e.createVNode(e.unref(_._sfc_main),{modelValue:n.value[o.model],"onUpdate:modelValue":u=>n.value[o.model]=u,componentSchema:{...o,noFormItem:!0},onChange:a},null,8,["modelValue","onUpdate:modelValue","componentSchema"])])])):e.createCommentVNode("",!0)],64))),64)),e.createElementVNode("div",{class:"rule-btn-delete absolute top-0 text-md right-0 transition-all w-24px h-24px cursor-pointer rounded-bl-2 flex justify-center items-center color-white",onClick:b},[e.createVNode(e.unref(w._sfc_main),{name:"icon--epic--delete-outline-rounded"})])]))}}),L={class:"rule-item-main m-t-2 p-2 rounded border border-solid transition-all relative"},T={key:0,class:"flex m-t-2 first:m-0"},M={class:"epic-attr-label"},F={class:"flex-1"},U=e.defineComponent({__name:"index",props:{ruleType:{type:String,default:"string"},modelValue:{type:Array,default:void 0}},emits:["update:modelValue"],setup(v,{emit:g}){const{t:l}=k.useLocale(),s=y.pluginManager.getComponent("button"),c=v,n=g,i=_.useVModel(c,"modelValue",n),r=e.ref({required:!1,message:l("required"),type:c.ruleType,trigger:["change"]}),h=[{type:"switch",label:l("required"),model:"required"},{type:"select",label:l("validationTrigger"),model:"trigger",show(){return!!r.value.required},componentProps:{options:x,placeholder:l("validationTrigger"),multiple:!0,mode:"multiple"}},{type:"select",label:l("type"),model:"type",show(){return!!r.value.required},componentProps:{options:B,placeholder:l("type")}},{type:"input",label:l("validationMessage"),model:"message",show(){return!!r.value.required},componentProps:{placeholder:l("validationMessage")}}],a=e.ref([]);e.watchEffect(()=>{i.value&&(a.value=[],i.value.forEach(o=>{typeof o.required<"u"?r.value=o:a.value.push(o)}))});function b(){a.value.push({message:"",type:c.ruleType,trigger:["change"]}),t()}function t(){if(r.value.required){i.value=y.deepClone([...a.value,r.value]);return}if(a.value.length){i.value=y.deepClone(a.value);return}i.value=void 0}function p(o){a.value.splice(o,1),t()}return(o,V)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,(u,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[!u.show||u.show()?(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",M,e.toDisplayString(u.label),1),e.createElementVNode("div",F,[e.createVNode(e.unref(_._sfc_main),{modelValue:r.value[u.model],"onUpdate:modelValue":m=>r.value[u.model]=m,componentSchema:{...u,noFormItem:!0},onChange:t},null,8,["modelValue","onUpdate:modelValue","componentSchema"])])])):e.createCommentVNode("",!0)],64))),64))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,d)=>(e.openBlock(),e.createBlock(P,{key:d,rule:a.value[d],"onUpdate:rule":m=>a.value[d]=m,onDelete:m=>p(d),onChange:t},null,8,["rule","onUpdate:rule","onDelete"]))),128)),e.createVNode(e.unref(s),{class:"m-t-2",onClick:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("addRule")),1)]),_:1})]))}});exports.default=U;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, computed as k, openBlock as a, createElementBlock as l, Fragment as y, renderList as C, createVNode as r, unref as s, createElementVNode as c, createCommentVNode as U, toDisplayString as P } from "vue";
|
|
2
|
-
import { p as b, g as E } from "./
|
|
2
|
+
import { p as b, g as E } from "./pluginManager-BCnrHPYv.js";
|
|
3
3
|
import { _ as N } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
4
|
-
import { u as x } from "./index-
|
|
4
|
+
import { u as x } from "./index-B1s67XDZ.js";
|
|
5
5
|
const D = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "epic-del-btn"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./pluginManager-DWHAX8kP.cjs"),g=require("./index-BoL2PSBk.cjs"),b=e.defineComponent({__name:"index",props:{modelValue:{}},emits:["update:modelValue"],setup(p,{emit:v}){const{t:i}=g.useLocale(),s=r.pluginManager.getComponent("input"),d=r.pluginManager.getComponent("select"),m=p,c=v,l=e.ref(null),t=e.ref("px"),f=[{label:"px",value:"px"},{label:"%",value:"%"},{label:"vw",value:"vw"},{label:"vh",value:"vh"},{label:"rem",value:"rem"},{label:"em",value:"em"},{label:"pt",value:"pt"}];e.watch(()=>m.modelValue,n=>{if(!n)return;if(typeof n=="number"){l.value=String(n),t.value="px";return}const u=parseFloat(n);if(isNaN(u))return l.value=null,!1;const a=/^(\d+(\.\d+)?)(px|%|vw|vh|rem|em|pt){1}$/,o=n.trim().match(a);l.value=(o==null?void 0:o[1])??null,t.value=(o==null?void 0:o[3])??""},{immediate:!0}),e.watch(()=>t.value+l.value,()=>{x()});function x(){e.nextTick(()=>c("update:modelValue",l.value?l.value+t.value:void 0))}return(n,u)=>(e.openBlock(),e.createBlock(e.unref(s),{class:"epic-input-size",modelValue:l.value,"onUpdate:modelValue":u[2]||(u[2]=a=>l.value=a),value:l.value,"onUpdate:value":u[3]||(u[3]=a=>l.value=a),type:"number",min:"0",placeholder:e.unref(i)("pleaseEnter")},{suffix:e.withCtx(()=>[e.createVNode(e.unref(d),{value:t.value,"onUpdate:value":u[0]||(u[0]=a=>t.value=a),modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=a=>t.value=a),style:{width:"68px"},options:f},null,8,["value","modelValue"])]),_:1},8,["modelValue","value","placeholder"]))}});exports.default=b;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as F, inject as r, ref as V, computed as h, openBlock as v, createElementBlock as f, createElementVNode as n, createVNode as p, unref as l, withCtx as N, Fragment as M, renderList as j, normalizeClass as L, toDisplayString as g, mergeProps as
|
|
1
|
+
import { defineComponent as F, inject as r, ref as V, computed as h, openBlock as v, createElementBlock as f, createElementVNode as n, createVNode as p, unref as l, withCtx as N, Fragment as M, renderList as j, normalizeClass as L, toDisplayString as g, mergeProps as A, withDirectives as G, vShow as q } from "vue";
|
|
2
2
|
import { d as H } from "./vuedraggable.umd-D2S7Eo7p.js";
|
|
3
|
-
import { p as d,
|
|
3
|
+
import { p as d, h as B, o as J } from "./pluginManager-BCnrHPYv.js";
|
|
4
4
|
import { _ as I } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
-
import { u as K, a as O } from "./index-
|
|
5
|
+
import { u as K, a as O } from "./index-B1s67XDZ.js";
|
|
6
6
|
const Q = { class: "epic-component-view flex flex-col" }, R = { class: "epic-search-box px-10px py-6px" }, W = { class: "flex flex-1 overflow-auto" }, X = { class: "epic-tabs-box" }, Y = ["title", "onClick"], Z = { class: "h-full flex-1 overflow-auto py-2 box-border" }, ee = ["onClick"], te = ["title"], ie = /* @__PURE__ */ F({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(oe) {
|
|
@@ -65,7 +65,7 @@ const Q = { class: "epic-component-view flex flex-col" }, R = { class: "epic-sea
|
|
|
65
65
|
}, g(e.title), 11, Y))), 128))
|
|
66
66
|
]),
|
|
67
67
|
n("div", Z, [
|
|
68
|
-
p(l(H),
|
|
68
|
+
p(l(H), A({
|
|
69
69
|
modelValue: u.value,
|
|
70
70
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => u.value = e)
|
|
71
71
|
}, {
|
|
@@ -94,8 +94,8 @@ const Q = { class: "epic-component-view flex flex-col" }, R = { class: "epic-sea
|
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
96
96
|
}, 16, ["modelValue", "clone"]),
|
|
97
|
-
|
|
98
|
-
[
|
|
97
|
+
G(n("div", { class: "text-center pt-42px text-gray-400" }, g(l(c)("noComponentFound")), 513), [
|
|
98
|
+
[q, !u.value.length]
|
|
99
99
|
])
|
|
100
100
|
])
|
|
101
101
|
])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, ref as p, watch as r, nextTick as w, openBlock as U, createBlock as y, unref as o, withCtx as C, createVNode as k } from "vue";
|
|
2
|
-
import { p as v } from "./
|
|
3
|
-
import { u as N } from "./index-
|
|
2
|
+
import { p as v } from "./pluginManager-BCnrHPYv.js";
|
|
3
|
+
import { u as N } from "./index-B1s67XDZ.js";
|
|
4
4
|
const A = /* @__PURE__ */ g({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),U=require("./pluginManager-DWHAX8kP.cjs"),L=require("./index-BoL2PSBk.cjs"),I=require("element-plus"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={class:"box-model-container"},w={class:"visual-box"},z={class:"margin-area"},R={class:"margin-btns"},W={class:"margin-input top"},j={class:"margin-input right"},y={class:"margin-input bottom"},H={class:"margin-input left"},O={class:"border-area"},T={class:"padding-area"},A={class:"padding-btns"},D={class:"padding-input top"},F={class:"padding-input right"},G={class:"padding-input bottom"},J={class:"padding-input left"},K=l.defineComponent({__name:"index",props:{modelValue:{}},emits:["update:modelValue"],setup(x,{emit:B}){L.useLocale();const r=U.pluginManager.getComponent("input");U.pluginManager.getComponent("select");const a=x;l.onMounted(()=>{var i,e,t,u,g,p,s,d,c,V,N,k;(i=a.modelValue)!=null&&i.padding?o.value=h((e=a.modelValue)==null?void 0:e.padding):(o.value.top=(t=a.modelValue)==null?void 0:t["padding-top"],o.value.right=(u=a.modelValue)==null?void 0:u["padding-right"],o.value.bottom=(g=a.modelValue)==null?void 0:g["padding-bottom"],o.value.left=(p=a.modelValue)==null?void 0:p["padding-left"]),(s=a.modelValue)!=null&&s.margin?n.value=h((d=a.modelValue)==null?void 0:d.margin):(n.value.top=(c=a.modelValue)==null?void 0:c["margin-top"],n.value.right=(V=a.modelValue)==null?void 0:V["margin-right"],n.value.bottom=(N=a.modelValue)==null?void 0:N["margin-bottom"],n.value.left=(k=a.modelValue)==null?void 0:k["margin-left"])});function $(){n.value.left=null,n.value.top=null,n.value.right=null,n.value.bottom=null,f("update:modelValue",{...a.modelValue,"margin-left":null,"margin-top":null,"margin-right":null,"margin-bottom":null})}const v=l.ref(!1),b=l.ref(!1);function M(){v.value=!v.value}function C(){b.value=!b.value}function P(){o.value.left=null,o.value.top=null,o.value.right=null,o.value.bottom=null,f("update:modelValue",{...a.modelValue,"padding-left":null,"padding-top":null,"padding-right":null,"padding-bottom":null})}function m(i,e,t){const u=i.target.value.trim();if(!u)return;if(["px","%","vw","vh","rem","em","pt"].some(d=>u.endsWith(d))){E(e,t,u,i.target.value);return}if(/^\d+$/.test(u)){const d=u+"px";i.target.value=d,E(e,t,d,i.target.value)}else q(i,e,t)}function E(i,e,t,u){const g=i==="padding",p=g?b.value:v.value,s=g?o:n;if(!p)s.value[e]=t,f("update:modelValue",{...a.modelValue,[`${i}-${e}`]:u});else{const d=["left","right","top","bottom"];d.forEach(V=>{s.value[V]=t});const c=d.reduce((V,N)=>({...V,[`${i}-${N}`]:u}),{});f("update:modelValue",{...a.modelValue,...c})}}function q(i,e,t){i.target.value="";const u=e==="padding",g=u?b.value:v.value,p=u?o:n;if(!g)p.value[t]="",f("update:modelValue",{...a.modelValue,[`${e}-${t}`]:null});else{const s=["left","right","top","bottom"];s.forEach(c=>{p.value[c]=null});const d=s.reduce((c,V)=>({...c,[`${e}-${V}`]:null}),{});f("update:modelValue",{...a.modelValue,...d})}I.ElMessage.info("请输入有效值(数字或带单位的值)")}function h(i){const e=i.split(/\s+/);return e.length===1?{top:e[0],right:e[0],bottom:e[0],left:e[0]}:e.length===2?{top:e[0],right:e[1],bottom:e[0],left:e[1]}:e.length===3?{top:e[0],right:e[1],bottom:e[2],left:e[1]}:e.length===4?{top:e[0],right:e[1],bottom:e[2],left:e[3]}:null}const n=l.ref({top:null,right:null,bottom:null,left:null});l.ref({width:null,style:"solid",color:"#3498db"});const o=l.ref({top:null,right:null,bottom:null,left:null}),f=B;return l.ref(null),l.ref("px"),(i,e)=>(l.openBlock(),l.createElementBlock("div",_,[l.createElementVNode("div",w,[l.createElementVNode("div",z,[e[18]||(e[18]=l.createElementVNode("div",{class:"margin-title"},"外边距",-1)),l.createElementVNode("div",R,[l.createElementVNode("span",{title:"同时修改每个方向外边距",style:l.normalizeStyle({color:v.value?"#016bf3":""}),onClick:M,class:"icon iconfont icon--epic icon--epic--links-fill"},null,4),l.createElementVNode("span",{title:"清空外边距",onClick:$,class:"icon iconfont icon--epic icon--epic--delete-bin-line"})]),l.createElementVNode("div",W,[l.createVNode(l.unref(r),{modelValue:n.value.top,"onUpdate:modelValue":e[0]||(e[0]=t=>n.value.top=t),min:"0",onBlur:e[1]||(e[1]=t=>m(t,"margin","top"))},null,8,["modelValue"])]),l.createElementVNode("div",j,[l.createVNode(l.unref(r),{modelValue:n.value.right,"onUpdate:modelValue":e[2]||(e[2]=t=>n.value.right=t),min:"0",onBlur:e[3]||(e[3]=t=>m(t,"margin","right"))},null,8,["modelValue"])]),l.createElementVNode("div",y,[l.createVNode(l.unref(r),{modelValue:n.value.bottom,"onUpdate:modelValue":e[4]||(e[4]=t=>n.value.bottom=t),min:"0",onBlur:e[5]||(e[5]=t=>m(t,"margin","bottom"))},null,8,["modelValue"])]),l.createElementVNode("div",H,[l.createVNode(l.unref(r),{modelValue:n.value.left,"onUpdate:modelValue":e[6]||(e[6]=t=>n.value.left=t),min:"0",onBlur:e[7]||(e[7]=t=>m(t,"margin","left"))},null,8,["modelValue"])]),l.createElementVNode("div",O,[l.createElementVNode("div",T,[e[16]||(e[16]=l.createElementVNode("div",{class:"padding-title"},"内边距",-1)),l.createElementVNode("div",A,[l.createElementVNode("span",{onClick:C,title:"同时修改每个方向内边距",style:l.normalizeStyle({color:b.value?"#016bf3":""}),class:"icon iconfont icon--epic icon--epic--links-fill"},null,4),l.createElementVNode("span",{title:"清空内边距",onClick:P,class:"icon iconfont icon--epic icon--epic--delete-bin-line"})]),l.createElementVNode("div",D,[l.createVNode(l.unref(r),{modelValue:o.value.top,"onUpdate:modelValue":e[8]||(e[8]=t=>o.value.top=t),min:"0",onBlur:e[9]||(e[9]=t=>m(t,"padding","top"))},null,8,["modelValue"])]),l.createElementVNode("div",F,[l.createVNode(l.unref(r),{modelValue:o.value.right,"onUpdate:modelValue":e[10]||(e[10]=t=>o.value.right=t),min:"0",onBlur:e[11]||(e[11]=t=>m(t,"padding","right"))},null,8,["modelValue"])]),l.createElementVNode("div",G,[l.createVNode(l.unref(r),{modelValue:o.value.bottom,"onUpdate:modelValue":e[12]||(e[12]=t=>o.value.bottom=t),min:"0",onBlur:e[13]||(e[13]=t=>m(t,"padding","bottom"))},null,8,["modelValue"])]),l.createElementVNode("div",J,[l.createVNode(l.unref(r),{modelValue:o.value.left,"onUpdate:modelValue":e[14]||(e[14]=t=>o.value.left=t),min:"0",onBlur:e[15]||(e[15]=t=>m(t,"padding","left"))},null,8,["modelValue"])]),e[17]||(e[17]=l.createElementVNode("div",{class:"content-area"},[l.createElementVNode("div",{class:"content-controls"}," content ")],-1))])])])])]))}}),Q=S._export_sfc(K,[["__scopeId","data-v-539d5450"]]);exports.default=Q;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as L, computed as C, inject as D, openBlock as n, createElementBlock as i, Fragment as g, renderList as k, createElementVNode as p, unref as c, toDisplayString as q, createVNode as y, createCommentVNode as M, ref as T, watchEffect as E, createBlock as F, withCtx as O, createTextVNode as I } from "vue";
|
|
2
|
-
import { p as N, a as B } from "./
|
|
3
|
-
import { _ as U, g as A } from "./index-
|
|
2
|
+
import { p as N, a as B } from "./pluginManager-BCnrHPYv.js";
|
|
3
|
+
import { _ as U, g as A } from "./index-GIYb626z.js";
|
|
4
4
|
import { _ as z } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
-
import { u as $ } from "./index-
|
|
5
|
+
import { u as $ } from "./index-B1s67XDZ.js";
|
|
6
6
|
const R = [
|
|
7
7
|
{ label: "string", value: "string" },
|
|
8
8
|
{ label: "number", value: "number" },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./pluginManager-DWHAX8kP.cjs"),g=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),k=require("./index-BoL2PSBk.cjs"),V={key:0,class:"epic-del-btn"},f=["onClick"],h=e.defineComponent({__name:"index",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(r,{emit:u}){const{t:s}=k.useLocale(),d=c.pluginManager.getComponent("number"),p=r,i=u,o=e.computed({get(){return p.modelValue},set(n){i("update:modelValue",n)}});function m(){const n={type:"col",children:[],componentProps:{span:12},id:c.getUUID()};o.value.push(n)}function _(n){o.value=o.value.filter((v,t)=>n!==t)}return(n,v)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(t,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"EColEditor-item"},[e.createVNode(e.unref(d),{value:t.componentProps.span,"onUpdate:value":l=>t.componentProps.span=l,modelValue:t.componentProps.span,"onUpdate:modelValue":l=>t.componentProps.span=l,style:{width:"100%"},min:1,max:24},null,8,["value","onUpdate:value","modelValue","onUpdate:modelValue"]),o.value.length>1?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("span",{onClick:l=>_(a)},[e.createVNode(e.unref(g._sfc_main),{name:"icon--epic--trash"})],8,f)])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{class:"add-btn",onClick:m},e.toDisplayString(e.unref(s)("add")),1)]))}});exports.default=h;
|