officialblock 2.1.1 → 2.1.3
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-0C0pBmhT.js +238 -0
- package/dist/index-AlzeRld6.js +1 -0
- package/dist/index-B-J4Tx8e.js +1 -0
- package/dist/index-B63YF03C.mjs +357 -0
- package/dist/{index-qybMHiY-.js → index-BEACmL51.js} +1 -1
- package/dist/index-BFCRwkCQ.js +1 -0
- package/dist/{index-DwAYwP3K.mjs → index-BUq__F-C.mjs} +1 -1
- package/dist/{index-esMFQfpR.js → index-BWSB4K5c.js} +1 -1
- package/dist/index-BZZpFLbf.mjs +609 -0
- package/dist/index-BykzKd3s.js +1 -0
- package/dist/index-CPFXI7lC.mjs +68485 -0
- package/dist/index-DGbVewT4.js +1 -0
- package/dist/index-DKDZzpmS.mjs +642 -0
- package/dist/{index-D3X7jHwZ.mjs → index-DSpGOD0e.mjs} +104 -93
- package/dist/index-DX4-RCdr.mjs +4 -0
- package/dist/index-Dl0NsdjZ.mjs +542 -0
- package/dist/official-block.cjs.js +1 -1
- package/dist/official-block.es.js +120 -105
- package/dist/official-block.umd.js +223 -5
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/dist/index-BI82VZ91.js +0 -1
- package/dist/index-B_6DwUvb.js +0 -1
- package/dist/index-B__52Adx.mjs +0 -4
- package/dist/index-BjgdPzqR.mjs +0 -349
- package/dist/index-BsZbx0rW.js +0 -1
- package/dist/index-CEHf6M6x.js +0 -1
- package/dist/index-CroTuaW_.mjs +0 -162
- package/dist/index-CvCNRVPY.js +0 -20
- package/dist/index-DwPHbe8R.mjs +0 -216
- package/dist/index-NTd6BVQQ.js +0 -1
- package/dist/index-QpRJyZ_6.mjs +0 -29116
- package/dist/index-ahwJ0pbt.mjs +0 -143
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import { defineComponent as ne, defineAsyncComponent as oe, computed as E, ref as S, watch as se, nextTick as W, resolveComponent as y, createBlock as j, openBlock as k, withCtx as p, createElementVNode as a, createVNode as n, createElementBlock as g, createCommentVNode as L, createTextVNode as _, unref as X, mergeProps as Y, toDisplayString as A, withModifiers as Z, Transition as ee, withDirectives as te, vShow as le, Fragment as F, normalizeClass as re, normalizeStyle as ue, renderList as ae } from "vue";
|
|
2
|
+
import { r as o, _ as ie, i as me, O as ce } from "./index-CPFXI7lC.mjs";
|
|
3
|
+
const pe = { class: "seting-box" }, ke = { class: "setting-header flex items-center" }, ve = { key: 0 }, fe = { class: "setting-header items-center" }, we = { class: "draggable_box" }, ge = { class: "drag_top_box" }, he = ["onClick"], ye = { key: 0 }, _e = { class: "draggable_link_box" }, Ce = { class: "drag_link_top_box" }, Ve = ["onClick"], be = /* @__PURE__ */ ne({
|
|
4
|
+
__name: "setting",
|
|
5
|
+
props: {
|
|
6
|
+
show: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !1
|
|
9
|
+
},
|
|
10
|
+
data: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:show"],
|
|
17
|
+
setup(m, { emit: O }) {
|
|
18
|
+
const w = oe(() => import("vuedraggable")), V = E(() => ({
|
|
19
|
+
animation: 200,
|
|
20
|
+
group: "gridLinks",
|
|
21
|
+
// 列表专用分组
|
|
22
|
+
disabled: !1,
|
|
23
|
+
ghostClass: "ghost",
|
|
24
|
+
handle: ".drag-handle, .icon_drag",
|
|
25
|
+
// 拖拽手柄和图标都能触发拖拽
|
|
26
|
+
filter: ".arco-input, .arco-select, .arco-checkbox",
|
|
27
|
+
// 排除这些元素的拖拽
|
|
28
|
+
preventOnFilter: !1
|
|
29
|
+
// 允许在被过滤的元素上进行正常交互
|
|
30
|
+
})), H = E(() => ({
|
|
31
|
+
animation: 200,
|
|
32
|
+
group: "gridLinkItems",
|
|
33
|
+
// 链接项专用分组
|
|
34
|
+
disabled: !1,
|
|
35
|
+
ghostClass: "ghost",
|
|
36
|
+
handle: ".drag-handle, .icon_drag",
|
|
37
|
+
// 拖拽手柄和图标都能触发拖拽
|
|
38
|
+
filter: ".arco-input, .arco-select, .arco-checkbox",
|
|
39
|
+
// 排除这些元素的拖拽
|
|
40
|
+
preventOnFilter: !1
|
|
41
|
+
// 允许在被过滤的元素上进行正常交互
|
|
42
|
+
})), P = S(!1), U = S(!1), s = m, v = S(/* @__PURE__ */ new Set()), h = S(/* @__PURE__ */ new Set()), M = () => {
|
|
43
|
+
var t, e;
|
|
44
|
+
(e = (t = s.data) == null ? void 0 : t.data) != null && e.list && Array.isArray(s.data.data.list) && (v.value.clear(), h.value.clear(), s.data.data.list.forEach((l) => {
|
|
45
|
+
l.id && v.value.add(l.id), l.links && Array.isArray(l.links) && l.links.length > 0 && l.links.forEach((d) => {
|
|
46
|
+
d.id && h.value.add(d.id);
|
|
47
|
+
});
|
|
48
|
+
}));
|
|
49
|
+
}, I = S(!1);
|
|
50
|
+
se(
|
|
51
|
+
() => s.show,
|
|
52
|
+
(t) => {
|
|
53
|
+
t && !I.value ? (I.value = !0, W(() => {
|
|
54
|
+
M();
|
|
55
|
+
})) : t || (I.value = !1);
|
|
56
|
+
},
|
|
57
|
+
{ immediate: !0 }
|
|
58
|
+
);
|
|
59
|
+
const T = (t) => {
|
|
60
|
+
var e, l;
|
|
61
|
+
v.value.has(t.id) ? (v.value.clear(), (l = (e = s.data) == null ? void 0 : e.data) != null && l.list && s.data.data.list.forEach((d) => {
|
|
62
|
+
d.id !== t.id && v.value.add(d.id);
|
|
63
|
+
})) : v.value.add(t.id);
|
|
64
|
+
}, u = (t) => v.value.has(t.id), r = (t) => {
|
|
65
|
+
s.data.data.list = s.data.data.list.filter(
|
|
66
|
+
(e) => e.id !== t
|
|
67
|
+
);
|
|
68
|
+
}, b = () => {
|
|
69
|
+
var l, d;
|
|
70
|
+
const t = s.data.data, e = o();
|
|
71
|
+
t.list.push({
|
|
72
|
+
id: e,
|
|
73
|
+
title: "这里是标题",
|
|
74
|
+
links: []
|
|
75
|
+
}), v.value.clear(), (d = (l = s.data) == null ? void 0 : l.data) != null && d.list && s.data.data.list.forEach((C) => {
|
|
76
|
+
C.id !== e && v.value.add(C.id);
|
|
77
|
+
}), W(() => {
|
|
78
|
+
if (typeof document < "u") {
|
|
79
|
+
const C = document.querySelector(".arco-drawer-body");
|
|
80
|
+
C && (C.scrollTop = C.scrollHeight);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}, x = (t) => {
|
|
84
|
+
h.value.has(t.id) ? h.value.delete(t.id) : h.value.add(t.id);
|
|
85
|
+
}, f = (t) => h.value.has(t.id), B = (t) => {
|
|
86
|
+
const e = s.data.data.list.find((l) => l.id === t);
|
|
87
|
+
if (e) {
|
|
88
|
+
const l = o();
|
|
89
|
+
e.links.push({
|
|
90
|
+
id: l,
|
|
91
|
+
name: "这里是名称",
|
|
92
|
+
link: ""
|
|
93
|
+
}), e.links && Array.isArray(e.links) && e.links.forEach((d) => {
|
|
94
|
+
d.id !== l ? h.value.add(d.id) : h.value.delete(d.id);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}, $ = (t, e) => {
|
|
98
|
+
const l = s.data.data.list.find((d) => d.id === t);
|
|
99
|
+
l && l.links && (l.links = l.links.filter((d) => d.id !== e));
|
|
100
|
+
}, N = O, G = () => {
|
|
101
|
+
N("update:show", !1);
|
|
102
|
+
};
|
|
103
|
+
return (t, e) => {
|
|
104
|
+
const l = y("a-switch"), d = y("a-option"), C = y("a-select"), q = y("icon-drag-dot"), J = y("icon-drag-arrow"), K = y("icon-delete"), z = y("a-input"), Q = y("icon-plus"), R = y("a-button"), de = y("a-drawer");
|
|
105
|
+
return k(), j(de, {
|
|
106
|
+
width: 500,
|
|
107
|
+
visible: m.show,
|
|
108
|
+
footer: !1,
|
|
109
|
+
onCancel: G,
|
|
110
|
+
unmountOnClose: ""
|
|
111
|
+
}, {
|
|
112
|
+
title: p(() => {
|
|
113
|
+
var i;
|
|
114
|
+
return [
|
|
115
|
+
_(A((i = m.data) == null ? void 0 : i.type) + "组件编辑 ", 1)
|
|
116
|
+
];
|
|
117
|
+
}),
|
|
118
|
+
default: p(() => [
|
|
119
|
+
a("div", pe, [
|
|
120
|
+
a("div", ke, [
|
|
121
|
+
e[7] || (e[7] = a("span", { class: "header-title" }, "仅显示PC端", -1)),
|
|
122
|
+
n(l, {
|
|
123
|
+
modelValue: m.data.onlyShowPc,
|
|
124
|
+
"onUpdate:modelValue": e[0] || (e[0] = (i) => m.data.onlyShowPc = i)
|
|
125
|
+
}, null, 8, ["modelValue"])
|
|
126
|
+
]),
|
|
127
|
+
e[19] || (e[19] = a("p", { class: "item-title" }, "组件宽度", -1)),
|
|
128
|
+
n(C, {
|
|
129
|
+
modelValue: m.data.data.width,
|
|
130
|
+
"onUpdate:modelValue": e[1] || (e[1] = (i) => m.data.data.width = i),
|
|
131
|
+
placeholder: "请选择",
|
|
132
|
+
"allow-clear": ""
|
|
133
|
+
}, {
|
|
134
|
+
default: p(() => [
|
|
135
|
+
n(d, { value: "default" }, {
|
|
136
|
+
default: p(() => [...e[8] || (e[8] = [
|
|
137
|
+
_("默认", -1)
|
|
138
|
+
])]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
n(d, { value: "small" }, {
|
|
142
|
+
default: p(() => [...e[9] || (e[9] = [
|
|
143
|
+
_("小", -1)
|
|
144
|
+
])]),
|
|
145
|
+
_: 1
|
|
146
|
+
}),
|
|
147
|
+
n(d, { value: "middle" }, {
|
|
148
|
+
default: p(() => [...e[10] || (e[10] = [
|
|
149
|
+
_("中", -1)
|
|
150
|
+
])]),
|
|
151
|
+
_: 1
|
|
152
|
+
}),
|
|
153
|
+
n(d, { value: "max" }, {
|
|
154
|
+
default: p(() => [...e[11] || (e[11] = [
|
|
155
|
+
_("大", -1)
|
|
156
|
+
])]),
|
|
157
|
+
_: 1
|
|
158
|
+
})
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["modelValue"]),
|
|
162
|
+
e[20] || (e[20] = a("div", {
|
|
163
|
+
class: "part_title",
|
|
164
|
+
style: { "margin-top": "20px" }
|
|
165
|
+
}, "链接列表", -1)),
|
|
166
|
+
m.data.data.list.length ? L("", !0) : (k(), g("div", ve, "暂无数据")),
|
|
167
|
+
a("div", fe, [
|
|
168
|
+
n(X(w), Y({
|
|
169
|
+
modelValue: m.data.data.list,
|
|
170
|
+
"onUpdate:modelValue": e[4] || (e[4] = (i) => m.data.data.list = i),
|
|
171
|
+
"component-data": {
|
|
172
|
+
tag: "div",
|
|
173
|
+
type: "transition-group",
|
|
174
|
+
name: P.value ? null : "flip-list"
|
|
175
|
+
}
|
|
176
|
+
}, V.value, {
|
|
177
|
+
disabled: !1,
|
|
178
|
+
onStart: e[5] || (e[5] = (i) => P.value = !0),
|
|
179
|
+
onEnd: e[6] || (e[6] = (i) => P.value = !1),
|
|
180
|
+
"item-key": "id"
|
|
181
|
+
}), {
|
|
182
|
+
item: p(({ element: i }) => [
|
|
183
|
+
a("div", we, [
|
|
184
|
+
a("div", ge, [
|
|
185
|
+
a("div", {
|
|
186
|
+
class: "drag-handle",
|
|
187
|
+
onClick: (c) => T(i)
|
|
188
|
+
}, [
|
|
189
|
+
n(q, { style: { "margin-right": "10px" } }),
|
|
190
|
+
_(A(i.title), 1)
|
|
191
|
+
], 8, he),
|
|
192
|
+
a("div", null, [
|
|
193
|
+
n(J, { class: "icon_drag" }),
|
|
194
|
+
n(K, {
|
|
195
|
+
class: "btn-delete",
|
|
196
|
+
onClick: Z((c) => r(i.id), ["stop"])
|
|
197
|
+
}, null, 8, ["onClick"])
|
|
198
|
+
])
|
|
199
|
+
]),
|
|
200
|
+
n(ee, { name: "collapse" }, {
|
|
201
|
+
default: p(() => [
|
|
202
|
+
te(a("div", null, [
|
|
203
|
+
e[16] || (e[16] = a("p", {
|
|
204
|
+
class: "item-title",
|
|
205
|
+
style: { "margin-top": "20px" }
|
|
206
|
+
}, "标题", -1)),
|
|
207
|
+
n(z, {
|
|
208
|
+
modelValue: i.title,
|
|
209
|
+
"onUpdate:modelValue": (c) => i.title = c,
|
|
210
|
+
placeholder: "请输入标题",
|
|
211
|
+
"allow-clear": ""
|
|
212
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
213
|
+
e[17] || (e[17] = a("p", {
|
|
214
|
+
class: "item-title",
|
|
215
|
+
style: { "margin-top": "20px" }
|
|
216
|
+
}, "链接", -1)),
|
|
217
|
+
i.links.length ? L("", !0) : (k(), g("div", ye, "暂无数据")),
|
|
218
|
+
n(X(w), Y({
|
|
219
|
+
modelValue: i.links,
|
|
220
|
+
"onUpdate:modelValue": (c) => i.links = c,
|
|
221
|
+
"component-data": {
|
|
222
|
+
tag: "div",
|
|
223
|
+
type: "transition-group",
|
|
224
|
+
name: U.value ? null : "flip-list"
|
|
225
|
+
}
|
|
226
|
+
}, H.value, {
|
|
227
|
+
disabled: !1,
|
|
228
|
+
onStart: e[2] || (e[2] = (c) => U.value = !0),
|
|
229
|
+
onEnd: e[3] || (e[3] = (c) => U.value = !1),
|
|
230
|
+
"item-key": "id"
|
|
231
|
+
}), {
|
|
232
|
+
item: p(({ element: c }) => [
|
|
233
|
+
a("div", _e, [
|
|
234
|
+
a("div", Ce, [
|
|
235
|
+
a("div", {
|
|
236
|
+
class: "drag-handle",
|
|
237
|
+
onClick: (D) => x(c)
|
|
238
|
+
}, [
|
|
239
|
+
n(q, { style: { "margin-right": "10px" } }),
|
|
240
|
+
e[12] || (e[12] = _("链接 ", -1))
|
|
241
|
+
], 8, Ve),
|
|
242
|
+
a("div", null, [
|
|
243
|
+
n(J, { class: "icon_drag" }),
|
|
244
|
+
n(K, {
|
|
245
|
+
class: "btn-delete",
|
|
246
|
+
onClick: Z((D) => $(i.id, c.id), ["stop"])
|
|
247
|
+
}, null, 8, ["onClick"])
|
|
248
|
+
])
|
|
249
|
+
]),
|
|
250
|
+
n(ee, { name: "collapse" }, {
|
|
251
|
+
default: p(() => [
|
|
252
|
+
te(a("div", null, [
|
|
253
|
+
e[13] || (e[13] = a("p", {
|
|
254
|
+
class: "link-title",
|
|
255
|
+
style: { "margin-top": "20px" }
|
|
256
|
+
}, " 名称 ", -1)),
|
|
257
|
+
n(z, {
|
|
258
|
+
modelValue: c.name,
|
|
259
|
+
"onUpdate:modelValue": (D) => c.name = D,
|
|
260
|
+
placeholder: "请输入名称",
|
|
261
|
+
"allow-clear": ""
|
|
262
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
263
|
+
e[14] || (e[14] = a("p", {
|
|
264
|
+
class: "link-title",
|
|
265
|
+
style: { "margin-top": "20px" }
|
|
266
|
+
}, " 链接地址 ", -1)),
|
|
267
|
+
n(z, {
|
|
268
|
+
modelValue: c.link,
|
|
269
|
+
"onUpdate:modelValue": (D) => c.link = D,
|
|
270
|
+
placeholder: "请输入链接地址",
|
|
271
|
+
"allow-clear": ""
|
|
272
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
273
|
+
], 512), [
|
|
274
|
+
[le, !f(c)]
|
|
275
|
+
])
|
|
276
|
+
]),
|
|
277
|
+
_: 2
|
|
278
|
+
}, 1024)
|
|
279
|
+
])
|
|
280
|
+
]),
|
|
281
|
+
_: 2
|
|
282
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "component-data"]),
|
|
283
|
+
n(R, {
|
|
284
|
+
style: { "margin-top": "20px" },
|
|
285
|
+
size: "mini",
|
|
286
|
+
type: "primary",
|
|
287
|
+
onClick: (c) => B(i.id)
|
|
288
|
+
}, {
|
|
289
|
+
icon: p(() => [
|
|
290
|
+
n(Q)
|
|
291
|
+
]),
|
|
292
|
+
default: p(() => [
|
|
293
|
+
e[15] || (e[15] = _(" 链接 ", -1))
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
}, 8, ["onClick"])
|
|
297
|
+
], 512), [
|
|
298
|
+
[le, !u(i)]
|
|
299
|
+
])
|
|
300
|
+
]),
|
|
301
|
+
_: 2
|
|
302
|
+
}, 1024)
|
|
303
|
+
])
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
}, 16, ["modelValue", "component-data"])
|
|
307
|
+
]),
|
|
308
|
+
n(R, {
|
|
309
|
+
type: "primary",
|
|
310
|
+
onClick: b,
|
|
311
|
+
style: { "margin-top": "20px" }
|
|
312
|
+
}, {
|
|
313
|
+
icon: p(() => [
|
|
314
|
+
n(Q)
|
|
315
|
+
]),
|
|
316
|
+
default: p(() => [
|
|
317
|
+
e[18] || (e[18] = _(" 新增 ", -1))
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
})
|
|
321
|
+
])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
}, 8, ["visible"]);
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
}), xe = /* @__PURE__ */ ie(be, [["__scopeId", "data-v-cec126b9"]]), $e = ["innerHTML"], Se = {
|
|
328
|
+
key: 0,
|
|
329
|
+
class: "grid-links__sublist"
|
|
330
|
+
}, Le = ["onClick"], Pe = {
|
|
331
|
+
key: 1,
|
|
332
|
+
class: "grid-links__subitem__link"
|
|
333
|
+
}, Ue = /* @__PURE__ */ ne({
|
|
334
|
+
name: "GridLinks",
|
|
335
|
+
__name: "index",
|
|
336
|
+
props: {
|
|
337
|
+
modelValue: {
|
|
338
|
+
type: Object,
|
|
339
|
+
default: () => {
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
// 是否预览
|
|
343
|
+
isPreview: {
|
|
344
|
+
type: Boolean,
|
|
345
|
+
default: !0
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
emits: [
|
|
349
|
+
"update:modelValue",
|
|
350
|
+
"handleDelete",
|
|
351
|
+
"handleCopy",
|
|
352
|
+
"handlePaste",
|
|
353
|
+
"handleClick"
|
|
354
|
+
],
|
|
355
|
+
setup(m, { emit: O }) {
|
|
356
|
+
const w = m, V = O, H = (u) => {
|
|
357
|
+
V("handleClick", u);
|
|
358
|
+
}, P = E(() => {
|
|
359
|
+
var u;
|
|
360
|
+
return w.isPreview ? !((u = w.modelValue) != null && u.onlyShowPc) || !me() : !0;
|
|
361
|
+
}), U = () => {
|
|
362
|
+
var r;
|
|
363
|
+
if (w.modelValue && w.modelValue.data) return;
|
|
364
|
+
const u = {
|
|
365
|
+
id: ((r = w.modelValue) == null ? void 0 : r.id) || o(),
|
|
366
|
+
type: "GridLinks",
|
|
367
|
+
onlyShowPc: !1,
|
|
368
|
+
data: {
|
|
369
|
+
width: "default",
|
|
370
|
+
bgColor: "white",
|
|
371
|
+
list: [
|
|
372
|
+
{
|
|
373
|
+
id: o(),
|
|
374
|
+
title: "这里是标题",
|
|
375
|
+
links: [
|
|
376
|
+
{
|
|
377
|
+
id: o(),
|
|
378
|
+
name: "这里是名称",
|
|
379
|
+
link: ""
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
id: o(),
|
|
383
|
+
name: "这里是名称",
|
|
384
|
+
link: "https://www.baidu.com"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
id: o(),
|
|
388
|
+
name: "这里是名称",
|
|
389
|
+
link: "https://www.baidu.com"
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
id: o(),
|
|
395
|
+
title: "这里是标题",
|
|
396
|
+
links: [
|
|
397
|
+
{
|
|
398
|
+
id: o(),
|
|
399
|
+
name: "这里是名称",
|
|
400
|
+
link: "https://www.baidu.com"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
id: o(),
|
|
404
|
+
name: "这里是名称",
|
|
405
|
+
link: "https://www.baidu.com"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
id: o(),
|
|
409
|
+
name: "这里是名称",
|
|
410
|
+
link: "https://www.baidu.com"
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
id: o(),
|
|
416
|
+
title: "这里是标题",
|
|
417
|
+
links: [
|
|
418
|
+
{
|
|
419
|
+
id: o(),
|
|
420
|
+
name: "这里是名称",
|
|
421
|
+
link: "https://www.baidu.com"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
id: o(),
|
|
425
|
+
name: "这里是名称",
|
|
426
|
+
link: "https://www.baidu.com"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
id: o(),
|
|
430
|
+
name: "这里是名称",
|
|
431
|
+
link: "https://www.baidu.com"
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
id: o(),
|
|
437
|
+
title: "这里是标题",
|
|
438
|
+
links: [
|
|
439
|
+
{
|
|
440
|
+
id: o(),
|
|
441
|
+
name: "这里是名称",
|
|
442
|
+
link: "https://www.baidu.com"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
id: o(),
|
|
446
|
+
name: "这里是名称",
|
|
447
|
+
link: "https://www.baidu.com"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
id: o(),
|
|
451
|
+
name: "这里是名称",
|
|
452
|
+
link: "https://www.baidu.com"
|
|
453
|
+
}
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
]
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
V("update:modelValue", u);
|
|
460
|
+
}, s = S(!1), v = S(!1), h = E(() => {
|
|
461
|
+
var b, x;
|
|
462
|
+
const u = (x = (b = w.modelValue) == null ? void 0 : b.data) == null ? void 0 : x.width;
|
|
463
|
+
return !u || u === "default" ? "container-content" : {
|
|
464
|
+
small: "container-content-small",
|
|
465
|
+
middle: "container-content-middle",
|
|
466
|
+
max: "container-content-max"
|
|
467
|
+
}[u] || "container-content";
|
|
468
|
+
}), M = () => {
|
|
469
|
+
V("handleDelete", w.modelValue.id);
|
|
470
|
+
}, I = () => {
|
|
471
|
+
V("handleCopy", w.modelValue);
|
|
472
|
+
}, T = (u) => {
|
|
473
|
+
V("handlePaste", u);
|
|
474
|
+
};
|
|
475
|
+
return U(), (u, r) => {
|
|
476
|
+
var b, x;
|
|
477
|
+
return k(), g(F, null, [
|
|
478
|
+
P.value ? (k(), g("div", {
|
|
479
|
+
key: 0,
|
|
480
|
+
class: "gridLinks_wrap",
|
|
481
|
+
onMouseenter: r[2] || (r[2] = (f) => s.value = !0),
|
|
482
|
+
onMouseleave: r[3] || (r[3] = (f) => s.value = !1)
|
|
483
|
+
}, [
|
|
484
|
+
a("div", {
|
|
485
|
+
class: re(h.value)
|
|
486
|
+
}, [
|
|
487
|
+
a("div", {
|
|
488
|
+
class: "grid-links__row",
|
|
489
|
+
style: ue({
|
|
490
|
+
"--grid-columns-mobile": u.mobileCol,
|
|
491
|
+
"--grid-columns-desktop": u.desktopCol
|
|
492
|
+
})
|
|
493
|
+
}, [
|
|
494
|
+
(k(!0), g(F, null, ae((x = (b = m.modelValue) == null ? void 0 : b.data) == null ? void 0 : x.list, (f, B) => (k(), g("div", {
|
|
495
|
+
class: "grid-links__item",
|
|
496
|
+
key: `${f.title}-${B}`
|
|
497
|
+
}, [
|
|
498
|
+
a("h6", {
|
|
499
|
+
class: "grid-links__item__title",
|
|
500
|
+
innerHTML: f.title
|
|
501
|
+
}, null, 8, $e),
|
|
502
|
+
f.links ? (k(), g("ul", Se, [
|
|
503
|
+
(k(!0), g(F, null, ae(f.links, ($, N) => (k(), g("li", {
|
|
504
|
+
key: `${$.name}-${N}`,
|
|
505
|
+
class: "grid-links__subitem"
|
|
506
|
+
}, [
|
|
507
|
+
$.link ? (k(), g("div", {
|
|
508
|
+
key: 0,
|
|
509
|
+
onClick: (G) => H($.link),
|
|
510
|
+
class: "link_text"
|
|
511
|
+
}, [
|
|
512
|
+
_(A($.name) + " ", 1),
|
|
513
|
+
r[5] || (r[5] = a("span", { class: "link_text__underline" }, null, -1))
|
|
514
|
+
], 8, Le)) : (k(), g("div", Pe, A($.name), 1))
|
|
515
|
+
]))), 128))
|
|
516
|
+
])) : L("", !0)
|
|
517
|
+
]))), 128))
|
|
518
|
+
], 4)
|
|
519
|
+
], 2),
|
|
520
|
+
m.isPreview ? L("", !0) : (k(), j(ce, {
|
|
521
|
+
key: 0,
|
|
522
|
+
show: s.value,
|
|
523
|
+
"onUpdate:show": r[0] || (r[0] = (f) => s.value = f),
|
|
524
|
+
onHandleEdit: r[1] || (r[1] = (f) => v.value = !0),
|
|
525
|
+
onHandleDelete: M,
|
|
526
|
+
onHandleCopy: I,
|
|
527
|
+
onHandlePaste: T
|
|
528
|
+
}, null, 8, ["show"]))
|
|
529
|
+
], 32)) : L("", !0),
|
|
530
|
+
m.isPreview ? L("", !0) : (k(), j(xe, {
|
|
531
|
+
key: 1,
|
|
532
|
+
show: v.value,
|
|
533
|
+
"onUpdate:show": r[4] || (r[4] = (f) => v.value = f),
|
|
534
|
+
data: m.modelValue
|
|
535
|
+
}, null, 8, ["show", "data"]))
|
|
536
|
+
], 64);
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
}), Ee = /* @__PURE__ */ ie(Ue, [["__scopeId", "data-v-ed90ae1e"]]);
|
|
540
|
+
export {
|
|
541
|
+
Ee as default
|
|
542
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index-0C0pBmhT.js");exports.AlummiCommunityList=a.a3;exports.AlummiCommunityListPlugin=a.b3;exports.AnimationUtils=a.bp;exports.ArticleItem=a.s;exports.ArticleItemPlugin=a.aF;exports.ArticleList=a.A;exports.ArticleListPlugin=a.an;exports.ArticleListPureText=a.ad;exports.ArticleListPureTextPlugin=a.bc;exports.BannerImage=a.B;exports.BannerImagePlugin=a.ao;exports.BannerImageWithLink=a.E;exports.BannerImageWithLinkPlugin=a.aP;exports.BannerPage=a.f;exports.BannerPagePlugin=a.ap;exports.BannerQuote=a.q;exports.BannerQuotePlugin=a.aE;exports.BasicCollapse=a.X;exports.BasicCollapsePlugin=a.aZ;exports.BlessingMessage=a.a4;exports.BlessingMessagePlugin=a.b4;exports.BlessingSlider=a.a5;exports.BlessingSliderPlugin=a.b5;exports.BtnList=a.h;exports.BtnListPlugin=a.aq;exports.CardCarousel=a.o;exports.CardCarouselArticles=a.J;exports.CardCarouselArticlesPlugin=a.aU;exports.CardCarouselMultiRow=a.p;exports.CardCarouselMultiRowArticles=a.a2;exports.CardCarouselMultiRowArticlesPlugin=a.b2;exports.CardCarouselMultiRowPlugin=a.aD;exports.CardCarouselMultiRowPublications=a.a9;exports.CardCarouselMultiRowPublicationsPlugin=a.b9;exports.CardCarouselPlugin=a.aC;exports.CardListCircle=a.ah;exports.CardListCirclePlugin=a.bg;exports.CardListProgramme=a.ag;exports.CardListProgrammePlugin=a.bf;exports.CardListSchool=a.ai;exports.CardListSchoolPlugin=a.bh;exports.CardShowcase=a.a6;exports.CardShowcasePlugin=a.b6;exports.CardShowcaseProfile=a.v;exports.CardShowcaseProfilePlugin=a.aK;exports.CarouselLogo=a.K;exports.CarouselLogoPlugin=a.aV;exports.ContactUsInfo=a.F;exports.ContactUsInfoPlugin=a.aR;exports.ContactUsList=a.y;exports.ContactUsListPlugin=a.aM;exports.CountDown=a.w;exports.CountDownPlugin=a.aL;exports.CustomIframe=a.x;exports.CustomIframePlugin=a.aN;exports.CustomSpace=a.C;exports.CustomSpacePlugin=a.aw;exports.CustomText=a.aa;exports.CustomTextPlugin=a.aa;exports.DetailLink=a.ak;exports.DetailLinkPlugin=a.bj;exports.Disc=a.W;exports.DiscPlugin=a.aY;exports.DonorLinks=a.D;exports.DonorLinksPlugin=a.aB;exports.ExploreLinks=a.a7;exports.ExploreLinksPlugin=a.b7;exports.GalleryBlock=a.a1;exports.GalleryBlockPlugin=a.b1;exports.GalleryCaptionRound=a.j;exports.GalleryCaptionRoundPlugin=a.as;exports.GalleryDefault=a.G;exports.GalleryDefaultPlugin=a.ar;exports.GalleryList=a.n;exports.GalleryListPlugin=a.ax;exports.GalleryTimeline=a.k;exports.GalleryTimelineCol=a.l;exports.GalleryTimelineColPlugin=a.au;exports.GalleryTimelinePlugin=a.at;exports.HeroSlide=a.H;exports.HeroSlidePlugin=a.ay;exports.InformationLink=a.al;exports.InformationLinkPlugin=a.bk;exports.LinkList=a.L;exports.LinkListPlugin=a.az;exports.MapStatic=a.M;exports.MapStaticPlugin=a.aT;exports.MediaImageFull=a.ab;exports.MediaImageFullPlugin=a.ba;exports.MediaImageStatic=a.ac;exports.MediaImageStaticPlugin=a.bb;exports.MediaLogo=a.Z;exports.MediaLogoPlugin=a.a$;exports.MediaVideo=a.aj;exports.MediaVideoPlugin=a.bi;exports.NewsList=a.N;exports.NewsListPlugin=a.aI;exports.Process=a.m;exports.ProcessPlugin=a.av;exports.Publications=a.I;exports.PublicationsPlugin=a.aS;exports.QuoteText=a.b;exports.QuoteTextPlugin=a.aA;exports.RegisterForm=a.a0;exports.RegisterFormPlugin=a.b0;exports.Resources=a.Q;exports.ResourcesPlugin=a.aW;exports.ResourcesTwo=a.V;exports.ResourcesTwoPlugin=a.aX;exports.ResponsiveUtils=a.bo;exports.RibbonBlock=a.R;exports.RibbonBlockPlugin=a.aG;exports.SchoolLayout=a.a8;exports.SchoolLayoutPlugin=a.b8;exports.ScrollKeyInfo=a.S;exports.ScrollKeyInfoPlugin=a.aQ;exports.StorageUtils=a.bq;exports.TabDefault=a.ae;exports.TabDefaultPlugin=a.bd;exports.TabPage=a.am;exports.TabPagePlugin=a.bl;exports.TabTimeLine=a.af;exports.TabTimeLinePlugin=a.be;exports.TableCollapse=a.Y;exports.TableCollapsePlugin=a.a_;exports.TableTwo=a.z;exports.TableTwoPlugin=a.aO;exports.TheHistoryCarousel=a.t;exports.TheHistoryCarouselPlugin=a.aJ;exports.ThemeUtils=a.bn;exports.TimelineStory=a.T;exports.TimelineStoryPlugin=a.aH;exports.default=a.e;exports.useTheme=a.bm;
|