officialblock 2.1.2 → 2.1.4
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/index-B6j0X2Lr.js +238 -0
- package/dist/{index-DPl0MPya.js → index-BKRx_iRp.js} +1 -1
- package/dist/{index-rYdlY3SQ.mjs → index-BV0x6vvQ.mjs} +70 -74
- package/dist/index-CGSapgmv.js +1 -0
- package/dist/index-CHtKRsLb.js +1 -0
- package/dist/{index-BX3wo2uq.js → index-Ccs5hKrE.js} +1 -1
- package/dist/index-CsgE49Db.js +1 -0
- package/dist/{index-Cn6a6HhI.mjs → index-Cy3iTANw.mjs} +61 -46
- package/dist/index-DOH-93hD.mjs +642 -0
- package/dist/index-DRljdCDQ.js +1 -0
- package/dist/index-DgzgL-lS.js +1 -0
- package/dist/{index-Btjp_XdI.mjs → index-DhC37fx9.mjs} +1 -1
- package/dist/index-DkpI5YTy.mjs +542 -0
- package/dist/index-mXDfSi-N.mjs +68494 -0
- package/dist/index-nON0HtKg.mjs +4 -0
- package/dist/index-uBmOSCy-.mjs +609 -0
- package/dist/official-block.cjs.js +1 -1
- package/dist/official-block.es.js +101 -93
- package/dist/official-block.umd.js +223 -5
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/dist/index-CClVOzrU.js +0 -20
- package/dist/index-C_3-HeV5.js +0 -1
- package/dist/index-Chue7s0-.mjs +0 -31274
- package/dist/index-CmerRdhn.mjs +0 -4
- package/dist/index-Cu03Azf6.js +0 -1
- package/dist/index-DCXncMaQ.mjs +0 -4
- package/dist/index-DRMApk01.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-B6j0X2Lr.js");exports.default=e.b;
|
|
@@ -1,60 +1,56 @@
|
|
|
1
|
-
import { defineComponent as G, defineAsyncComponent as J, resolveComponent as k, createBlock as U, openBlock as O, withCtx as y, createElementVNode as i, createVNode as
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
|
-
}
|
|
7
|
-
var R = "Expected a function", A = NaN, se = "[object Symbol]", ie = /^\s+|\s+$/g, re = /^[-+]0x[0-9a-f]+$/i, de = /^0b[01]+$/i, ue = /^0o[0-7]+$/i, fe = parseInt, ce = typeof I == "object" && I && I.Object === Object && I, me = typeof self == "object" && self && self.Object === Object && self, pe = ce || me || Function("return this")(), ve = Object.prototype, ye = ve.toString, ge = Math.max, be = Math.min, N = function() {
|
|
8
|
-
return pe.Date.now();
|
|
1
|
+
import { defineComponent as G, defineAsyncComponent as J, resolveComponent as k, createBlock as U, openBlock as O, withCtx as y, createElementVNode as i, createVNode as p, createTextVNode as w, toDisplayString as X, ref as C, computed as V, onMounted as q, nextTick as K, onBeforeUnmount as Q, createElementBlock as M, createCommentVNode as B, normalizeStyle as L, normalizeClass as H, Fragment as Y, renderList as Z } from "vue";
|
|
2
|
+
import { g as ee, c as I, P as te, _ as z, i as ne, a as le, O as ae, r as oe } from "./index-mXDfSi-N.mjs";
|
|
3
|
+
var R = "Expected a function", A = NaN, se = "[object Symbol]", ie = /^\s+|\s+$/g, re = /^[-+]0x[0-9a-f]+$/i, de = /^0b[01]+$/i, ue = /^0o[0-7]+$/i, fe = parseInt, ce = typeof I == "object" && I && I.Object === Object && I, me = typeof self == "object" && self && self.Object === Object && self, ve = ce || me || Function("return this")(), pe = Object.prototype, ye = pe.toString, ge = Math.max, be = Math.min, N = function() {
|
|
4
|
+
return ve.Date.now();
|
|
9
5
|
};
|
|
10
6
|
function we(e, o, l) {
|
|
11
|
-
var c, f, t, m, d, r,
|
|
7
|
+
var c, f, t, m, d, r, v = 0, h = !1, u = !1, S = !0;
|
|
12
8
|
if (typeof e != "function")
|
|
13
9
|
throw new TypeError(R);
|
|
14
|
-
o = W(o) || 0, E(l) && (
|
|
15
|
-
function
|
|
16
|
-
var g = c,
|
|
17
|
-
return c = f = void 0,
|
|
10
|
+
o = W(o) || 0, E(l) && (h = !!l.leading, u = "maxWait" in l, t = u ? ge(W(l.maxWait) || 0, o) : t, S = "trailing" in l ? !!l.trailing : S);
|
|
11
|
+
function T(a) {
|
|
12
|
+
var g = c, j = f;
|
|
13
|
+
return c = f = void 0, v = a, m = e.apply(j, g), m;
|
|
18
14
|
}
|
|
19
15
|
function _(a) {
|
|
20
|
-
return
|
|
16
|
+
return v = a, d = setTimeout(b, o), h ? T(a) : m;
|
|
21
17
|
}
|
|
22
|
-
function
|
|
23
|
-
var g = a - r,
|
|
24
|
-
return u ? be(D, t -
|
|
18
|
+
function F(a) {
|
|
19
|
+
var g = a - r, j = a - v, D = o - g;
|
|
20
|
+
return u ? be(D, t - j) : D;
|
|
25
21
|
}
|
|
26
22
|
function P(a) {
|
|
27
|
-
var g = a - r,
|
|
28
|
-
return r === void 0 || g >= o || g < 0 || u &&
|
|
23
|
+
var g = a - r, j = a - v;
|
|
24
|
+
return r === void 0 || g >= o || g < 0 || u && j >= t;
|
|
29
25
|
}
|
|
30
26
|
function b() {
|
|
31
27
|
var a = N();
|
|
32
28
|
if (P(a))
|
|
33
29
|
return n(a);
|
|
34
|
-
d = setTimeout(b,
|
|
30
|
+
d = setTimeout(b, F(a));
|
|
35
31
|
}
|
|
36
32
|
function n(a) {
|
|
37
|
-
return d = void 0,
|
|
33
|
+
return d = void 0, S && c ? T(a) : (c = f = void 0, m);
|
|
38
34
|
}
|
|
39
35
|
function s() {
|
|
40
|
-
d !== void 0 && clearTimeout(d),
|
|
36
|
+
d !== void 0 && clearTimeout(d), v = 0, c = r = f = d = void 0;
|
|
41
37
|
}
|
|
42
38
|
function $() {
|
|
43
39
|
return d === void 0 ? m : n(N());
|
|
44
40
|
}
|
|
45
|
-
function
|
|
41
|
+
function x() {
|
|
46
42
|
var a = N(), g = P(a);
|
|
47
43
|
if (c = arguments, f = this, r = a, g) {
|
|
48
44
|
if (d === void 0)
|
|
49
45
|
return _(r);
|
|
50
46
|
if (u)
|
|
51
|
-
return d = setTimeout(b, o),
|
|
47
|
+
return d = setTimeout(b, o), T(r);
|
|
52
48
|
}
|
|
53
49
|
return d === void 0 && (d = setTimeout(b, o)), m;
|
|
54
50
|
}
|
|
55
|
-
return
|
|
51
|
+
return x.cancel = s, x.flush = $, x;
|
|
56
52
|
}
|
|
57
|
-
function
|
|
53
|
+
function Ve(e, o, l) {
|
|
58
54
|
var c = !0, f = !0;
|
|
59
55
|
if (typeof e != "function")
|
|
60
56
|
throw new TypeError(R);
|
|
@@ -68,16 +64,16 @@ function E(e) {
|
|
|
68
64
|
var o = typeof e;
|
|
69
65
|
return !!e && (o == "object" || o == "function");
|
|
70
66
|
}
|
|
71
|
-
function
|
|
67
|
+
function he(e) {
|
|
72
68
|
return !!e && typeof e == "object";
|
|
73
69
|
}
|
|
74
|
-
function
|
|
75
|
-
return typeof e == "symbol" ||
|
|
70
|
+
function xe(e) {
|
|
71
|
+
return typeof e == "symbol" || he(e) && ye.call(e) == se;
|
|
76
72
|
}
|
|
77
73
|
function W(e) {
|
|
78
74
|
if (typeof e == "number")
|
|
79
75
|
return e;
|
|
80
|
-
if (
|
|
76
|
+
if (xe(e))
|
|
81
77
|
return A;
|
|
82
78
|
if (E(e)) {
|
|
83
79
|
var o = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -89,8 +85,8 @@ function W(e) {
|
|
|
89
85
|
var l = de.test(e);
|
|
90
86
|
return l || ue.test(e) ? fe(e.slice(2), l ? 2 : 8) : re.test(e) ? A : +e;
|
|
91
87
|
}
|
|
92
|
-
var
|
|
93
|
-
const Oe = /* @__PURE__ */
|
|
88
|
+
var Ce = Ve;
|
|
89
|
+
const Oe = /* @__PURE__ */ ee(Ce), Se = { class: "setting-content" }, Te = { class: "setting-header flex items-center" }, je = { class: "setting-header flex items-center" }, ke = { class: "setting-header flex items-center" }, Pe = { class: "setting-header flex items-center" }, $e = { class: "setting-body" }, He = { class: "setting-item" }, Ie = { class: "components-content" }, Ee = /* @__PURE__ */ G({
|
|
94
90
|
__name: "setting",
|
|
95
91
|
props: {
|
|
96
92
|
show: {
|
|
@@ -110,8 +106,8 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
110
106
|
l("update:show", !1);
|
|
111
107
|
};
|
|
112
108
|
return (f, t) => {
|
|
113
|
-
const m = k("a-switch"), d = k("a-input"), r = k("a-option"),
|
|
114
|
-
return O(), U(
|
|
109
|
+
const m = k("a-switch"), d = k("a-input"), r = k("a-option"), v = k("a-select"), h = k("a-drawer");
|
|
110
|
+
return O(), U(h, {
|
|
115
111
|
width: "60%",
|
|
116
112
|
visible: e.show,
|
|
117
113
|
footer: !1,
|
|
@@ -122,17 +118,17 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
122
118
|
w(X(e.data.type) + "组件编辑 ", 1)
|
|
123
119
|
]),
|
|
124
120
|
default: y(() => [
|
|
125
|
-
i("div",
|
|
126
|
-
i("div",
|
|
121
|
+
i("div", Se, [
|
|
122
|
+
i("div", Te, [
|
|
127
123
|
t[5] || (t[5] = i("span", { class: "header-title" }, "仅显示PC端", -1)),
|
|
128
|
-
|
|
124
|
+
p(m, {
|
|
129
125
|
modelValue: e.data.onlyShowPc,
|
|
130
126
|
"onUpdate:modelValue": t[0] || (t[0] = (u) => e.data.onlyShowPc = u)
|
|
131
127
|
}, null, 8, ["modelValue"])
|
|
132
128
|
]),
|
|
133
|
-
i("div",
|
|
129
|
+
i("div", je, [
|
|
134
130
|
t[6] || (t[6] = i("span", { class: "header-title" }, "标题", -1)),
|
|
135
|
-
|
|
131
|
+
p(d, {
|
|
136
132
|
modelValue: e.data.title,
|
|
137
133
|
"onUpdate:modelValue": t[1] || (t[1] = (u) => e.data.title = u),
|
|
138
134
|
placeholder: "请输入标题",
|
|
@@ -141,32 +137,32 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
141
137
|
]),
|
|
142
138
|
i("div", ke, [
|
|
143
139
|
t[11] || (t[11] = i("span", { class: "header-title" }, "组件宽度", -1)),
|
|
144
|
-
v
|
|
140
|
+
p(v, {
|
|
145
141
|
modelValue: e.data.width,
|
|
146
142
|
"onUpdate:modelValue": t[2] || (t[2] = (u) => e.data.width = u),
|
|
147
143
|
placeholder: "请选择",
|
|
148
144
|
"allow-clear": ""
|
|
149
145
|
}, {
|
|
150
146
|
default: y(() => [
|
|
151
|
-
|
|
147
|
+
p(r, { value: "default" }, {
|
|
152
148
|
default: y(() => [...t[7] || (t[7] = [
|
|
153
149
|
w("默认", -1)
|
|
154
150
|
])]),
|
|
155
151
|
_: 1
|
|
156
152
|
}),
|
|
157
|
-
|
|
153
|
+
p(r, { value: "small" }, {
|
|
158
154
|
default: y(() => [...t[8] || (t[8] = [
|
|
159
155
|
w("小", -1)
|
|
160
156
|
])]),
|
|
161
157
|
_: 1
|
|
162
158
|
}),
|
|
163
|
-
|
|
159
|
+
p(r, { value: "medium" }, {
|
|
164
160
|
default: y(() => [...t[9] || (t[9] = [
|
|
165
161
|
w("中", -1)
|
|
166
162
|
])]),
|
|
167
163
|
_: 1
|
|
168
164
|
}),
|
|
169
|
-
|
|
165
|
+
p(r, { value: "max" }, {
|
|
170
166
|
default: y(() => [...t[10] || (t[10] = [
|
|
171
167
|
w("大", -1)
|
|
172
168
|
])]),
|
|
@@ -178,20 +174,20 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
178
174
|
]),
|
|
179
175
|
i("div", Pe, [
|
|
180
176
|
t[14] || (t[14] = i("span", { class: "header-title" }, "Opened by default", -1)),
|
|
181
|
-
v
|
|
177
|
+
p(v, {
|
|
182
178
|
modelValue: e.data.openFirst,
|
|
183
179
|
"onUpdate:modelValue": t[3] || (t[3] = (u) => e.data.openFirst = u),
|
|
184
180
|
placeholder: "请选择",
|
|
185
181
|
"allow-clear": ""
|
|
186
182
|
}, {
|
|
187
183
|
default: y(() => [
|
|
188
|
-
|
|
184
|
+
p(r, { value: !0 }, {
|
|
189
185
|
default: y(() => [...t[12] || (t[12] = [
|
|
190
186
|
w("yes", -1)
|
|
191
187
|
])]),
|
|
192
188
|
_: 1
|
|
193
189
|
}),
|
|
194
|
-
|
|
190
|
+
p(r, { value: !1 }, {
|
|
195
191
|
default: y(() => [...t[13] || (t[13] = [
|
|
196
192
|
w("No", -1)
|
|
197
193
|
])]),
|
|
@@ -207,7 +203,7 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
207
203
|
], -1)),
|
|
208
204
|
i("div", He, [
|
|
209
205
|
i("div", Ie, [
|
|
210
|
-
|
|
206
|
+
p(te, {
|
|
211
207
|
data: e.data.data,
|
|
212
208
|
onUpdate: t[4] || (t[4] = (u) => e.data.data = u)
|
|
213
209
|
}, null, 8, ["data"])
|
|
@@ -220,7 +216,7 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
220
216
|
}, 8, ["visible"]);
|
|
221
217
|
};
|
|
222
218
|
}
|
|
223
|
-
}), _e = /* @__PURE__ */ z(Ee, [["__scopeId", "data-v-23474794"]]),
|
|
219
|
+
}), _e = /* @__PURE__ */ z(Ee, [["__scopeId", "data-v-23474794"]]), Fe = { class: "collapse-custom__wrapper" }, Me = ["innerHTML"], Be = { class: "collapse-custom__content__wrapper" }, Ne = { class: "component-wrapper" }, Ue = {
|
|
224
220
|
__name: "index",
|
|
225
221
|
props: {
|
|
226
222
|
modelValue: {
|
|
@@ -236,32 +232,32 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
236
232
|
},
|
|
237
233
|
emits: ["update:modelValue", "handleDelete", "handleCopy", "handlePaste"],
|
|
238
234
|
setup(e, { emit: o }) {
|
|
239
|
-
const l = e, c = o, f =
|
|
235
|
+
const l = e, c = o, f = C(null), t = C(0), m = C(!1), d = C(null), r = C(!1), v = C(!1), h = V(() => {
|
|
240
236
|
var n;
|
|
241
237
|
return ((n = l.modelValue) == null ? void 0 : n.classes) ?? "";
|
|
242
|
-
}), u =
|
|
238
|
+
}), u = V(() => {
|
|
243
239
|
var n;
|
|
244
240
|
return ((n = l.modelValue) == null ? void 0 : n.style) ?? "";
|
|
245
241
|
});
|
|
246
|
-
|
|
242
|
+
V(() => {
|
|
247
243
|
var n;
|
|
248
244
|
return (n = l.modelValue) == null ? void 0 : n.width;
|
|
249
245
|
});
|
|
250
|
-
const
|
|
246
|
+
const S = V(() => {
|
|
251
247
|
var n;
|
|
252
248
|
return ((n = l.modelValue) == null ? void 0 : n.title) ?? [];
|
|
253
|
-
}),
|
|
249
|
+
}), T = V(() => {
|
|
254
250
|
var n;
|
|
255
251
|
return ((n = l.modelValue) == null ? void 0 : n.openFirst) ?? !1;
|
|
256
|
-
}), _ =
|
|
252
|
+
}), _ = V(() => {
|
|
257
253
|
var n, s;
|
|
258
254
|
return !((n = l.modelValue) != null && n.data) || !Array.isArray(l.modelValue.data) ? [] : (s = l.modelValue) == null ? void 0 : s.data;
|
|
259
|
-
}),
|
|
255
|
+
}), F = () => {
|
|
260
256
|
var s;
|
|
261
257
|
if (l.modelValue && l.modelValue.data)
|
|
262
258
|
return;
|
|
263
259
|
const n = {
|
|
264
|
-
id: ((s = l.modelValue) == null ? void 0 : s.id) ||
|
|
260
|
+
id: ((s = l.modelValue) == null ? void 0 : s.id) || oe(),
|
|
265
261
|
//componentKey
|
|
266
262
|
type: "CollapseCustom",
|
|
267
263
|
onlyShowPc: !1,
|
|
@@ -275,34 +271,34 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
275
271
|
data: []
|
|
276
272
|
};
|
|
277
273
|
c("update:modelValue", n);
|
|
278
|
-
}, P =
|
|
274
|
+
}, P = V(() => {
|
|
279
275
|
var n;
|
|
280
|
-
return l.isPreview ? !((n = l.modelValue) != null && n.onlyShowPc) || !
|
|
276
|
+
return l.isPreview ? !((n = l.modelValue) != null && n.onlyShowPc) || !ne() : !0;
|
|
281
277
|
}), b = () => {
|
|
282
278
|
const n = f.value;
|
|
283
279
|
n && (t.value = n.scrollHeight);
|
|
284
280
|
};
|
|
285
281
|
return q(() => {
|
|
286
|
-
m.value =
|
|
282
|
+
m.value = T.value, K(b);
|
|
287
283
|
const n = Oe(() => {
|
|
288
284
|
b();
|
|
289
285
|
}, 250);
|
|
290
286
|
d.value = new ResizeObserver(n), d.value.observe(f.value);
|
|
291
287
|
}), Q(() => {
|
|
292
288
|
f.value && d.value && d.value.unobserve(f.value);
|
|
293
|
-
}),
|
|
294
|
-
var $,
|
|
295
|
-
return P.value ? (O(),
|
|
289
|
+
}), F(), (n, s) => {
|
|
290
|
+
var $, x;
|
|
291
|
+
return P.value ? (O(), M("div", {
|
|
296
292
|
key: 0,
|
|
297
|
-
class: H(["collapse-custom",
|
|
293
|
+
class: H(["collapse-custom", h.value]),
|
|
298
294
|
style: L(u.value),
|
|
299
295
|
onMouseover: s[4] || (s[4] = (a) => r.value = !0),
|
|
300
296
|
onMouseout: s[5] || (s[5] = (a) => r.value = !1)
|
|
301
297
|
}, [
|
|
302
298
|
i("div", {
|
|
303
|
-
class: H(["collapse-custom_container", [($ = e.modelValue) != null && $.width ? `container-content-${(
|
|
299
|
+
class: H(["collapse-custom_container", [($ = e.modelValue) != null && $.width ? `container-content-${(x = e.modelValue) == null ? void 0 : x.width}` : "container-content"]])
|
|
304
300
|
}, [
|
|
305
|
-
i("div",
|
|
301
|
+
i("div", Fe, [
|
|
306
302
|
i("button", {
|
|
307
303
|
type: "button",
|
|
308
304
|
class: H(["collapse-custom__btn", { "--is-collapsed": !m.value }]),
|
|
@@ -310,8 +306,8 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
310
306
|
}, [
|
|
311
307
|
i("h4", {
|
|
312
308
|
class: "collapse-custom__btn__title",
|
|
313
|
-
innerHTML:
|
|
314
|
-
}, null, 8,
|
|
309
|
+
innerHTML: S.value
|
|
310
|
+
}, null, 8, Me),
|
|
315
311
|
s[6] || (s[6] = i("span", { class: "collapse-custom__btn__icon" }, null, -1))
|
|
316
312
|
], 2),
|
|
317
313
|
i("div", {
|
|
@@ -321,12 +317,12 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
321
317
|
style: L({ "--scroll-height": `${t.value}px` })
|
|
322
318
|
}, [
|
|
323
319
|
i("div", Be, [
|
|
324
|
-
(O(!0),
|
|
320
|
+
(O(!0), M(Y, null, Z(_.value, (a, g) => (O(), M("div", {
|
|
325
321
|
key: a.id,
|
|
326
322
|
class: "page-item"
|
|
327
323
|
}, [
|
|
328
324
|
i("div", Ne, [
|
|
329
|
-
|
|
325
|
+
p(le, {
|
|
330
326
|
type: a.type,
|
|
331
327
|
"props-data": { modelValue: a }
|
|
332
328
|
}, null, 8, ["type", "props-data"])
|
|
@@ -335,11 +331,11 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
335
331
|
])
|
|
336
332
|
], 6)
|
|
337
333
|
]),
|
|
338
|
-
e.isPreview ? B("", !0) : (O(), U(
|
|
334
|
+
e.isPreview ? B("", !0) : (O(), U(ae, {
|
|
339
335
|
key: 0,
|
|
340
336
|
show: r.value,
|
|
341
337
|
"onUpdate:show": s[1] || (s[1] = (a) => r.value = a),
|
|
342
|
-
onHandleEdit: s[2] || (s[2] = (a) =>
|
|
338
|
+
onHandleEdit: s[2] || (s[2] = (a) => v.value = !0),
|
|
343
339
|
onHandleDelete: n.handleDelete,
|
|
344
340
|
onHandleCopy: n.handleCopy,
|
|
345
341
|
onHandlePaste: n.handlePaste,
|
|
@@ -348,8 +344,8 @@ const Oe = /* @__PURE__ */ oe(xe), Te = { class: "setting-content" }, je = { cla
|
|
|
348
344
|
], 2),
|
|
349
345
|
e.isPreview ? B("", !0) : (O(), U(_e, {
|
|
350
346
|
key: 0,
|
|
351
|
-
show:
|
|
352
|
-
"onUpdate:show": s[3] || (s[3] = (a) =>
|
|
347
|
+
show: v.value,
|
|
348
|
+
"onUpdate:show": s[3] || (s[3] = (a) => v.value = a),
|
|
353
349
|
data: e.modelValue
|
|
354
350
|
}, null, 8, ["show", "data"]))
|
|
355
351
|
], 38)) : B("", !0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-B6j0X2Lr.js"),h={class:"setting-content"},C={class:"setting-header flex items-center"},E={class:"setting-header flex items-center"},N={class:"setting-header flex items-center"},x={class:"setting-header flex items-center"},P={class:"setting-header flex items-center"},B={class:"setting-header flex items-center"},S={class:"preview-container"},z=["src"],I={key:1,class:"no-preview"},$={class:"setting-body"},H={class:"setting-item"},U={class:"components-content"},D=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(o,{emit:g}){const n=o,u=e.ref([{id:"preset-1",name:"YCCECE Background 1",image:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-01.svg",size:"cover",position:"center center"},{id:"preset-2",name:"YCCECE Background 2",image:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-02.svg",size:"",position:""},{id:"preset-3",name:"YCCECE Background 3",image:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-03.svg",size:"cover",position:""},{id:"preset-4",name:"YCCECE Background 4",image:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-04.svg",size:"cover",position:""}]),c=e.ref(),r=u.value.find(s=>s.image===n.data.backgroundImage);c.value=r?r.id:"";const m=()=>{const s=u.value.find(a=>a.id===c.value);s&&(n.data.backgroundImage=`${s.image}`,n.data.backgroundSize=s.size,n.data.backgroundPosition=s.position)},v=g,k=()=>{v("update:show",!1)};return(s,a)=>{const V=e.resolveComponent("a-switch"),y=e.resolveComponent("a-option"),b=e.resolveComponent("a-select"),w=e.resolveComponent("a-button"),p=e.resolveComponent("a-input"),f=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(f,{width:"60%",visible:o.show,footer:!1,onCancel:k,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",h,[e.createElementVNode("div",C,[a[6]||(a[6]=e.createElementVNode("span",{class:"header-title"},"仅显示PC端",-1)),e.createVNode(V,{modelValue:o.data.onlyShowPc,"onUpdate:modelValue":a[0]||(a[0]=t=>o.data.onlyShowPc=t)},null,8,["modelValue"])]),e.createElementVNode("div",E,[a[8]||(a[8]=e.createElementVNode("span",{class:"header-title"},"Background Preset",-1)),e.createVNode(b,{modelValue:c.value,"onUpdate:modelValue":a[1]||(a[1]=t=>c.value=t),style:{width:"300px","margin-right":"8px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,t=>(e.openBlock(),e.createBlock(y,{value:t.id,key:t.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(w,{type:"primary",onClick:m},{default:e.withCtx(()=>[...a[7]||(a[7]=[e.createTextVNode("Apply",-1)])]),_:1})]),e.createElementVNode("div",N,[a[9]||(a[9]=e.createElementVNode("span",{class:"header-title"},"Image",-1)),e.createVNode(p,{modelValue:o.data.backgroundImage,"onUpdate:modelValue":a[2]||(a[2]=t=>o.data.backgroundImage=t),disabled:!0,placeholder:"图片路径",style:{width:"300px"}},null,8,["modelValue"])]),e.createElementVNode("div",x,[a[10]||(a[10]=e.createElementVNode("span",{class:"header-title"},"Size",-1)),e.createVNode(p,{modelValue:o.data.backgroundSize,"onUpdate:modelValue":a[3]||(a[3]=t=>o.data.backgroundSize=t),disabled:!0,placeholder:"尺寸",style:{width:"300px"}},null,8,["modelValue"])]),e.createElementVNode("div",P,[a[11]||(a[11]=e.createElementVNode("span",{class:"header-title"},"Position",-1)),e.createVNode(p,{modelValue:o.data.backgroundPosition,"onUpdate:modelValue":a[4]||(a[4]=t=>o.data.backgroundPosition=t),disabled:!0,placeholder:"位置",style:{width:"300px"}},null,8,["modelValue"])]),e.createElementVNode("div",B,[a[13]||(a[13]=e.createElementVNode("span",{class:"header-title"},"Preview",-1)),e.createElementVNode("div",S,[o.data.backgroundImage?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.data.backgroundImage,style:e.normalizeStyle({"object-fit":o.data.backgroundSize||"cover","background-position":o.data.backgroundPosition||"center center",width:"100%",height:"100px",border:"1px solid #ddd"}),alt:"Background Preview"},null,12,z)):(e.openBlock(),e.createElementBlock("div",I,"No preview available")),a[12]||(a[12]=e.createElementVNode("p",{class:"preview-note"}," A light grey background has been applied for previewing and will not be reflected on website. ",-1))])]),e.createElementVNode("div",$,[a[14]||(a[14]=e.createElementVNode("div",{class:"setting-toolbar"},[e.createElementVNode("h4",null,"组件")],-1)),e.createElementVNode("div",H,[e.createElementVNode("div",U,[e.createVNode(i.P,{data:o.data.data,onUpdate:a[5]||(a[5]=t=>o.data.data=t)},null,8,["data"])])])])])]),_:1},8,["visible"])}}}),O=i._(D,[["__scopeId","data-v-f43efd7b"]]),T={class:"component-wrapper"},j={__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(o,{emit:g}){const n=o,u=g,c=e.computed(()=>{var t,l;return!((t=n.modelValue)!=null&&t.data)||!Array.isArray(n.modelValue.data)?[]:(l=n.modelValue)==null?void 0:l.data}),r=e.ref(!1),m=e.ref(!1),v=()=>{var l,d;if(n.modelValue&&n.modelValue.data)return;const t={id:((l=n.modelValue)==null?void 0:l.id)||i.r(),type:"BackgroundWrapper",onlyShowPc:!1,backgroundImage:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-01.svg",backgroundSize:"cover",backgroundPosition:"center center",data:[{id:((d=n.modelValue)==null?void 0:d.id)||i.r(),type:"CustomText",onlyShowPc:!1,data:{width:1920,backgroundColor:"#ffffff",title:"这是标题",description:"这是描述"}}]};u("update:modelValue",t)},k=e.computed(()=>{var t;return n.isPreview?!((t=n.modelValue)!=null&&t.onlyShowPc)||!i.i():!0}),s=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.classes)??null}),a=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.style)??null}),V=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.width)??null}),y=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundImage)??""}),b=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundColor)??"transparent"}),w=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundSize)??"contain"}),p=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundPosition)??"center"}),f=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundRepeat)??"no-repeat"});return v(),(t,l)=>k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["background-wrapper",s.value]),style:e.normalizeStyle(a.value)},[e.createElementVNode("div",{class:e.normalizeClass(V.value),style:{position:"relative"},onMouseover:l[2]||(l[2]=d=>r.value=!0),onMouseout:l[3]||(l[3]=d=>r.value=!1)},[e.createElementVNode("div",{class:"background-wrapper__bg",style:e.normalizeStyle({"background-image":`url('${y.value}')`,"background-color":`${b.value}`,"background-size":`${w.value}`,"background-position":`${p.value}`,"background-repeat":`${f.value}`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(d,Y)=>(e.openBlock(),e.createElementBlock("div",{key:d.id,class:"page-item"},[e.createElementVNode("div",T,[e.createVNode(i.a,{type:d.type,"props-data":{modelValue:d}},null,8,["type","props-data"])])]))),128))],4),o.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.O,{key:0,show:r.value,"onUpdate:show":l[0]||(l[0]=d=>r.value=d),onHandleEdit:l[1]||(l[1]=d=>m.value=!0),onHandleDelete:t.handleDelete,onHandleCopy:t.handleCopy,onHandlePaste:t.handlePaste},null,8,["show","onHandleDelete","onHandleCopy","onHandlePaste"]))],34),o.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,show:m.value,"onUpdate:show":l[4]||(l[4]=d=>m.value=d),data:o.modelValue},null,8,["show","data"]))],6)):e.createCommentVNode("",!0)}},A=i._(j,[["__scopeId","data-v-e3f5b699"]]);exports.default=A;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var q=Object.create;var j=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var X=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var Q=(a,f,y,g)=>{if(f&&typeof f=="object"||typeof f=="function")for(let w of Y(f))!G.call(a,w)&&w!==y&&j(a,w,{get:()=>f[w],enumerable:!(g=K(f,w))||g.enumerable});return a};var Z=(a,f,y)=>(y=a!=null?q(X(a)):{},Q(f||!a||!a.__esModule?j(y,"default",{value:a,enumerable:!0}):y,a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./index-B6j0X2Lr.js"),ee={class:"tab-logo__btn__img flex-center"},te=["src","alt"],oe={__name:"TabLogo",props:{tabList:{type:Array,default:()=>[]},currentIdx:{type:[String,Number],default:0},isFixed:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["updateCurrentIdx"],setup(a,{emit:f}){const{proxy:y}=e.getCurrentInstance(),{$_vsWidth:g,$_vsScrollY:w,$vsScreenAddListener:D,$vsScreenDestroyListener:P}=y,k=a,u=f,p=e.ref(0),S=e.ref(.5*g.value),d=e.ref(0),o=e.ref(!0),V=e.ref(!0),E=e.ref(0),x=e.ref(!1),b=e.ref(0),C=e.ref(0),N=e.ref(0),T=e.ref(null),n=e.ref(null),r=e.ref([]),W=l=>l||"",A=e.computed(()=>p.value-S.value),H=e.computed(()=>[{"--strip-width":`${A.value}px`},{"--strip-left":`${S.value}px`},{"--fix-left":`${d.value}px`},{transition:V.value?"left 0.2s ease-in-out, width 0.2s ease-in-out":""}]),R=e.computed(()=>b.value>0),F=e.computed(()=>C.value-b.value+L.value>N.value),L=e.computed(()=>{if(!x.value)return 24;const l=T.value;if(!l)return 24;const i=window.getComputedStyle(l,null).getPropertyValue("padding-right").split("px")[0];return Number(i)*2}),O=e.computed(()=>!1);e.watch(g,()=>{_(),I()}),e.watch(()=>k.currentIdx,(l,i)=>{o.value=l>i,e.nextTick(()=>B()),e.nextTick(()=>s())}),e.watch(()=>k.isFixed,()=>{g.value>1200&&_(),e.nextTick(()=>I())}),e.watch(()=>k.tabList,(l,i)=>{I(),e.nextTick(()=>{B(0)})},{deep:!0});const B=l=>{const i=l??250;o.value?(U(),setTimeout($,i)):($(),setTimeout(U,i)),setTimeout(()=>{V.value=!0},i)},U=()=>{const l=r.value[k.currentIdx];l&&l.getBoundingClientRect&&(p.value=l.getBoundingClientRect().right)},$=()=>{const l=r.value[k.currentIdx];l&&l.getBoundingClientRect&&(S.value=l.getBoundingClientRect().left)},_=()=>{V.value=!1,e.nextTick(()=>B(0)),e.nextTick(()=>z())},I=()=>{const l=T.value;if(l){let i=l.getBoundingClientRect().left;d.value=(l.offsetWidth-l.getBoundingClientRect().width)/2-i}},z=()=>{k.tabList.length<=0||(n.value&&(b.value=n.value.scrollLeft,C.value=n.value.scrollWidth),T.value&&(N.value=T.value.getBoundingClientRect().width))},t=l=>{n.value&&(l=="next"?n.value.scrollLeft+=9999:n.value.scrollLeft-=9999)},s=()=>{const l=r.value[k.currentIdx];if(!l)return;const i=l.clientWidth/2,h=g.value/2;E.value=l.getBoundingClientRect().right-i,n.value&&(n.value.scrollLeft-=h-E.value)},c=l=>{u("updateCurrentIdx",l)};return e.onMounted(()=>{x.value=!0,e.nextTick(()=>{B(0),setTimeout(_,300),I(),e.nextTick(()=>{setTimeout(s,300)})}),window.addEventListener("resize",()=>{g.value=window.innerWidth})}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tab-logo",[{"is-fixed":a.isFixed},{"is-campus":!O.value},{"is-full-width":a.fullWidth}]]),ref_key:"wrapper",ref:T},[e.createElementVNode("ul",{class:"tab-logo__list",ref_key:"list",ref:n,onScroll:_},[e.withDirectives(e.createElementVNode("div",{class:"tab-logo__nav__prev",onClick:i[0]||(i[0]=h=>t("prev"))},null,512),[[e.vShow,R.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tabList,(h,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,class:e.normalizeClass(["tab-logo__item",[{"tab-logo__item--img":!!h.img}]])},[e.createElementVNode("div",{ref_for:!0,ref_key:"btn",ref:r,class:"flex-center"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.link?"nuxt-link":"button"),{type:h.link?null:"button",to:W(h.link),class:e.normalizeClass(["tab-logo__btn",[{"is-active":a.currentIdx==m}]]),onClick:M=>c(m)},{default:e.withCtx(()=>[e.createElementVNode("div",ee,[e.createElementVNode("img",{src:h.img,alt:h.alt},null,8,te)])]),_:2},1032,["type","to","class","onClick"]))],512)],2))),128)),e.withDirectives(e.createElementVNode("div",{class:"tab-logo__nav__next",onClick:i[1]||(i[1]=h=>t("next"))},null,512),[[e.vShow,F.value]])],544),e.createElementVNode("span",{class:"tab-logo__strip",style:e.normalizeStyle(H.value)},null,4)],2))}},le=v._(oe,[["__scopeId","data-v-95fa5f31"]]),ne={class:"setting-content"},ae={class:"setting-header flex items-center"},se={class:"setting-body"},re={class:"setting-toolbar"},ie={class:"tools"},de={class:"setting-item"},ce={class:"item-header"},ue={class:"btn-group"},me={key:0,class:"drag-handle"},pe=["src"],ve={class:"item-uplaod flex items-center"},fe={class:"components-content"},ge=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(a,{emit:f}){const y=e.defineAsyncComponent(()=>import("vuedraggable")),g=e.ref(!1),w=e.computed(()=>({animation:200,group:"gallerys",disabled:!1,ghostClass:"ghost",handle:".drag-handle",filter:".arco-input, .arco-select, .arco-checkbox",preventOnFilter:!1}));e.computed(()=>({animation:200,group:"gallerys-above",disabled:!1,ghostClass:"ghost",handle:".drag-handle",filter:".arco-input, .arco-select, .arco-checkbox",preventOnFilter:!1}));const D=d=>d&&d.length>1,P=a,k=f,u=()=>{k("update:show",!1)},p=d=>{debugger;P.data.data.push({id:v.r(),key:v.r(),name:"New Tab",img:"https://osswebsite-test.cedim.cn/media-library/shared/24-25%E5%BC%80%E5%AD%A6/640-5.jpg",alt:"yew-chung-international-school",componentsDataJson:[]})},S=(d,o)=>{P.data.data=P.data.data.filter(V=>V.id!==d)};return(d,o)=>{const V=e.resolveComponent("a-switch"),E=e.resolveComponent("icon-plus"),x=e.resolveComponent("a-button"),b=e.resolveComponent("icon-drag-arrow"),C=e.resolveComponent("icon-delete"),N=e.resolveComponent("a-input"),T=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(T,{width:"60%",visible:a.show,footer:!1,onCancel:u,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",ne,[e.createElementVNode("div",ae,[o[7]||(o[7]=e.createElementVNode("span",{class:"header-title"},"仅显示PC端",-1)),e.createVNode(V,{modelValue:a.data.onlyShowPc,"onUpdate:modelValue":o[0]||(o[0]=n=>a.data.onlyShowPc=n)},null,8,["modelValue"])]),e.createElementVNode("div",se,[e.createElementVNode("div",re,[o[10]||(o[10]=e.createElementVNode("h1",null,"List",-1)),e.createElementVNode("div",ie,[e.createVNode(x,{type:"primary",onClick:o[1]||(o[1]=n=>p())},{icon:e.withCtx(()=>[e.createVNode(E)]),default:e.withCtx(()=>[o[8]||(o[8]=e.createTextVNode(" 添加 List ",-1))]),_:1}),e.createVNode(x,{type:"primary",onClick:o[2]||(o[2]=n=>p())},{default:e.withCtx(()=>[...o[9]||(o[9]=[e.createTextVNode("粘贴 Tab",-1)])]),_:1})])]),e.createElementVNode("div",de,[e.createVNode(e.unref(y),e.mergeProps({modelValue:a.data.data,"onUpdate:modelValue":o[4]||(o[4]=n=>a.data.data=n),"component-data":{tag:"div",type:"transition-group",name:g.value?null:"flip-list"}},w.value,{disabled:!D(a.data.data),onStart:o[5]||(o[5]=n=>g.value=!0),onEnd:o[6]||(o[6]=n=>g.value=!1),"item-key":"id"}),{item:e.withCtx(({element:n})=>[(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item-button draggable-item",{"sortable-disabled":!D(a.data.data)}]),key:n.id},[e.createElementVNode("div",ce,[e.createElementVNode("div",null,[e.createElementVNode("h5",null,e.toDisplayString(n.name),1),e.createElementVNode("span",null,e.toDisplayString(n.key),1)]),e.createElementVNode("div",ue,[D(a.data.data)?(e.openBlock(),e.createElementBlock("div",me,[e.createVNode(b,{class:"drag-icon"})])):e.createCommentVNode("",!0),e.createVNode(C,{class:"btn-delete",onClick:r=>S(n.id)},null,8,["onClick"]),e.createVNode(x,{size:"mini",type:"primary",onClick:o[3]||(o[3]=r=>p())},{default:e.withCtx(()=>[...o[11]||(o[11]=[e.createTextVNode("复制 Tab",-1)])]),_:1})])]),o[12]||(o[12]=e.createElementVNode("p",{class:"item-title"},"Alt",-1)),e.createVNode(N,{modelValue:n.alt,"onUpdate:modelValue":r=>n.alt=r,placeholder:"请输入alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),o[13]||(o[13]=e.createElementVNode("p",{class:"item-title"},"Key",-1)),e.createVNode(N,{modelValue:n.key,"onUpdate:modelValue":r=>n.key=r,placeholder:"请输入key","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),o[14]||(o[14]=e.createElementVNode("p",{class:"item-title"},"图片",-1)),e.createElementVNode("img",{class:"item-img",src:n.img},null,8,pe),e.createElementVNode("div",ve,[e.createVNode(N,{modelValue:n.img,"onUpdate:modelValue":r=>n.img=r,placeholder:"请输入图片链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(v.U,{modelValue:n.img,"onUpdate:modelValue":r=>n.img=r,name:n.key},null,8,["modelValue","onUpdate:modelValue","name"])]),o[15]||(o[15]=e.createElementVNode("p",null,"components",-1)),e.createElementVNode("div",fe,[e.createVNode(v.P,{data:n.componentsDataJson,onUpdate:r=>n.componentsDataJson=r},null,8,["data","onUpdate"])])],2))]),_:1},16,["modelValue","component-data","disabled"])])])])]),_:1},8,["visible"])}}}),he=v._(ge,[["__scopeId","data-v-c52189f2"]]),Ve={class:"tab-page__content"},ye={key:0},J="",ke={__name:"index",props:{modelValue:{type:Object,default:()=>({})},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(a,{emit:f}){const y=f,{proxy:g}=e.getCurrentInstance(),{$_vsWidth:w,$_vsScrollY:D,$vsScreenAddListener:P,$vsScreenDestroyListener:k}=g,u=a,p=v.u(),S=v.d(),d=e.ref(0),o=e.ref(!1),V=e.ref(!0),E=e.ref(null),x=e.ref(null),b=e.ref(!1),C=e.ref(!1),N=t=>{if(!t)return{top:0,left:0};const s=t.getBoundingClientRect(),c=window.pageYOffset||document.documentElement.scrollTop,l=window.pageXOffset||document.documentElement.scrollLeft;return{top:s.top+c,left:s.left+l}},T=e.computed(()=>{var t;return((t=u.modelValue)==null?void 0:t.classes)??null}),n=e.computed(()=>{var t;return((t=u.modelValue)==null?void 0:t.style)??null});e.computed(()=>{var t;return((t=u.modelValue)==null?void 0:t.type)??"TabPrimary"});const r=e.computed(()=>{var t;return((t=u.modelValue)==null?void 0:t.data)??[]}),W=e.computed(()=>{var t;return((t=u.modelValue)==null?void 0:t.fixed)??!0}),A=e.computed(()=>{var t;return((t=u.modelValue)==null?void 0:t.resetToTop)??!0}),H=e.computed(()=>{var t;return((t=u.modelValue)==null?void 0:t.scrollToTop)??!0}),R=e.computed(()=>{var t;return((t=u.modelValue)==null?void 0:t.fullWidth)??!1});e.computed(()=>0),e.computed(()=>!1);const F=e.computed(()=>r.value.some(t=>t.img)),L=e.computed(()=>{var t;return((t=r.value[d.value])==null?void 0:t.key)??null});e.computed(()=>{var s;if(!((s=u.modelValue)!=null&&s.data)||!Array.isArray(u.modelValue.data))return[];const t=u.modelValue.data[d.value];return t?t.componentsDataJson||[]:[]});const O=()=>{var s;if(u.modelValue&&u.modelValue.data)return;const t={id:((s=u.modelValue)==null?void 0:s.id)||v.r(),type:"TabLogo",onlyShowPc:!1,containerWidth:"",bgColor:"",classes:"custom-class another-class",style:{},width:"",resetToTop:!1,fullWidth:!0,fixed:!1,scrollToTop:!1,data:[{id:v.r(),key:v.r(),img:"https://osswebsite-test.cedim.cn/media-library/shared/24-25%E5%BC%80%E5%AD%A6/640-5.jpg",alt:"yew-chung-international-school",name:"New Tab1",componentsDataJson:[]},{id:v.r(),key:v.r(),img:"https://osswebsite-test.cedim.cn/media-library/shared/24-25%E5%BC%80%E5%AD%A6/640-5.jpg",alt:"yew-chung-international-school",name:"New Tab2",componentsDataJson:[]}]};y("update:modelValue",t),d.value=0},B=()=>{const t=x.value;if(!t)return;const s=t.getBoundingClientRect().top,c=E.value;if(!c)return;const l=c.getBoundingClientRect().top,i=+window.getComputedStyle(document.body).getPropertyValue("--header-height-calc").split("px")[0];if(l>i){o.value=!1;return}s<=i&&(o.value=!0)},U=()=>{if(p.hash){e.nextTick(()=>{setTimeout($,500)});return}if(!H.value)return;let t=0;A.value||(t=N(E.value).top-170),window.scroll({top:t,left:0,behavior:"smooth"})},$=()=>{if(!p.hash)return;const t=document.querySelector(p.hash);if(!t)return;const s=N(t).top;window.scroll({top:s-170,left:0,behavior:"smooth"})},_=()=>{const t=p.params.subpage;let s=r.value.findIndex(m=>m.key==t);const c=z(),l=r.value.findIndex(m=>m.key==c),i=p.query.category,h=r.value.findIndex(m=>m.key==i);if(s>=0)d.value=s;else if(h>-1)V.value=!1,d.value=h;else if(l>-1)V.value=!1,d.value=l;else if(r.value[0]&&r.value[0].link){console.log(r.value[0].link);let m=p.path;m.endsWith("/")&&(m=m.split("/"),m.pop(),m=m.join("/"));const M=`${m}/${r.value[0].key}`;S.replace(M)}e.nextTick($)},I=t=>{sessionStorage.setItem(J,t)},z=()=>sessionStorage.getItem(J);return e.watch(()=>D.value,()=>{B()}),e.watch(()=>p.params.subpage,()=>{_()}),e.watch(()=>p.query,()=>{_()},{deep:!0}),e.watch(d,()=>{I(L.value),V.value&&U(),V.value=!0}),e.watch(L,t=>{t||(d.value=0)}),e.onMounted(()=>{["article"].includes(p.params.section)||(O(),$(),_(),e.nextTick(B),setTimeout(()=>{e.nextTick(B)},200),setTimeout(()=>{e.nextTick($)},1e3))}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tab-page",T.value]),style:e.normalizeStyle(n.value),onMouseover:s[4]||(s[4]=c=>C.value=!0),onMouseout:s[5]||(s[5]=c=>C.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["tab-page__hold",[{"is-fixed":o.value&&W.value},{"is-thick":F.value}]]),ref_key:"hold",ref:E},[e.createElementVNode("div",{class:"tab-page__nav",ref_key:"tab",ref:x},[e.createVNode(le,{tabList:r.value,currentIdx:d.value,isFixed:o.value&&W.value,fullWidth:R.value,onUpdateCurrentIdx:s[0]||(s[0]=c=>d.value=c)},null,8,["tabList","currentIdx","isFixed","fullWidth"])],512)],2),e.createElementVNode("div",Ve,[e.createVNode(e.Transition,{name:"fade",mode:"out-in"},{default:e.withCtx(()=>[L.value?(e.openBlock(),e.createElementBlock("div",{key:L.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,c=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[L.value==c.key?(e.openBlock(),e.createElementBlock("div",ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.componentsDataJson,(l,i)=>(e.openBlock(),e.createBlock(v.a,{key:l.id,type:l.type,"props-data":{modelValue:l,isPreview:!1}},null,8,["type","props-data"]))),128))])):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)]),_:1})]),a.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v.O,{key:0,show:C.value,"onUpdate:show":s[1]||(s[1]=c=>C.value=c),onHandleEdit:s[2]||(s[2]=c=>b.value=!0),onHandleDelete:t.handleDelete,onHandleCopy:t.handleCopy,onHandlePaste:t.handlePaste,style:{top:"-32px"}},null,8,["show","onHandleDelete","onHandleCopy","onHandlePaste"])),a.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he,{key:1,show:b.value,"onUpdate:show":s[3]||(s[3]=c=>b.value=c),data:a.modelValue},null,8,["show","data"]))],38))}},we=v._(ke,[["__scopeId","data-v-7ea78236"]]);exports.default=we;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var U=Object.defineProperty;var K=(u,r,i)=>r in u?U(u,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[r]=i;var c=(u,r,i)=>K(u,typeof r!="symbol"?r+"":r,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),B=require("@wangeditor/editor-for-vue"),w=require("@wangeditor/editor"),q=require("./index-
|
|
1
|
+
"use strict";var U=Object.defineProperty;var K=(u,r,i)=>r in u?U(u,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[r]=i;var c=(u,r,i)=>K(u,typeof r!="symbol"?r+"":r,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),B=require("@wangeditor/editor-for-vue"),w=require("@wangeditor/editor"),q=require("./index-B6j0X2Lr.js"),E={class:"rich-text-editor"},$=t.defineComponent({__name:"index",props:{name:{default:""},modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]}},emits:["update:modelValue","change","focus","blur","created","upload-image","upload-video"],setup(u,{expose:r,emit:i}){const a=u,m=i,o=t.shallowRef(),d=t.ref(""),I=t.computed(()=>typeof a.height=="number"?`${a.height}px`:a.height),p=t.inject("handleUpload",()=>{}),f=t.inject("fileUrl",null),C=t.inject("chooseName",null),h=t.ref(""),v=t.ref(null),b=e=>{if(!p){console.warn("Upload: handleUpload function not provided by ancestor");return}if(h.value=e,o.value)try{const n=o.value.selection;n&&(v.value={anchor:{path:[...n.anchor.path],offset:n.anchor.offset},focus:{path:[...n.focus.path],offset:n.focus.offset}})}catch(n){console.warn("保存光标位置失败:",n)}const l=a.name+"_"+e;p(!0,l)};t.watch(()=>a.name,()=>{f.value=null},{deep:!0,immediate:!0}),t.watch(()=>[f==null?void 0:f.value],([e])=>{const l=a.name+"_"+h.value;!e||!C.value||C.value!==l||o.value&&t.nextTick(()=>{var n,g;if(o.value){try{if(o.value.focus(),v.value)try{o.value.select(v.value)}catch(s){console.warn("恢复光标位置失败,使用默认位置:",s)}}catch(s){console.warn("聚焦编辑器失败:",s)}if(h.value==="img"){const y=`<img src="${e}" alt="图片" style="max-width: 100%;">`;(n=o.value)==null||n.dangerouslyInsertHtml(y)}else{const y=`<video src="${e}" controls style="max-width: 100%;"></video>`;(g=o.value)==null||g.dangerouslyInsertHtml(y)}v.value=null,h.value=""}})},{immediate:!1});function _(e){return class{constructor(){c(this,"title");c(this,"tag");c(this,"iconSvg");this.title="上传图片",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>'}isActive(){return!1}getValue(){return""}isDisabled(){return!1}exec(){t.nextTick(()=>{console.log("点击了自定义上传图片菜单"),e("img")})}}}function k(e){return class{constructor(){c(this,"title");c(this,"tag");c(this,"iconSvg");this.title="上传视频",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>'}getValue(){return""}isActive(){return!1}isDisabled(){return!1}exec(){t.nextTick(()=>{console.log("点击了自定义上传视频菜单"),e("video")})}}}const x={toolbarKeys:["headerSelect","bold","italic","through","underline","color","fontSize","lineHeight","delIndent","indent","divider","insertTable","justifyCenter","justifyJustify","justifyLeft","justifyRight","undo","redo","clearStyle","codeBlock"]},H={placeholder:a.placeholder,readOnly:a.disabled,maxLength:a.maxLength,MENU_CONF:{}},M=Math.random().toString(36).substring(2,9),V=`CustomImageMenu_${M}`,S=`CustomVideoMenu_${M}`,j=e=>{o.value=e;try{const l=_(b),n=k(b),g={key:V,factory(){return new l}},s={key:S,factory(){return new n}};w.Boot.registerMenu(g),w.Boot.registerMenu(s)}catch(l){console.warn("菜单注册失败:",l)}x.insertKeys={index:0,keys:[V,S]},m("created",e)};t.onBeforeUnmount(()=>{const e=o.value;e!=null&&e.destroy()}),t.watch(()=>a.modelValue,e=>{e!==d.value&&(d.value=e||"")},{immediate:!0});const z=e=>{m("update:modelValue",d.value),m("change",e)},N=()=>{o.value=void 0},O=e=>{m("focus",e)},T=e=>{m("blur",e)};return r({editor:o,getHtml:()=>d.value,getText:()=>{var e;return((e=o.value)==null?void 0:e.getText())||""},isEmpty:()=>{var e;return((e=o.value)==null?void 0:e.isEmpty())||!0},clear:()=>{var e;return(e=o.value)==null?void 0:e.clear()},focus:()=>{var e;return(e=o.value)==null?void 0:e.focus()},blur:()=>{var e;return(e=o.value)==null?void 0:e.blur()},disable:()=>{var e;return(e=o.value)==null?void 0:e.disable()},enable:()=>{var e;return(e=o.value)==null?void 0:e.enable()}}),(e,l)=>(t.openBlock(),t.createElementBlock("div",E,[t.createVNode(t.unref(B.Toolbar),{class:"editor-toolbar",editor:o.value,defaultConfig:x,mode:u.mode},null,8,["editor","mode"]),t.createVNode(t.unref(B.Editor),{class:"editor-content",style:t.normalizeStyle({height:I.value}),modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=n=>d.value=n),defaultConfig:H,mode:u.mode,onOnCreated:j,onOnChange:z,onOnDestroyed:N,onOnFocus:O,onOnBlur:T},null,8,["style","modelValue","mode"])]))}}),D=q._($,[["__scopeId","data-v-e8d1a61b"]]);exports.default=D;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var H=Object.create;var B=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var z=(t,a,l,c)=>{if(a&&typeof a=="object"||typeof a=="function")for(let s of M(a))!U.call(t,s)&&s!==l&&B(t,s,{get:()=>a[s],enumerable:!(c=I(a,s))||c.enumerable});return t};var L=(t,a,l)=>(l=t!=null?H(F(t)):{},z(a||!t||!t.__esModule?B(l,"default",{value:t,enumerable:!0}):l,t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./index-B6j0X2Lr.js");var $="Expected a function",j=NaN,_="[object Symbol]",D=/^\s+|\s+$/g,A=/^[-+]0x[0-9a-f]+$/i,W=/^0b[01]+$/i,R=/^0o[0-7]+$/i,q=parseInt,G=typeof v.c=="object"&&v.c&&v.c.Object===Object&&v.c,J=typeof self=="object"&&self&&self.Object===Object&&self,X=G||J||Function("return this")(),K=Object.prototype,Q=K.toString,Y=Math.max,Z=Math.min,S=function(){return X.Date.now()};function ee(t,a,l){var c,s,n,f,u,d,p=0,g=!1,m=!1,w=!0;if(typeof t!="function")throw new TypeError($);a=P(a)||0,E(l)&&(g=!!l.leading,m="maxWait"in l,n=m?Y(P(l.maxWait)||0,a):n,w="trailing"in l?!!l.trailing:w);function b(r){var V=c,h=s;return c=s=void 0,p=r,f=t.apply(h,V),f}function k(r){return p=r,u=setTimeout(y,a),g?b(r):f}function T(r){var V=r-d,h=r-p,O=a-V;return m?Z(O,n-h):O}function C(r){var V=r-d,h=r-p;return d===void 0||V>=a||V<0||m&&h>=n}function y(){var r=S();if(C(r))return o(r);u=setTimeout(y,T(r))}function o(r){return u=void 0,w&&c?b(r):(c=s=void 0,f)}function i(){u!==void 0&&clearTimeout(u),p=0,c=d=s=u=void 0}function x(){return u===void 0?f:o(S())}function N(){var r=S(),V=C(r);if(c=arguments,s=this,d=r,V){if(u===void 0)return k(d);if(m)return u=setTimeout(y,a),b(d)}return u===void 0&&(u=setTimeout(y,a)),f}return N.cancel=i,N.flush=x,N}function te(t,a,l){var c=!0,s=!0;if(typeof t!="function")throw new TypeError($);return E(l)&&(c="leading"in l?!!l.leading:c,s="trailing"in l?!!l.trailing:s),ee(t,a,{leading:c,maxWait:a,trailing:s})}function E(t){var a=typeof t;return!!t&&(a=="object"||a=="function")}function ne(t){return!!t&&typeof t=="object"}function le(t){return typeof t=="symbol"||ne(t)&&Q.call(t)==_}function P(t){if(typeof t=="number")return t;if(le(t))return j;if(E(t)){var a=typeof t.valueOf=="function"?t.valueOf():t;t=E(a)?a+"":a}if(typeof t!="string")return t===0?t:+t;t=t.replace(D,"");var l=W.test(t);return l||R.test(t)?q(t.slice(2),l?2:8):A.test(t)?j:+t}var oe=te;const ae=v.g(oe),re={class:"setting-content"},se={class:"setting-header flex items-center"},ie={class:"setting-header flex items-center"},de={class:"setting-header flex items-center"},ue={class:"setting-header flex items-center"},ce={class:"setting-body"},me={class:"setting-item"},fe={class:"components-content"},pe=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(t,{emit:a}){e.defineAsyncComponent(()=>import("vuedraggable"));const l=a,c=()=>{l("update:show",!1)};return(s,n)=>{const f=e.resolveComponent("a-switch"),u=e.resolveComponent("a-input"),d=e.resolveComponent("a-option"),p=e.resolveComponent("a-select"),g=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(g,{width:"60%",visible:t.show,footer:!1,onCancel:c,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",re,[e.createElementVNode("div",se,[n[5]||(n[5]=e.createElementVNode("span",{class:"header-title"},"仅显示PC端",-1)),e.createVNode(f,{modelValue:t.data.onlyShowPc,"onUpdate:modelValue":n[0]||(n[0]=m=>t.data.onlyShowPc=m)},null,8,["modelValue"])]),e.createElementVNode("div",ie,[n[6]||(n[6]=e.createElementVNode("span",{class:"header-title"},"标题",-1)),e.createVNode(u,{modelValue:t.data.title,"onUpdate:modelValue":n[1]||(n[1]=m=>t.data.title=m),placeholder:"请输入标题","allow-clear":""},null,8,["modelValue"])]),e.createElementVNode("div",de,[n[11]||(n[11]=e.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),e.createVNode(p,{modelValue:t.data.width,"onUpdate:modelValue":n[2]||(n[2]=m=>t.data.width=m),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(d,{value:"default"},{default:e.withCtx(()=>[...n[7]||(n[7]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(d,{value:"small"},{default:e.withCtx(()=>[...n[8]||(n[8]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(d,{value:"medium"},{default:e.withCtx(()=>[...n[9]||(n[9]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(d,{value:"max"},{default:e.withCtx(()=>[...n[10]||(n[10]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",ue,[n[14]||(n[14]=e.createElementVNode("span",{class:"header-title"},"Opened by default",-1)),e.createVNode(p,{modelValue:t.data.openFirst,"onUpdate:modelValue":n[3]||(n[3]=m=>t.data.openFirst=m),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(d,{value:!0},{default:e.withCtx(()=>[...n[12]||(n[12]=[e.createTextVNode("yes",-1)])]),_:1}),e.createVNode(d,{value:!1},{default:e.withCtx(()=>[...n[13]||(n[13]=[e.createTextVNode("No",-1)])]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",ce,[n[15]||(n[15]=e.createElementVNode("div",{class:"setting-toolbar"},[e.createElementVNode("h4",null,"组件")],-1)),e.createElementVNode("div",me,[e.createElementVNode("div",fe,[e.createVNode(v.P,{data:t.data.data,onUpdate:n[4]||(n[4]=m=>t.data.data=m)},null,8,["data"])])])])])]),_:1},8,["visible"])}}}),ve=v._(pe,[["__scopeId","data-v-23474794"]]),Ve={class:"collapse-custom__wrapper"},ye=["innerHTML"],ge={class:"collapse-custom__content__wrapper"},Ne={class:"component-wrapper"},we={__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(t,{emit:a}){const l=t,c=a,s=e.ref(null),n=e.ref(0),f=e.ref(!1),u=e.ref(null),d=e.ref(!1),p=e.ref(!1),g=e.computed(()=>{var o;return((o=l.modelValue)==null?void 0:o.classes)??""}),m=e.computed(()=>{var o;return((o=l.modelValue)==null?void 0:o.style)??""});e.computed(()=>{var o;return(o=l.modelValue)==null?void 0:o.width});const w=e.computed(()=>{var o;return((o=l.modelValue)==null?void 0:o.title)??[]}),b=e.computed(()=>{var o;return((o=l.modelValue)==null?void 0:o.openFirst)??!1}),k=e.computed(()=>{var o,i;return!((o=l.modelValue)!=null&&o.data)||!Array.isArray(l.modelValue.data)?[]:(i=l.modelValue)==null?void 0:i.data}),T=()=>{var i;if(l.modelValue&&l.modelValue.data)return;const o={id:((i=l.modelValue)==null?void 0:i.id)||v.r(),type:"CollapseCustom",onlyShowPc:!1,title:"我是标题collaspse",openFirst:!1,width:"",style:{},data:[]};c("update:modelValue",o)},C=e.computed(()=>{var o;return l.isPreview?!((o=l.modelValue)!=null&&o.onlyShowPc)||!v.i():!0}),y=()=>{const o=s.value;o&&(n.value=o.scrollHeight)};return e.onMounted(()=>{f.value=b.value,e.nextTick(y);const o=ae(()=>{y()},250);u.value=new ResizeObserver(o),u.value.observe(s.value)}),e.onBeforeUnmount(()=>{s.value&&u.value&&u.value.unobserve(s.value)}),T(),(o,i)=>{var x,N;return C.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["collapse-custom",g.value]),style:e.normalizeStyle(m.value),onMouseover:i[4]||(i[4]=r=>d.value=!0),onMouseout:i[5]||(i[5]=r=>d.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(["collapse-custom_container",[(x=t.modelValue)!=null&&x.width?`container-content-${(N=t.modelValue)==null?void 0:N.width}`:"container-content"]])},[e.createElementVNode("div",Ve,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["collapse-custom__btn",{"--is-collapsed":!f.value}]),onClick:i[0]||(i[0]=r=>f.value=!f.value)},[e.createElementVNode("h4",{class:"collapse-custom__btn__title",innerHTML:w.value},null,8,ye),i[6]||(i[6]=e.createElementVNode("span",{class:"collapse-custom__btn__icon"},null,-1))],2),e.createElementVNode("div",{class:e.normalizeClass(["collapse-custom__content",{"--is-open":f.value}]),ref_key:"content",ref:s,style:e.normalizeStyle({"--scroll-height":`${n.value}px`})},[e.createElementVNode("div",ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(r,V)=>(e.openBlock(),e.createElementBlock("div",{key:r.id,class:"page-item"},[e.createElementVNode("div",Ne,[e.createVNode(v.a,{type:r.type,"props-data":{modelValue:r}},null,8,["type","props-data"])])]))),128))])],6)]),t.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v.O,{key:0,show:d.value,"onUpdate:show":i[1]||(i[1]=r=>d.value=r),onHandleEdit:i[2]||(i[2]=r=>p.value=!0),onHandleDelete:o.handleDelete,onHandleCopy:o.handleCopy,onHandlePaste:o.handlePaste,style:{top:"-20px"}},null,8,["show","onHandleDelete","onHandleCopy","onHandlePaste"]))],2),t.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve,{key:0,show:p.value,"onUpdate:show":i[3]||(i[3]=r=>p.value=r),data:t.modelValue},null,8,["show","data"]))],38)):e.createCommentVNode("",!0)}}},be=v._(we,[["__scopeId","data-v-6e5b9702"]]);exports.default=be;
|