vue-color-ui 0.0.10 → 0.0.11
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/lib/temp-color-ui.js +381 -369
- package/lib/temp-color-ui.umd.cjs +2 -2
- package/package.json +1 -1
- package/type/index.d.ts +5 -3
- package/types/pkg/NavBar/index.vue.d.ts +13 -59
package/lib/temp-color-ui.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as f, openBlock as n, createElementBlock as l, Fragment as g, renderList as v, normalizeClass as i, normalizeStyle as $, createElementVNode as o, toDisplayString as c, createTextVNode as h, createCommentVNode as u, pushScopeId as ae, popScopeId as ce, computed as k, renderSlot as y, createBlock as I, inject as J, ref as j, provide as ee, watch as ie, onMounted as re, withDirectives as ue, vShow as de, withCtx as Q, createVNode as te } from "vue";
|
|
2
|
+
const pe = { class: "nav-list" }, _e = ["url"], fe = { class: "nav-title" }, ge = { class: "nav-name" }, he = {
|
|
3
3
|
name: "TNavCard"
|
|
4
|
-
}, z = /* @__PURE__ */
|
|
5
|
-
...
|
|
4
|
+
}, z = /* @__PURE__ */ f({
|
|
5
|
+
...he,
|
|
6
6
|
props: {
|
|
7
7
|
items: {}
|
|
8
8
|
},
|
|
9
9
|
setup(s) {
|
|
10
|
-
return (e, r) => (n(), l("div",
|
|
11
|
-
(n(!0), l(
|
|
10
|
+
return (e, r) => (n(), l("div", pe, [
|
|
11
|
+
(n(!0), l(g, null, v(e.items, (t, a) => (n(), l("div", {
|
|
12
12
|
"hover-class": "none",
|
|
13
13
|
url: "/pages/basics/" + t.name,
|
|
14
14
|
class: i(["nav-li", "bg-" + t.color]),
|
|
15
15
|
navigateTo: "",
|
|
16
|
-
style:
|
|
16
|
+
style: $([{ animation: "show " + ((a + 1) * 0.2 + 1) + "s 1" }]),
|
|
17
17
|
key: a
|
|
18
18
|
}, [
|
|
19
|
-
o("div",
|
|
20
|
-
o("div",
|
|
19
|
+
o("div", fe, c(t.title), 1),
|
|
20
|
+
o("div", ge, c(t.name), 1),
|
|
21
21
|
o("text", {
|
|
22
22
|
class: i("cuIcon-" + t.cuIcon)
|
|
23
23
|
}, null, 2)
|
|
@@ -28,15 +28,15 @@ const de = { class: "nav-list" }, _e = ["url"], pe = { class: "nav-title" }, fe
|
|
|
28
28
|
z.install = (s) => {
|
|
29
29
|
s.component(z.name, z);
|
|
30
30
|
};
|
|
31
|
-
const Y = (s) => (
|
|
31
|
+
const Y = (s) => (ae("data-v-bbdb83ff"), s = s(), ce(), s), me = { class: "cu-item shadow" }, be = { class: "title" }, ve = { class: "text-cut" }, $e = { class: "content" }, ye = ["src", "alt"], ke = { class: "desc" }, Ie = { class: "text-content" }, we = {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: "content flex-sub justify-between text-sm solid-top margin-top-sm",
|
|
34
34
|
style: { padding: "5px 15px" }
|
|
35
|
-
},
|
|
35
|
+
}, Ce = { class: "text-gray" }, xe = /* @__PURE__ */ Y(() => /* @__PURE__ */ o("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1)), Te = /* @__PURE__ */ Y(() => /* @__PURE__ */ o("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1)), Be = /* @__PURE__ */ Y(() => /* @__PURE__ */ o("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1)), je = { class: "margin-left-sm text-gray flex justify-between" }, Se = { class: "text-grey margin-right-xs" }, ze = {
|
|
36
36
|
name: "TNewCard"
|
|
37
37
|
// 组件名称
|
|
38
|
-
},
|
|
39
|
-
...
|
|
38
|
+
}, qe = /* @__PURE__ */ f({
|
|
39
|
+
...ze,
|
|
40
40
|
props: {
|
|
41
41
|
isCard: { type: Boolean, default: !0 },
|
|
42
42
|
title: { default: "无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。" },
|
|
@@ -56,36 +56,36 @@ const Y = (s) => (le("data-v-bbdb83ff"), s = s(), ae(), s), he = { class: "cu-it
|
|
|
56
56
|
return (e, r) => (n(), l("div", {
|
|
57
57
|
class: i(["cu-card article", e.isCard ? "" : "no-card"])
|
|
58
58
|
}, [
|
|
59
|
-
o("div",
|
|
59
|
+
o("div", me, [
|
|
60
60
|
o("div", be, [
|
|
61
|
-
o("div",
|
|
61
|
+
o("div", ve, c(e.title), 1)
|
|
62
62
|
]),
|
|
63
|
-
o("div",
|
|
63
|
+
o("div", $e, [
|
|
64
64
|
o("img", {
|
|
65
65
|
src: e.imageSrc,
|
|
66
66
|
alt: e.imageAlt
|
|
67
|
-
}, null, 8,
|
|
68
|
-
o("div",
|
|
69
|
-
o("div",
|
|
67
|
+
}, null, 8, ye),
|
|
68
|
+
o("div", ke, [
|
|
69
|
+
o("div", Ie, c(e.description), 1),
|
|
70
70
|
o("div", null, [
|
|
71
|
-
(n(!0), l(
|
|
71
|
+
(n(!0), l(g, null, v(e.tags, (t) => (n(), l("div", {
|
|
72
72
|
key: t,
|
|
73
73
|
class: "cu-tag bg-red light sm round"
|
|
74
74
|
}, c(t), 1))), 128))
|
|
75
75
|
])
|
|
76
76
|
])
|
|
77
77
|
]),
|
|
78
|
-
e.footerInfo ? (n(), l("div",
|
|
79
|
-
o("div",
|
|
80
|
-
Ce,
|
|
81
|
-
h(" " + c(e.footerInfo.likes) + " ", 1),
|
|
78
|
+
e.footerInfo ? (n(), l("div", we, [
|
|
79
|
+
o("div", Ce, [
|
|
82
80
|
xe,
|
|
83
|
-
h(" " + c(e.footerInfo.
|
|
81
|
+
h(" " + c(e.footerInfo.likes) + " ", 1),
|
|
84
82
|
Te,
|
|
83
|
+
h(" " + c(e.footerInfo.appreciations) + " ", 1),
|
|
84
|
+
Be,
|
|
85
85
|
h(" " + c(e.footerInfo.comments), 1)
|
|
86
86
|
]),
|
|
87
|
-
o("div",
|
|
88
|
-
o("div",
|
|
87
|
+
o("div", je, [
|
|
88
|
+
o("div", Se, c(e.footerInfo.author), 1),
|
|
89
89
|
h(" " + c(e.footerInfo.timeAgo), 1)
|
|
90
90
|
])
|
|
91
91
|
])) : u("", !0)
|
|
@@ -97,17 +97,17 @@ const Y = (s) => (le("data-v-bbdb83ff"), s = s(), ae(), s), he = { class: "cu-it
|
|
|
97
97
|
for (const [t, a] of e)
|
|
98
98
|
r[t] = a;
|
|
99
99
|
return r;
|
|
100
|
-
}, q = /* @__PURE__ */ Z(
|
|
100
|
+
}, q = /* @__PURE__ */ Z(qe, [["__scopeId", "data-v-bbdb83ff"]]);
|
|
101
101
|
q.install = (s) => {
|
|
102
102
|
s.component(q.name, q);
|
|
103
103
|
};
|
|
104
|
-
const
|
|
104
|
+
const Ve = { class: "cu-item shadow" }, Ne = { class: "cu-list menu-avatar" }, De = { class: "cu-item" }, Ee = { class: "content flex-sub" }, Ae = { class: "text-gray text-sm flex justify-between" }, Ue = { class: "text-content" }, Le = { class: "text-gray text-sm text-right padding" }, Me = /* @__PURE__ */ o("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), Fe = /* @__PURE__ */ o("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), Re = /* @__PURE__ */ o("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), Oe = { class: "cu-item" }, Ge = { class: "content" }, Ke = { class: "text-grey" }, Xe = { class: "text-gray text-content text-df" }, Pe = { class: "flex" }, We = { class: "flex-sub" }, He = { class: "margin-top-sm flex justify-between" }, Je = { class: "text-gray text-df" }, Qe = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "cuIcon-appreciatefill text-red"
|
|
107
|
-
},
|
|
107
|
+
}, Ye = /* @__PURE__ */ o("span", { class: "cuIcon-messagefill text-gray margin-left-sm" }, null, -1), Ze = { class: "text-gray margin-left-xs" }, et = {
|
|
108
108
|
name: "TShareCard"
|
|
109
|
-
}, V = /* @__PURE__ */
|
|
110
|
-
...
|
|
109
|
+
}, V = /* @__PURE__ */ f({
|
|
110
|
+
...et,
|
|
111
111
|
props: {
|
|
112
112
|
isCard: { type: Boolean, default: !0 },
|
|
113
113
|
author: { default: "凯尔" },
|
|
@@ -159,16 +159,16 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
|
|
|
159
159
|
o("div", {
|
|
160
160
|
class: i(["cu-card dynamic", e.isCard ? "is-card" : "no-card"])
|
|
161
161
|
}, [
|
|
162
|
-
o("div",
|
|
163
|
-
o("div",
|
|
164
|
-
o("div",
|
|
162
|
+
o("div", Ve, [
|
|
163
|
+
o("div", Ne, [
|
|
164
|
+
o("div", De, [
|
|
165
165
|
o("div", {
|
|
166
166
|
class: "cu-avatar round lg",
|
|
167
|
-
style:
|
|
167
|
+
style: $({ backgroundImage: `url(${e.avatarUrl})` })
|
|
168
168
|
}, null, 4),
|
|
169
|
-
o("div",
|
|
169
|
+
o("div", Ee, [
|
|
170
170
|
o("div", null, c(e.author), 1),
|
|
171
|
-
o("div",
|
|
171
|
+
o("div", Ae, c(e.date), 1)
|
|
172
172
|
])
|
|
173
173
|
])
|
|
174
174
|
]),
|
|
@@ -176,21 +176,21 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
|
|
|
176
176
|
o("div", {
|
|
177
177
|
class: i(["grid flex-sub padding-lr", e.isCard ? "col-3 grid-square" : "col-1"])
|
|
178
178
|
}, [
|
|
179
|
-
(n(!0), l(
|
|
179
|
+
(n(!0), l(g, null, v(e.isCard ? 9 : 1, (t) => (n(), l("div", {
|
|
180
180
|
class: i(["bg-img", e.isCard ? "" : "only-img"]),
|
|
181
|
-
style:
|
|
181
|
+
style: $({ backgroundImage: `url(${e.imageUrl})` }),
|
|
182
182
|
key: t
|
|
183
183
|
}, null, 6))), 128))
|
|
184
184
|
], 2),
|
|
185
|
-
o("div",
|
|
186
|
-
Le,
|
|
187
|
-
h(" " + c(e.likes) + " ", 1),
|
|
185
|
+
o("div", Le, [
|
|
188
186
|
Me,
|
|
189
|
-
h(" " + c(e.
|
|
187
|
+
h(" " + c(e.likes) + " ", 1),
|
|
190
188
|
Fe,
|
|
189
|
+
h(" " + c(e.appreciations) + " ", 1),
|
|
190
|
+
Re,
|
|
191
191
|
h(" " + c(e.comments), 1)
|
|
192
192
|
]),
|
|
193
|
-
(n(!0), l(
|
|
193
|
+
(n(!0), l(g, null, v(e.commentsList, (t) => {
|
|
194
194
|
var a;
|
|
195
195
|
return n(), l("div", {
|
|
196
196
|
class: "cu-list menu-avatar comment solids-top",
|
|
@@ -199,26 +199,26 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
|
|
|
199
199
|
o("div", Oe, [
|
|
200
200
|
o("div", {
|
|
201
201
|
class: "cu-avatar round",
|
|
202
|
-
style:
|
|
202
|
+
style: $({ backgroundImage: `url(${t.avatarUrl})` })
|
|
203
203
|
}, null, 4),
|
|
204
|
-
o("div",
|
|
205
|
-
o("div",
|
|
204
|
+
o("div", Ge, [
|
|
205
|
+
o("div", Ke, c(t.author), 1),
|
|
206
206
|
o("div", Xe, c(t.text), 1),
|
|
207
|
-
(n(!0), l(
|
|
207
|
+
(n(!0), l(g, null, v(t.replies, (d) => (n(), l("div", {
|
|
208
208
|
key: d.id,
|
|
209
209
|
class: "bg-grey padding-sm radius margin-top-sm text-sm"
|
|
210
210
|
}, [
|
|
211
|
-
o("div",
|
|
211
|
+
o("div", Pe, [
|
|
212
212
|
o("div", null, c(d.author) + ":", 1),
|
|
213
|
-
o("div",
|
|
213
|
+
o("div", We, c(d.text), 1)
|
|
214
214
|
])
|
|
215
215
|
]))), 128)),
|
|
216
216
|
o("div", He, [
|
|
217
217
|
o("div", Je, c(t.date), 1),
|
|
218
218
|
o("div", null, [
|
|
219
219
|
t.likes ? (n(), l("span", Qe)) : u("", !0),
|
|
220
|
-
|
|
221
|
-
o("span",
|
|
220
|
+
Ye,
|
|
221
|
+
o("span", Ze, c((a = t.replies) == null ? void 0 : a.length), 1)
|
|
222
222
|
])
|
|
223
223
|
])
|
|
224
224
|
])
|
|
@@ -233,7 +233,7 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
|
|
|
233
233
|
V.install = (s) => {
|
|
234
234
|
s.component(V.name, V);
|
|
235
235
|
};
|
|
236
|
-
const
|
|
236
|
+
const tt = {
|
|
237
237
|
ssss: "2px",
|
|
238
238
|
sss: "4px",
|
|
239
239
|
ss: "8px",
|
|
@@ -245,45 +245,45 @@ const et = {
|
|
|
245
245
|
xxl: "30px",
|
|
246
246
|
xxxl: "48px"
|
|
247
247
|
};
|
|
248
|
-
function
|
|
248
|
+
function st(s, e, r = "px") {
|
|
249
249
|
if (typeof e == "number")
|
|
250
250
|
return `${s}: ${e}${r};`;
|
|
251
|
-
const t =
|
|
251
|
+
const t = tt[e];
|
|
252
252
|
return t ? `${s}: ${t};` : "";
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
return
|
|
254
|
+
function ot(s) {
|
|
255
|
+
return st("font-size", s);
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const nt = {
|
|
258
258
|
name: "TIcon"
|
|
259
|
-
},
|
|
260
|
-
...
|
|
259
|
+
}, T = /* @__PURE__ */ f({
|
|
260
|
+
...nt,
|
|
261
261
|
props: {
|
|
262
262
|
name: {},
|
|
263
263
|
color: { default: "grey" },
|
|
264
264
|
size: { default: 15 }
|
|
265
265
|
},
|
|
266
266
|
setup(s) {
|
|
267
|
-
const e = s, r =
|
|
267
|
+
const e = s, r = k(() => ot(e.size));
|
|
268
268
|
return (t, a) => (n(), l("i", {
|
|
269
269
|
class: i(`cuIcon-${t.name} text-${t.color}`),
|
|
270
|
-
style:
|
|
270
|
+
style: $(r.value)
|
|
271
271
|
}, null, 6));
|
|
272
272
|
}
|
|
273
|
-
}),
|
|
273
|
+
}), lt = { class: "action border-title" }, at = { class: "action border-title" }, ct = { class: "tib text-xl text-bold text-blue" }, it = /* @__PURE__ */ o("div", {
|
|
274
274
|
class: "tib bg-gradual-blue",
|
|
275
275
|
style: { width: "3rem" }
|
|
276
|
-
}, null, -1),
|
|
276
|
+
}, null, -1), rt = { class: "action sub-title" }, ut = { class: "tib text-xl text-bold text-green" }, dt = /* @__PURE__ */ o("div", {
|
|
277
277
|
class: "tib bg-green",
|
|
278
278
|
style: { width: "2rem" }
|
|
279
|
-
}, null, -1),
|
|
279
|
+
}, null, -1), pt = { class: "action sub-title" }, _t = { class: "tib text-xl text-bold text-blue" }, ft = { class: "tib text-ABC text-blue" }, gt = { class: "action title-style-3" }, ht = {
|
|
280
280
|
key: 5,
|
|
281
281
|
class: "cu-bar bg-white"
|
|
282
|
-
},
|
|
282
|
+
}, mt = { class: "action" }, bt = {
|
|
283
283
|
key: 6,
|
|
284
284
|
class: "cu-bar bg-white solid-bottom"
|
|
285
|
-
},
|
|
286
|
-
|
|
285
|
+
}, vt = { class: "action" }, $t = { class: "action" }, yt = { name: "TTitle" }, N = /* @__PURE__ */ f({
|
|
286
|
+
...yt,
|
|
287
287
|
props: {
|
|
288
288
|
title: { default: "主题名称" },
|
|
289
289
|
deputy: { default: "about" },
|
|
@@ -298,7 +298,7 @@ const ot = {
|
|
|
298
298
|
key: 0,
|
|
299
299
|
class: i(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
|
|
300
300
|
}, [
|
|
301
|
-
o("div",
|
|
301
|
+
o("div", lt, [
|
|
302
302
|
o("div", {
|
|
303
303
|
class: i(["tib text-xl", `text-${e.color}`])
|
|
304
304
|
}, c(e.title), 3),
|
|
@@ -311,31 +311,31 @@ const ot = {
|
|
|
311
311
|
key: 1,
|
|
312
312
|
class: i(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
|
|
313
313
|
}, [
|
|
314
|
-
o("div",
|
|
315
|
-
o("div",
|
|
316
|
-
|
|
314
|
+
o("div", at, [
|
|
315
|
+
o("div", ct, c(e.title), 1),
|
|
316
|
+
it
|
|
317
317
|
])
|
|
318
318
|
], 2)) : e.mode === "default3" ? (n(), l("div", {
|
|
319
319
|
key: 2,
|
|
320
320
|
class: i(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
|
|
321
321
|
}, [
|
|
322
|
-
o("div",
|
|
323
|
-
o("div",
|
|
324
|
-
|
|
322
|
+
o("div", rt, [
|
|
323
|
+
o("div", ut, c(e.title), 1),
|
|
324
|
+
dt
|
|
325
325
|
])
|
|
326
326
|
], 2)) : e.mode === "default4" ? (n(), l("div", {
|
|
327
327
|
key: 3,
|
|
328
328
|
class: i(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
|
|
329
329
|
}, [
|
|
330
|
-
o("div",
|
|
330
|
+
o("div", pt, [
|
|
331
331
|
o("div", _t, c(e.title), 1),
|
|
332
|
-
o("div",
|
|
332
|
+
o("div", ft, c(e.deputy), 1)
|
|
333
333
|
])
|
|
334
334
|
], 2)) : e.mode === "bilingual" ? (n(), l("div", {
|
|
335
335
|
key: 4,
|
|
336
336
|
class: i(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
|
|
337
337
|
}, [
|
|
338
|
-
o("div",
|
|
338
|
+
o("div", gt, [
|
|
339
339
|
o("div", {
|
|
340
340
|
class: i(["tib", `text-${e.color}`])
|
|
341
341
|
}, c(e.title), 3),
|
|
@@ -343,8 +343,8 @@ const ot = {
|
|
|
343
343
|
class: i(["tib text-Abc self-end margin-left-sm", `text-${e.decorateColor}`])
|
|
344
344
|
}, c(e.deputy), 3)
|
|
345
345
|
])
|
|
346
|
-
], 2)) : e.mode === "icon-title" ? (n(), l("div",
|
|
347
|
-
o("div",
|
|
346
|
+
], 2)) : e.mode === "icon-title" ? (n(), l("div", ht, [
|
|
347
|
+
o("div", mt, [
|
|
348
348
|
o("i", {
|
|
349
349
|
class: i(`cuIcon-${e.icon} text-${e.color}`)
|
|
350
350
|
}, null, 2),
|
|
@@ -353,21 +353,21 @@ const ot = {
|
|
|
353
353
|
}, c(e.title), 3)
|
|
354
354
|
])
|
|
355
355
|
])) : (n(), l("div", bt, [
|
|
356
|
-
o("div",
|
|
356
|
+
o("div", vt, [
|
|
357
357
|
o("i", {
|
|
358
358
|
class: i(`cuIcon-${e.icon} text-${e.color}`)
|
|
359
359
|
}, null, 2),
|
|
360
|
-
|
|
360
|
+
y(e.$slots, "default")
|
|
361
361
|
]),
|
|
362
|
-
o("div",
|
|
363
|
-
|
|
362
|
+
o("div", $t, [
|
|
363
|
+
y(e.$slots, "action")
|
|
364
364
|
])
|
|
365
365
|
]));
|
|
366
366
|
}
|
|
367
|
-
}),
|
|
367
|
+
}), kt = {
|
|
368
368
|
name: "TAvatar"
|
|
369
|
-
},
|
|
370
|
-
...
|
|
369
|
+
}, w = /* @__PURE__ */ f({
|
|
370
|
+
...kt,
|
|
371
371
|
props: {
|
|
372
372
|
url: {},
|
|
373
373
|
size: { default: "lg" },
|
|
@@ -377,36 +377,36 @@ const ot = {
|
|
|
377
377
|
return (e, r) => e.url ? (n(), l("div", {
|
|
378
378
|
key: 0,
|
|
379
379
|
class: i(["cu-avatar", e.size, e.mode]),
|
|
380
|
-
style:
|
|
380
|
+
style: $({ backgroundImage: `url(${e.url})` })
|
|
381
381
|
}, null, 6)) : (n(), l("div", {
|
|
382
382
|
key: 1,
|
|
383
383
|
class: i(["padding-xs", ["cu-avatar", e.size, e.mode]])
|
|
384
384
|
}, [
|
|
385
|
-
|
|
385
|
+
y(e.$slots, "default")
|
|
386
386
|
], 2));
|
|
387
387
|
}
|
|
388
|
-
}),
|
|
388
|
+
}), It = { class: "cu-avatar-group" }, wt = {
|
|
389
389
|
name: "TAvatarGroup"
|
|
390
|
-
}, D = /* @__PURE__ */
|
|
391
|
-
...
|
|
390
|
+
}, D = /* @__PURE__ */ f({
|
|
391
|
+
...wt,
|
|
392
392
|
props: {
|
|
393
393
|
urls: { default: () => [] },
|
|
394
394
|
size: { default: "sm" },
|
|
395
395
|
mode: { default: "round" }
|
|
396
396
|
},
|
|
397
397
|
setup(s) {
|
|
398
|
-
return (e, r) => (n(), l("div",
|
|
399
|
-
(n(!0), l(
|
|
398
|
+
return (e, r) => (n(), l("div", It, [
|
|
399
|
+
(n(!0), l(g, null, v(e.urls, (t, a) => (n(), I(w, {
|
|
400
400
|
key: a,
|
|
401
401
|
url: t,
|
|
402
402
|
size: e.size
|
|
403
403
|
}, null, 8, ["url", "size"]))), 128))
|
|
404
404
|
]));
|
|
405
405
|
}
|
|
406
|
-
}),
|
|
406
|
+
}), Ct = ["disabled"], xt = { key: 1 }, Tt = {
|
|
407
407
|
name: "TButton"
|
|
408
|
-
}, E = /* @__PURE__ */
|
|
409
|
-
...
|
|
408
|
+
}, E = /* @__PURE__ */ f({
|
|
409
|
+
...Tt,
|
|
410
410
|
props: {
|
|
411
411
|
text: {},
|
|
412
412
|
bg: { default: "blue" },
|
|
@@ -417,35 +417,35 @@ const ot = {
|
|
|
417
417
|
shadow: { type: Boolean, default: !1 }
|
|
418
418
|
},
|
|
419
419
|
setup(s) {
|
|
420
|
-
const e = s, r =
|
|
420
|
+
const e = s, r = k(() => [
|
|
421
421
|
"cu-btn",
|
|
422
422
|
e.rounded ? "round" : "radius",
|
|
423
423
|
e.shadow ? "shadow" : "",
|
|
424
424
|
`bg-${e.bg}`,
|
|
425
425
|
e.size !== "default" ? e.size : ""
|
|
426
|
-
].join(" ")), t =
|
|
426
|
+
].join(" ")), t = k(() => ({
|
|
427
427
|
cursor: e.disabled ? "not-allowed" : "pointer"
|
|
428
|
-
})), a =
|
|
428
|
+
})), a = k(() => ({
|
|
429
429
|
marginRight: e.text ? "8px" : "0"
|
|
430
430
|
}));
|
|
431
|
-
return (d,
|
|
431
|
+
return (d, p) => (n(), l("button", {
|
|
432
432
|
class: i(r.value),
|
|
433
|
-
style:
|
|
433
|
+
style: $(t.value),
|
|
434
434
|
disabled: d.disabled
|
|
435
435
|
}, [
|
|
436
|
-
|
|
436
|
+
y(d.$slots, "default"),
|
|
437
437
|
d.icon ? (n(), l("i", {
|
|
438
438
|
key: 0,
|
|
439
439
|
class: i(`cuIcon-${d.icon}`),
|
|
440
|
-
style:
|
|
440
|
+
style: $(a.value)
|
|
441
441
|
}, null, 6)) : u("", !0),
|
|
442
|
-
d.text ? (n(), l("span",
|
|
443
|
-
], 14,
|
|
442
|
+
d.text ? (n(), l("span", xt, c(d.text), 1)) : u("", !0)
|
|
443
|
+
], 14, Ct));
|
|
444
444
|
}
|
|
445
|
-
}),
|
|
445
|
+
}), Bt = { key: 0 }, jt = {
|
|
446
446
|
name: "TTag"
|
|
447
|
-
},
|
|
448
|
-
...
|
|
447
|
+
}, St = /* @__PURE__ */ f({
|
|
448
|
+
...jt,
|
|
449
449
|
props: {
|
|
450
450
|
text: {},
|
|
451
451
|
bg: { default: "blue" },
|
|
@@ -455,30 +455,30 @@ const ot = {
|
|
|
455
455
|
line: { type: Boolean, default: !1 }
|
|
456
456
|
},
|
|
457
457
|
setup(s) {
|
|
458
|
-
const e = s, r =
|
|
458
|
+
const e = s, r = k(() => [
|
|
459
459
|
"cu-tag",
|
|
460
460
|
e.shape !== "default" ? e.shape : "",
|
|
461
461
|
e.light ? "light" : "",
|
|
462
462
|
`${e.line ? "line" : "bg"}-${e.bg}`,
|
|
463
463
|
e.size !== "default" ? e.size : ""
|
|
464
|
-
].join(" ")), t =
|
|
464
|
+
].join(" ")), t = k(() => ({}));
|
|
465
465
|
return (a, d) => (n(), l("div", {
|
|
466
466
|
class: i(r.value),
|
|
467
|
-
style:
|
|
467
|
+
style: $(t.value)
|
|
468
468
|
}, [
|
|
469
|
-
|
|
470
|
-
a.text ? (n(), l("span",
|
|
469
|
+
y(a.$slots, "default", {}, void 0, !0),
|
|
470
|
+
a.text ? (n(), l("span", Bt, c(a.text), 1)) : u("", !0)
|
|
471
471
|
], 6));
|
|
472
472
|
}
|
|
473
|
-
}),
|
|
474
|
-
|
|
475
|
-
s.component(
|
|
473
|
+
}), C = /* @__PURE__ */ Z(St, [["__scopeId", "data-v-3c2b82ce"]]);
|
|
474
|
+
T.install = (s) => {
|
|
475
|
+
s.component(T.name, T);
|
|
476
476
|
};
|
|
477
477
|
N.install = (s) => {
|
|
478
478
|
s.component(N.name, N);
|
|
479
479
|
};
|
|
480
|
-
|
|
481
|
-
s.component(
|
|
480
|
+
w.install = (s) => {
|
|
481
|
+
s.component(w.name, w);
|
|
482
482
|
};
|
|
483
483
|
D.install = (s) => {
|
|
484
484
|
s.component(D.name, D);
|
|
@@ -486,22 +486,50 @@ D.install = (s) => {
|
|
|
486
486
|
E.install = (s) => {
|
|
487
487
|
s.component(E.name, E);
|
|
488
488
|
};
|
|
489
|
-
|
|
490
|
-
s.component(
|
|
489
|
+
C.install = (s) => {
|
|
490
|
+
s.component(C.name, C);
|
|
491
491
|
};
|
|
492
|
-
|
|
492
|
+
/*!
|
|
493
|
+
* vue-router v4.3.3
|
|
494
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
495
|
+
* @license MIT
|
|
496
|
+
*/
|
|
497
|
+
var se;
|
|
498
|
+
(function(s) {
|
|
499
|
+
s.pop = "pop", s.push = "push";
|
|
500
|
+
})(se || (se = {}));
|
|
501
|
+
var oe;
|
|
502
|
+
(function(s) {
|
|
503
|
+
s.back = "back", s.forward = "forward", s.unknown = "";
|
|
504
|
+
})(oe || (oe = {}));
|
|
505
|
+
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
506
|
+
var ne;
|
|
507
|
+
(function(s) {
|
|
508
|
+
s[s.aborted = 4] = "aborted", s[s.cancelled = 8] = "cancelled", s[s.duplicated = 16] = "duplicated";
|
|
509
|
+
})(ne || (ne = {}));
|
|
510
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
511
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
512
|
+
const zt = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), qt = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
513
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
514
|
+
function le() {
|
|
515
|
+
return J(zt);
|
|
516
|
+
}
|
|
517
|
+
function Vt() {
|
|
518
|
+
return J(qt);
|
|
519
|
+
}
|
|
520
|
+
const Nt = ["onClick"], Dt = {
|
|
493
521
|
key: 0,
|
|
494
522
|
class: "cuIcon-cu-image"
|
|
495
|
-
},
|
|
523
|
+
}, Et = ["src"], At = {
|
|
496
524
|
key: 0,
|
|
497
525
|
class: "cu-tag badge"
|
|
498
|
-
},
|
|
526
|
+
}, Ut = {
|
|
499
527
|
key: 0,
|
|
500
528
|
class: "cu-tag badge"
|
|
501
|
-
},
|
|
529
|
+
}, Lt = {
|
|
502
530
|
name: "TNavBar"
|
|
503
|
-
},
|
|
504
|
-
...
|
|
531
|
+
}, A = /* @__PURE__ */ f({
|
|
532
|
+
...Lt,
|
|
505
533
|
props: {
|
|
506
534
|
bg: { default: "white" },
|
|
507
535
|
color: { default: "gray" },
|
|
@@ -510,65 +538,75 @@ const St = {
|
|
|
510
538
|
{
|
|
511
539
|
icon: "homefill",
|
|
512
540
|
label: "首页",
|
|
541
|
+
path: "/home",
|
|
513
542
|
active: !0
|
|
514
543
|
},
|
|
515
544
|
{
|
|
516
545
|
icon: "similar",
|
|
517
|
-
label: "分类"
|
|
546
|
+
label: "分类",
|
|
547
|
+
path: "/category"
|
|
518
548
|
},
|
|
519
549
|
{
|
|
520
550
|
img: "https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",
|
|
521
|
-
label: "积分"
|
|
551
|
+
label: "积分",
|
|
552
|
+
path: "/points"
|
|
522
553
|
},
|
|
523
554
|
{
|
|
524
555
|
icon: "cart",
|
|
525
556
|
label: "购物车",
|
|
557
|
+
path: "/cart",
|
|
526
558
|
badge: 99
|
|
527
559
|
},
|
|
528
560
|
{
|
|
529
561
|
icon: "my",
|
|
530
|
-
label: "我的"
|
|
562
|
+
label: "我的",
|
|
563
|
+
path: "/profile"
|
|
531
564
|
}
|
|
532
565
|
] },
|
|
533
|
-
isFoot: { type: Boolean, default: !1 }
|
|
566
|
+
isFoot: { type: Boolean, default: !1 },
|
|
567
|
+
onItemClick: {}
|
|
534
568
|
},
|
|
535
569
|
setup(s) {
|
|
536
|
-
|
|
537
|
-
|
|
570
|
+
const e = s, r = le(), t = Vt(), a = (p) => p ? t.path.startsWith(p) : !1, d = (p) => {
|
|
571
|
+
p.path && r.push(p.path), e.onItemClick && e.onItemClick(p);
|
|
572
|
+
};
|
|
573
|
+
return (p, _) => (n(), l("div", {
|
|
574
|
+
class: i(["cu-bar tabbar", `bg-${p.bg} ${p.isFoot ? "foot" : ""}`])
|
|
538
575
|
}, [
|
|
539
|
-
(n(!0), l(
|
|
540
|
-
key:
|
|
541
|
-
class: i(["action", `text-${
|
|
576
|
+
(n(!0), l(g, null, v(p.items, (m, b) => (n(), l("div", {
|
|
577
|
+
key: b,
|
|
578
|
+
class: i(["action", `text-${a(m.path) ? p.activeColor : p.color}`]),
|
|
579
|
+
onClick: (x) => d(m)
|
|
542
580
|
}, [
|
|
543
|
-
|
|
581
|
+
m.img ? (n(), l("div", Dt, [
|
|
544
582
|
o("img", {
|
|
545
|
-
src:
|
|
583
|
+
src: m.img,
|
|
546
584
|
style: { width: "21px", height: "21px" },
|
|
547
585
|
class: "radius"
|
|
548
|
-
}, null, 8,
|
|
549
|
-
|
|
586
|
+
}, null, 8, Et),
|
|
587
|
+
m.badge ? (n(), l("div", At, c(m.badge), 1)) : u("", !0)
|
|
550
588
|
])) : (n(), l("div", {
|
|
551
589
|
key: 1,
|
|
552
|
-
class: i(`cuIcon-${
|
|
590
|
+
class: i(`cuIcon-${m.icon}`)
|
|
553
591
|
}, [
|
|
554
|
-
|
|
592
|
+
m.badge ? (n(), l("div", Ut, c(m.badge), 1)) : u("", !0)
|
|
555
593
|
], 2)),
|
|
556
|
-
o("div", null, c(
|
|
557
|
-
],
|
|
594
|
+
o("div", null, c(m.label), 1)
|
|
595
|
+
], 10, Nt))), 128))
|
|
558
596
|
], 2));
|
|
559
597
|
}
|
|
560
598
|
});
|
|
561
|
-
|
|
562
|
-
s.component(
|
|
599
|
+
A.install = (s) => {
|
|
600
|
+
s.component(A.name, A);
|
|
563
601
|
};
|
|
564
|
-
const
|
|
602
|
+
const Mt = {
|
|
565
603
|
key: 0,
|
|
566
604
|
class: "action"
|
|
567
|
-
},
|
|
605
|
+
}, Ft = { key: 1 }, Rt = { class: "content text-bold" }, Ot = {
|
|
568
606
|
key: 2,
|
|
569
607
|
class: "action"
|
|
570
|
-
},
|
|
571
|
-
...
|
|
608
|
+
}, Gt = { name: "TTopBar" }, U = /* @__PURE__ */ f({
|
|
609
|
+
...Gt,
|
|
572
610
|
props: {
|
|
573
611
|
title: {},
|
|
574
612
|
leftIcon: {},
|
|
@@ -583,20 +621,20 @@ const Dt = {
|
|
|
583
621
|
return (e, r) => (n(), l("div", {
|
|
584
622
|
class: i(["cu-bar", `bg-${e.bg}`])
|
|
585
623
|
}, [
|
|
586
|
-
e.leftIcon || e.leftText ? (n(), l("div",
|
|
624
|
+
e.leftIcon || e.leftText ? (n(), l("div", Mt, [
|
|
587
625
|
e.leftIcon ? (n(), l("text", {
|
|
588
626
|
key: 0,
|
|
589
627
|
class: i(`cuIcon-${e.leftIcon} text-${e.leftIconColor}`)
|
|
590
628
|
}, null, 2)) : u("", !0),
|
|
591
|
-
e.leftText ? (n(), l("span",
|
|
629
|
+
e.leftText ? (n(), l("span", Ft, c(e.leftText), 1)) : u("", !0)
|
|
592
630
|
])) : u("", !0),
|
|
593
631
|
e.avatarUrl ? (n(), l("div", {
|
|
594
632
|
key: 1,
|
|
595
633
|
class: "cu-avatar round",
|
|
596
|
-
style:
|
|
634
|
+
style: $({ backgroundImage: `url(${e.avatarUrl})` })
|
|
597
635
|
}, null, 4)) : u("", !0),
|
|
598
|
-
o("div",
|
|
599
|
-
e.rightIcon ? (n(), l("div",
|
|
636
|
+
o("div", Rt, c(e.title), 1),
|
|
637
|
+
e.rightIcon ? (n(), l("div", Ot, [
|
|
600
638
|
o("text", {
|
|
601
639
|
class: i(`cuIcon-${e.rightIcon} text-${e.rightIconColor}`)
|
|
602
640
|
}, null, 2)
|
|
@@ -604,16 +642,16 @@ const Dt = {
|
|
|
604
642
|
], 2));
|
|
605
643
|
}
|
|
606
644
|
});
|
|
607
|
-
|
|
608
|
-
s.component(
|
|
645
|
+
U.install = (s) => {
|
|
646
|
+
s.component(U.name, U);
|
|
609
647
|
};
|
|
610
|
-
const
|
|
648
|
+
const Kt = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Xt = { class: "action" }, Pt = {
|
|
611
649
|
key: 0,
|
|
612
650
|
class: "cu-btn bg-green shadow-blur round"
|
|
613
|
-
},
|
|
651
|
+
}, Wt = { key: 0 }, Ht = { key: 3 }, Jt = {
|
|
614
652
|
name: "TSearchBar"
|
|
615
|
-
}, L = /* @__PURE__ */
|
|
616
|
-
...
|
|
653
|
+
}, L = /* @__PURE__ */ f({
|
|
654
|
+
...Jt,
|
|
617
655
|
props: {
|
|
618
656
|
bgColor: { default: "white" },
|
|
619
657
|
borderRadiusClass: { default: "round" },
|
|
@@ -636,12 +674,12 @@ const Mt = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ft =
|
|
|
636
674
|
a.avatarUrl ? (n(), l("div", {
|
|
637
675
|
key: 0,
|
|
638
676
|
class: "cu-avatar round",
|
|
639
|
-
style:
|
|
677
|
+
style: $({ backgroundImage: `url(${a.avatarUrl})` })
|
|
640
678
|
}, null, 4)) : u("", !0),
|
|
641
679
|
o("div", {
|
|
642
680
|
class: i(["search-form", a.borderRadiusClass])
|
|
643
681
|
}, [
|
|
644
|
-
|
|
682
|
+
Kt,
|
|
645
683
|
o("input", {
|
|
646
684
|
onFocus: r,
|
|
647
685
|
onBlur: t,
|
|
@@ -651,9 +689,9 @@ const Mt = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ft =
|
|
|
651
689
|
"confirm-type": "search"
|
|
652
690
|
}, null, 32)
|
|
653
691
|
], 2),
|
|
654
|
-
o("div",
|
|
655
|
-
a.buttonText ? (n(), l("button",
|
|
656
|
-
a.location ? (n(), l("text",
|
|
692
|
+
o("div", Xt, [
|
|
693
|
+
a.buttonText ? (n(), l("button", Pt, c(a.buttonText), 1)) : (n(), l(g, { key: 1 }, [
|
|
694
|
+
a.location ? (n(), l("text", Wt, c(a.location), 1)) : u("", !0),
|
|
657
695
|
a.locationIcon ? (n(), l("text", {
|
|
658
696
|
key: 1,
|
|
659
697
|
class: i(`cuIcon-${a.locationIcon}`)
|
|
@@ -662,7 +700,7 @@ const Mt = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ft =
|
|
|
662
700
|
key: 2,
|
|
663
701
|
class: i(`cuIcon-${a.actionIcon}`)
|
|
664
702
|
}, null, 2)) : u("", !0),
|
|
665
|
-
a.actionText ? (n(), l("text",
|
|
703
|
+
a.actionText ? (n(), l("text", Ht, c(a.actionText), 1)) : u("", !0)
|
|
666
704
|
], 64))
|
|
667
705
|
])
|
|
668
706
|
], 2));
|
|
@@ -671,14 +709,14 @@ const Mt = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ft =
|
|
|
671
709
|
L.install = (s) => {
|
|
672
710
|
s.component(L.name, L);
|
|
673
711
|
};
|
|
674
|
-
const
|
|
712
|
+
const Qt = { class: "cu-bar input" }, Yt = {
|
|
675
713
|
key: 0,
|
|
676
714
|
class: "action"
|
|
677
|
-
},
|
|
715
|
+
}, Zt = {
|
|
678
716
|
key: 1,
|
|
679
717
|
class: "action"
|
|
680
|
-
},
|
|
681
|
-
...
|
|
718
|
+
}, es = { class: "action" }, ts = { class: "cu-btn bg-green shadow-blur" }, ss = { name: "TInputBar" }, M = /* @__PURE__ */ f({
|
|
719
|
+
...ss,
|
|
682
720
|
props: {
|
|
683
721
|
leftIcon: {},
|
|
684
722
|
middleIcon: {},
|
|
@@ -691,13 +729,13 @@ const Kt = { class: "cu-bar input" }, Pt = {
|
|
|
691
729
|
}, t = () => {
|
|
692
730
|
e.value = 0;
|
|
693
731
|
};
|
|
694
|
-
return (a, d) => (n(), l("div",
|
|
695
|
-
a.leftIcon ? (n(), l("div",
|
|
732
|
+
return (a, d) => (n(), l("div", Qt, [
|
|
733
|
+
a.leftIcon ? (n(), l("div", Yt, [
|
|
696
734
|
o("text", {
|
|
697
735
|
class: i(`cuIcon-${a.leftIcon} text-grey`)
|
|
698
736
|
}, null, 2)
|
|
699
737
|
])) : u("", !0),
|
|
700
|
-
a.middleIcon ? (n(), l("div",
|
|
738
|
+
a.middleIcon ? (n(), l("div", Zt, [
|
|
701
739
|
o("text", {
|
|
702
740
|
class: i(`cuIcon-${a.middleIcon} text-grey`)
|
|
703
741
|
}, null, 2)
|
|
@@ -710,22 +748,22 @@ const Kt = { class: "cu-bar input" }, Pt = {
|
|
|
710
748
|
maxlength: "300",
|
|
711
749
|
"cursor-spacing": "10"
|
|
712
750
|
}, null, 32),
|
|
713
|
-
o("div",
|
|
751
|
+
o("div", es, [
|
|
714
752
|
o("text", {
|
|
715
753
|
class: i(`cuIcon-${a.rightIcon} text-grey`)
|
|
716
754
|
}, null, 2)
|
|
717
755
|
]),
|
|
718
|
-
o("button",
|
|
756
|
+
o("button", ts, c(a.buttonText), 1)
|
|
719
757
|
]));
|
|
720
758
|
}
|
|
721
759
|
});
|
|
722
760
|
M.install = (s) => {
|
|
723
761
|
s.component(M.name, M);
|
|
724
762
|
};
|
|
725
|
-
const
|
|
763
|
+
const os = ["onClick"], ns = { class: "tab-content" }, ls = {
|
|
726
764
|
name: "TTabs"
|
|
727
|
-
}, F = /* @__PURE__ */
|
|
728
|
-
...
|
|
765
|
+
}, F = /* @__PURE__ */ f({
|
|
766
|
+
...ls,
|
|
729
767
|
props: {
|
|
730
768
|
modelValue: { default: 0 },
|
|
731
769
|
center: { type: Boolean, default: !1 },
|
|
@@ -736,113 +774,87 @@ const Yt = ["onClick"], Zt = { class: "tab-content" }, es = {
|
|
|
736
774
|
},
|
|
737
775
|
emits: ["update:modelValue", "select"],
|
|
738
776
|
setup(s, { emit: e }) {
|
|
739
|
-
const r = j([]), t = j(0), a = e, d = (
|
|
740
|
-
t.value =
|
|
777
|
+
const r = j([]), t = j(0), a = e, d = (b, x) => {
|
|
778
|
+
t.value = b, a("update:modelValue", b), a("select", x);
|
|
741
779
|
};
|
|
742
|
-
ee("registerTab", (
|
|
743
|
-
const _ = s,
|
|
744
|
-
return
|
|
780
|
+
ee("registerTab", (b) => (r.value.push(b), r.value.length - 1)), ee("activeTab", t);
|
|
781
|
+
const _ = s, m = k(() => _.center !== !1 ? "justify-content:center;" : `justify-content:${_.mode}`);
|
|
782
|
+
return ie(
|
|
745
783
|
() => _.modelValue,
|
|
746
|
-
(
|
|
747
|
-
t.value =
|
|
784
|
+
(b) => {
|
|
785
|
+
t.value = b;
|
|
748
786
|
}
|
|
749
|
-
), (
|
|
750
|
-
class: i(
|
|
787
|
+
), (b, x) => (n(), l("div", {
|
|
788
|
+
class: i(b.isCard !== !1 ? "is-card" : "")
|
|
751
789
|
}, [
|
|
752
790
|
o("div", {
|
|
753
|
-
class: i(["nav flex", [, `bg-${
|
|
754
|
-
style:
|
|
791
|
+
class: i(["nav flex", [, `bg-${b.bg}`, `text-${b.text}`]]),
|
|
792
|
+
style: $(m.value)
|
|
755
793
|
}, [
|
|
756
|
-
(n(!0), l(
|
|
794
|
+
(n(!0), l(g, null, v(r.value, (B, S) => (n(), l("div", {
|
|
757
795
|
class: i(["cu-item", [t.value === S ? "cur text-blue" : ""]]),
|
|
758
796
|
key: S,
|
|
759
|
-
onClick: (
|
|
797
|
+
onClick: (ao) => d(S, B)
|
|
760
798
|
}, [
|
|
761
799
|
B.icon ? (n(), l("i", {
|
|
762
800
|
key: 0,
|
|
763
801
|
class: i(`cuIcon-${B.icon} text-${t.value === S ? "blue" : B.iconColor}`)
|
|
764
802
|
}, null, 2)) : u("", !0),
|
|
765
803
|
h(" " + c(B.label), 1)
|
|
766
|
-
], 10,
|
|
804
|
+
], 10, os))), 128))
|
|
767
805
|
], 6),
|
|
768
|
-
o("div",
|
|
769
|
-
|
|
806
|
+
o("div", ns, [
|
|
807
|
+
y(b.$slots, "default", {
|
|
770
808
|
tab: r.value[t.value]
|
|
771
809
|
}),
|
|
772
810
|
h("·")
|
|
773
811
|
])
|
|
774
812
|
], 2));
|
|
775
813
|
}
|
|
776
|
-
}),
|
|
814
|
+
}), as = {
|
|
777
815
|
name: "TTab"
|
|
778
|
-
},
|
|
779
|
-
...
|
|
816
|
+
}, R = /* @__PURE__ */ f({
|
|
817
|
+
...as,
|
|
780
818
|
props: {
|
|
781
819
|
label: {},
|
|
782
820
|
icon: { default: "" },
|
|
783
821
|
iconColor: { default: "black" }
|
|
784
822
|
},
|
|
785
823
|
setup(s) {
|
|
786
|
-
const e = s, r =
|
|
824
|
+
const e = s, r = J(
|
|
787
825
|
"registerTab"
|
|
788
|
-
), t =
|
|
826
|
+
), t = J("activeTab"), a = j(null), d = k(() => (t == null ? void 0 : t.value) === a.value), p = k(() => ({
|
|
789
827
|
label: e.label,
|
|
790
828
|
icon: e.icon,
|
|
791
829
|
iconColor: e.iconColor
|
|
792
830
|
}));
|
|
793
|
-
return
|
|
831
|
+
return re(() => {
|
|
794
832
|
r && (a.value = r({
|
|
795
833
|
label: e.label,
|
|
796
834
|
icon: e.icon,
|
|
797
835
|
iconColor: e.iconColor
|
|
798
836
|
}));
|
|
799
|
-
}), (_,
|
|
800
|
-
|
|
801
|
-
|
|
837
|
+
}), (_, m) => ue((n(), l("div", null, [
|
|
838
|
+
y(_.$slots, "default"),
|
|
839
|
+
y(_.$slots, "custom", { tab: p.value })
|
|
802
840
|
], 512)), [
|
|
803
|
-
[
|
|
841
|
+
[de, d.value]
|
|
804
842
|
]);
|
|
805
843
|
}
|
|
806
844
|
});
|
|
807
845
|
F.install = (s) => {
|
|
808
846
|
s.component(F.name, F);
|
|
809
847
|
};
|
|
810
|
-
|
|
811
|
-
s.component(
|
|
848
|
+
R.install = (s) => {
|
|
849
|
+
s.component(R.name, R);
|
|
812
850
|
};
|
|
813
|
-
|
|
814
|
-
* vue-router v4.3.3
|
|
815
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
816
|
-
* @license MIT
|
|
817
|
-
*/
|
|
818
|
-
var se;
|
|
819
|
-
(function(s) {
|
|
820
|
-
s.pop = "pop", s.push = "push";
|
|
821
|
-
})(se || (se = {}));
|
|
822
|
-
var oe;
|
|
823
|
-
(function(s) {
|
|
824
|
-
s.back = "back", s.forward = "forward", s.unknown = "";
|
|
825
|
-
})(oe || (oe = {}));
|
|
826
|
-
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
827
|
-
var ne;
|
|
828
|
-
(function(s) {
|
|
829
|
-
s[s.aborted = 4] = "aborted", s[s.cancelled = 8] = "cancelled", s[s.duplicated = 16] = "duplicated";
|
|
830
|
-
})(ne || (ne = {}));
|
|
831
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
832
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
833
|
-
const ss = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
834
|
-
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
835
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
836
|
-
function os() {
|
|
837
|
-
return W(ss);
|
|
838
|
-
}
|
|
839
|
-
const ns = ["onClick"], ls = {
|
|
851
|
+
const cs = ["onClick"], is = {
|
|
840
852
|
key: 0,
|
|
841
853
|
class: "cu-tag badge"
|
|
842
|
-
},
|
|
854
|
+
}, rs = { key: 0 }, us = {
|
|
843
855
|
name: "GridGroup"
|
|
844
|
-
},
|
|
845
|
-
...
|
|
856
|
+
}, O = /* @__PURE__ */ f({
|
|
857
|
+
...us,
|
|
846
858
|
props: {
|
|
847
859
|
cuIconList: { default: () => [
|
|
848
860
|
{
|
|
@@ -912,7 +924,7 @@ const ns = ["onClick"], ls = {
|
|
|
912
924
|
routeFn: { type: Function, default: void 0 }
|
|
913
925
|
},
|
|
914
926
|
setup(s) {
|
|
915
|
-
const e = s, r =
|
|
927
|
+
const e = s, r = le(), t = (a) => {
|
|
916
928
|
if (a.path) {
|
|
917
929
|
e.routeFn ? e.routeFn().push({
|
|
918
930
|
path: a.path
|
|
@@ -929,37 +941,37 @@ const ns = ["onClick"], ls = {
|
|
|
929
941
|
return (a, d) => (n(), l("div", {
|
|
930
942
|
class: i(["cu-list grid", ["col-" + a.gridCol, a.gridBorder ? "" : "no-border"]])
|
|
931
943
|
}, [
|
|
932
|
-
(n(!0), l(
|
|
944
|
+
(n(!0), l(g, null, v(a.cuIconList, (p, _) => (n(), l("div", {
|
|
933
945
|
class: "cu-item",
|
|
934
946
|
key: _,
|
|
935
|
-
style:
|
|
936
|
-
onClick: (
|
|
947
|
+
style: $(`width: calc(100% / ${a.gridCol})`),
|
|
948
|
+
onClick: (m) => t(p)
|
|
937
949
|
}, [
|
|
938
950
|
o("div", {
|
|
939
|
-
class: i(["cuIcon-" +
|
|
951
|
+
class: i(["cuIcon-" + p.cuIcon, "text-" + p.color])
|
|
940
952
|
}, [
|
|
941
|
-
|
|
942
|
-
|
|
953
|
+
p.badge != 0 ? (n(), l("div", is, [
|
|
954
|
+
p.badge != 1 ? (n(), l("i", rs, c((p.badge || 0) > 99 ? "99+" : p.badge), 1)) : u("", !0)
|
|
943
955
|
])) : u("", !0)
|
|
944
956
|
], 2),
|
|
945
|
-
o("text", null, c(
|
|
946
|
-
], 12,
|
|
957
|
+
o("text", null, c(p.name), 1)
|
|
958
|
+
], 12, cs))), 128))
|
|
947
959
|
], 2));
|
|
948
960
|
}
|
|
949
961
|
});
|
|
950
|
-
|
|
951
|
-
s.component(
|
|
962
|
+
O.install = (s) => {
|
|
963
|
+
s.component(O.name, O);
|
|
952
964
|
};
|
|
953
|
-
const
|
|
965
|
+
const ds = { class: "content" }, ps = ["src", "alt"], _s = { class: "text-grey" }, fs = { class: "action" }, gs = {
|
|
954
966
|
key: 1,
|
|
955
967
|
class: "text-grey text-sm"
|
|
956
|
-
},
|
|
968
|
+
}, hs = ["onClick"], ms = {
|
|
957
969
|
key: 4,
|
|
958
970
|
class: "text-grey text-sm"
|
|
959
|
-
},
|
|
971
|
+
}, bs = {
|
|
960
972
|
name: "Menu"
|
|
961
|
-
}, G = /* @__PURE__ */
|
|
962
|
-
...
|
|
973
|
+
}, G = /* @__PURE__ */ f({
|
|
974
|
+
...bs,
|
|
963
975
|
props: {
|
|
964
976
|
menuItems: { default: () => [
|
|
965
977
|
{
|
|
@@ -1039,14 +1051,14 @@ const is = { class: "content" }, rs = ["src", "alt"], us = { class: "text-grey"
|
|
|
1039
1051
|
return (e, r) => (n(), l("div", {
|
|
1040
1052
|
class: i(["cu-list menu", [e.menuBorder ? "sm-border" : "", e.menuCard ? "card-menu" : ""]])
|
|
1041
1053
|
}, [
|
|
1042
|
-
(n(!0), l(
|
|
1054
|
+
(n(!0), l(g, null, v(e.menuItems, (t, a) => {
|
|
1043
1055
|
var d;
|
|
1044
1056
|
return n(), l("div", {
|
|
1045
1057
|
key: a,
|
|
1046
1058
|
class: i(["cu-item", e.menuArrow ? "arrow" : ""])
|
|
1047
1059
|
}, [
|
|
1048
|
-
o("div",
|
|
1049
|
-
t.icon ? (n(),
|
|
1060
|
+
o("div", ds, [
|
|
1061
|
+
t.icon ? (n(), I(T, {
|
|
1050
1062
|
key: 0,
|
|
1051
1063
|
class: "icon",
|
|
1052
1064
|
name: t.icon.name,
|
|
@@ -1057,40 +1069,40 @@ const is = { class: "content" }, rs = ["src", "alt"], us = { class: "text-grey"
|
|
|
1057
1069
|
class: "icon",
|
|
1058
1070
|
src: t.img.url,
|
|
1059
1071
|
alt: t.img.alt
|
|
1060
|
-
}, null, 8,
|
|
1061
|
-
o("text",
|
|
1072
|
+
}, null, 8, ps)) : u("", !0),
|
|
1073
|
+
o("text", _s, c(t.title), 1)
|
|
1062
1074
|
]),
|
|
1063
|
-
o("div",
|
|
1064
|
-
t.group ? (n(),
|
|
1075
|
+
o("div", fs, [
|
|
1076
|
+
t.group ? (n(), I(D, {
|
|
1065
1077
|
key: 0,
|
|
1066
1078
|
urls: t.group
|
|
1067
1079
|
}, null, 8, ["urls"])) : u("", !0),
|
|
1068
|
-
t.group ? (n(), l("text",
|
|
1080
|
+
t.group ? (n(), l("text", gs, c(t.group.length) + "人", 1)) : u("", !0),
|
|
1069
1081
|
t.btn ? (n(), l("button", {
|
|
1070
1082
|
key: 2,
|
|
1071
1083
|
class: i(["cu-btn round shadow", `bg-${t.btn.bg}`]),
|
|
1072
1084
|
onClick: (d = t.btn) == null ? void 0 : d.event
|
|
1073
1085
|
}, [
|
|
1074
|
-
t.btn.icon ? (n(),
|
|
1086
|
+
t.btn.icon ? (n(), I(T, {
|
|
1075
1087
|
key: 0,
|
|
1076
1088
|
name: t.btn.icon,
|
|
1077
1089
|
color: "white"
|
|
1078
1090
|
}, null, 8, ["name"])) : u("", !0),
|
|
1079
1091
|
h(" " + c(t.btn.text), 1)
|
|
1080
|
-
], 10,
|
|
1081
|
-
t.tags ? (n(!0), l(
|
|
1082
|
-
size:
|
|
1092
|
+
], 10, hs)) : u("", !0),
|
|
1093
|
+
t.tags ? (n(!0), l(g, { key: 3 }, v(t.tags, (p, _) => (n(), I(C, {
|
|
1094
|
+
size: p.size,
|
|
1083
1095
|
key: _,
|
|
1084
|
-
bg:
|
|
1085
|
-
light:
|
|
1096
|
+
bg: p.bg,
|
|
1097
|
+
light: p.light,
|
|
1086
1098
|
shape: "round"
|
|
1087
1099
|
}, {
|
|
1088
1100
|
default: Q(() => [
|
|
1089
|
-
h(c(
|
|
1101
|
+
h(c(p.text), 1)
|
|
1090
1102
|
]),
|
|
1091
1103
|
_: 2
|
|
1092
1104
|
}, 1032, ["size", "bg", "light"]))), 128)) : u("", !0),
|
|
1093
|
-
t.text ? (n(), l("text",
|
|
1105
|
+
t.text ? (n(), l("text", ms, c(t.text), 1)) : u("", !0)
|
|
1094
1106
|
])
|
|
1095
1107
|
], 2);
|
|
1096
1108
|
}), 128))
|
|
@@ -1100,10 +1112,10 @@ const is = { class: "content" }, rs = ["src", "alt"], us = { class: "text-grey"
|
|
|
1100
1112
|
G.install = (s) => {
|
|
1101
1113
|
s.component(G.name, G);
|
|
1102
1114
|
};
|
|
1103
|
-
const
|
|
1115
|
+
const vs = {
|
|
1104
1116
|
key: 0,
|
|
1105
1117
|
class: "cu-tag badge"
|
|
1106
|
-
},
|
|
1118
|
+
}, $s = { class: "content" }, ys = { class: "flex align-center" }, ks = { class: "text-cut" }, Is = { class: "text-gray text-sm flex" }, ws = { class: "text-cut" }, Cs = { class: "action" }, xs = { class: "text-grey text-xs" }, Ts = /* @__PURE__ */ f({
|
|
1107
1119
|
__name: "ChatListItem",
|
|
1108
1120
|
props: {
|
|
1109
1121
|
userinfo: {},
|
|
@@ -1121,26 +1133,26 @@ const hs = {
|
|
|
1121
1133
|
}, [
|
|
1122
1134
|
o("div", {
|
|
1123
1135
|
class: i(["cu-avatar", e.userinfo.avatarShape, "lg"]),
|
|
1124
|
-
style:
|
|
1136
|
+
style: $({ backgroundImage: `url(${e.userinfo.avatar})` })
|
|
1125
1137
|
}, [
|
|
1126
|
-
e.badge ? (n(), l("div",
|
|
1138
|
+
e.badge ? (n(), l("div", vs, c(e.badge), 1)) : u("", !0)
|
|
1127
1139
|
], 6),
|
|
1128
|
-
o("div",
|
|
1129
|
-
o("div",
|
|
1130
|
-
o("div",
|
|
1140
|
+
o("div", $s, [
|
|
1141
|
+
o("div", ys, [
|
|
1142
|
+
o("div", ks, c(e.userinfo.name), 1),
|
|
1131
1143
|
e.userinfo.tag ? (n(), l("div", {
|
|
1132
1144
|
key: 0,
|
|
1133
1145
|
class: i(["cu-tag", "round", `bg-${e.userinfo.tagColor}`, "sm"])
|
|
1134
1146
|
}, c(e.userinfo.tag), 3)) : u("", !0)
|
|
1135
1147
|
]),
|
|
1136
|
-
o("div",
|
|
1137
|
-
o("div",
|
|
1138
|
-
|
|
1148
|
+
o("div", Is, [
|
|
1149
|
+
o("div", ws, [
|
|
1150
|
+
y(e.$slots, "default", {}, void 0, !0)
|
|
1139
1151
|
])
|
|
1140
1152
|
])
|
|
1141
1153
|
]),
|
|
1142
|
-
o("div",
|
|
1143
|
-
o("div",
|
|
1154
|
+
o("div", Cs, [
|
|
1155
|
+
o("div", xs, c(e.userinfo.time), 1),
|
|
1144
1156
|
e.unread ? (n(), l("div", {
|
|
1145
1157
|
key: 0,
|
|
1146
1158
|
class: i(["cu-tag", "round", `bg-${e.unreadColor}`, "sm"])
|
|
@@ -1151,16 +1163,16 @@ const hs = {
|
|
|
1151
1163
|
])
|
|
1152
1164
|
], 2));
|
|
1153
1165
|
}
|
|
1154
|
-
}),
|
|
1166
|
+
}), Bs = /* @__PURE__ */ Z(Ts, [["__scopeId", "data-v-e90f08c9"]]), js = { class: "cu-list menu-avatar" }, Ss = {
|
|
1155
1167
|
name: "ChatList"
|
|
1156
|
-
},
|
|
1157
|
-
...
|
|
1168
|
+
}, K = /* @__PURE__ */ f({
|
|
1169
|
+
...Ss,
|
|
1158
1170
|
props: {
|
|
1159
1171
|
items: {}
|
|
1160
1172
|
},
|
|
1161
1173
|
setup(s) {
|
|
1162
|
-
return (e, r) => (n(), l("div",
|
|
1163
|
-
(n(!0), l(
|
|
1174
|
+
return (e, r) => (n(), l("div", js, [
|
|
1175
|
+
(n(!0), l(g, null, v(e.items, (t, a) => (n(), I(Bs, {
|
|
1164
1176
|
key: a,
|
|
1165
1177
|
userinfo: t.userinfo,
|
|
1166
1178
|
unread: t.unread,
|
|
@@ -1172,7 +1184,7 @@ const hs = {
|
|
|
1172
1184
|
isCurrent: t.isCurrent
|
|
1173
1185
|
}, {
|
|
1174
1186
|
default: Q(() => [
|
|
1175
|
-
|
|
1187
|
+
y(e.$slots, "default", { item: t }, () => [
|
|
1176
1188
|
h(c(t.content), 1)
|
|
1177
1189
|
])
|
|
1178
1190
|
]),
|
|
@@ -1181,47 +1193,47 @@ const hs = {
|
|
|
1181
1193
|
]));
|
|
1182
1194
|
}
|
|
1183
1195
|
});
|
|
1184
|
-
|
|
1185
|
-
s.component(
|
|
1196
|
+
K.install = (s) => {
|
|
1197
|
+
s.component(K.name, K);
|
|
1186
1198
|
};
|
|
1187
|
-
const
|
|
1199
|
+
const zs = { class: "cu-chat" }, qs = {
|
|
1188
1200
|
key: 0,
|
|
1189
1201
|
class: "cu-info round"
|
|
1190
|
-
},
|
|
1202
|
+
}, Vs = {
|
|
1191
1203
|
key: 1,
|
|
1192
1204
|
class: "cu-info"
|
|
1193
|
-
},
|
|
1205
|
+
}, Ns = /* @__PURE__ */ o("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), Ds = { class: "main" }, Es = ["src"], As = {
|
|
1194
1206
|
key: 2,
|
|
1195
1207
|
class: "content shadow"
|
|
1196
|
-
},
|
|
1208
|
+
}, Us = /* @__PURE__ */ o("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), Ls = { class: "action text-bold text-grey" }, Ms = {
|
|
1197
1209
|
key: 3,
|
|
1198
1210
|
class: "content shadow"
|
|
1199
|
-
},
|
|
1211
|
+
}, Fs = /* @__PURE__ */ o("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), Rs = { class: "content shadow" }, Os = /* @__PURE__ */ o("div", { class: "action text-grey" }, [
|
|
1200
1212
|
/* @__PURE__ */ o("text", { class: "cuIcon-warnfill text-red text-xxl" }),
|
|
1201
1213
|
/* @__PURE__ */ o("text", { class: "text-sm margin-left-sm" }, "翻译错误")
|
|
1202
|
-
], -1),
|
|
1203
|
-
...
|
|
1214
|
+
], -1), Gs = { class: "date" }, Ks = { name: "ChatRoom" }, X = /* @__PURE__ */ f({
|
|
1215
|
+
...Ks,
|
|
1204
1216
|
props: {
|
|
1205
1217
|
messages: {}
|
|
1206
1218
|
},
|
|
1207
1219
|
setup(s) {
|
|
1208
|
-
return (e, r) => (n(), l("div",
|
|
1209
|
-
(n(!0), l(
|
|
1220
|
+
return (e, r) => (n(), l("div", zs, [
|
|
1221
|
+
(n(!0), l(g, null, v(e.messages, (t) => (n(), l("div", {
|
|
1210
1222
|
key: t.id,
|
|
1211
1223
|
class: i(["cu-item", { self: t.self }])
|
|
1212
1224
|
}, [
|
|
1213
|
-
t.type === "info" ? (n(), l(
|
|
1214
|
-
t.self ? (n(), l("div",
|
|
1215
|
-
|
|
1225
|
+
t.type === "info" ? (n(), l(g, { key: 0 }, [
|
|
1226
|
+
t.self ? (n(), l("div", qs, c(t.content), 1)) : (n(), l("div", Vs, [
|
|
1227
|
+
Ns,
|
|
1216
1228
|
h(" " + c(t.content), 1)
|
|
1217
1229
|
]))
|
|
1218
|
-
], 64)) : (n(), l(
|
|
1219
|
-
t.self ? u("", !0) : (n(),
|
|
1230
|
+
], 64)) : (n(), l(g, { key: 1 }, [
|
|
1231
|
+
t.self ? u("", !0) : (n(), I(w, {
|
|
1220
1232
|
key: 0,
|
|
1221
1233
|
mode: "radius",
|
|
1222
1234
|
url: t.avatar
|
|
1223
1235
|
}, null, 8, ["url"])),
|
|
1224
|
-
o("div",
|
|
1236
|
+
o("div", Ds, [
|
|
1225
1237
|
t.type === "text" ? (n(), l("div", {
|
|
1226
1238
|
key: 0,
|
|
1227
1239
|
class: i(["content shadow", { "bg-green": t.self }])
|
|
@@ -1232,38 +1244,38 @@ const Bs = { class: "cu-chat" }, js = {
|
|
|
1232
1244
|
src: t.content,
|
|
1233
1245
|
class: "radius",
|
|
1234
1246
|
style: { "max-width": "100%" }
|
|
1235
|
-
}, null, 8,
|
|
1236
|
-
|
|
1237
|
-
o("div",
|
|
1238
|
-
])) : t.type === "location" ? (n(), l("div",
|
|
1239
|
-
|
|
1247
|
+
}, null, 8, Es)) : t.type === "audio" ? (n(), l("div", As, [
|
|
1248
|
+
Us,
|
|
1249
|
+
o("div", Ls, c(t.content), 1)
|
|
1250
|
+
])) : t.type === "location" ? (n(), l("div", Ms, [
|
|
1251
|
+
Fs,
|
|
1240
1252
|
h(" " + c(t.content), 1)
|
|
1241
|
-
])) : t.type === "warning" ? (n(), l(
|
|
1242
|
-
o("div",
|
|
1243
|
-
|
|
1253
|
+
])) : t.type === "warning" ? (n(), l(g, { key: 4 }, [
|
|
1254
|
+
o("div", Rs, c(t.content), 1),
|
|
1255
|
+
Os
|
|
1244
1256
|
], 64)) : u("", !0)
|
|
1245
1257
|
]),
|
|
1246
|
-
t.self ? (n(),
|
|
1258
|
+
t.self ? (n(), I(w, {
|
|
1247
1259
|
key: 1,
|
|
1248
1260
|
mode: "radius",
|
|
1249
1261
|
url: t.avatar
|
|
1250
1262
|
}, null, 8, ["url"])) : u("", !0),
|
|
1251
|
-
o("div",
|
|
1263
|
+
o("div", Gs, c(t.date), 1)
|
|
1252
1264
|
], 64))
|
|
1253
1265
|
], 2))), 128))
|
|
1254
1266
|
]));
|
|
1255
1267
|
}
|
|
1256
1268
|
});
|
|
1257
|
-
|
|
1258
|
-
s.component(
|
|
1269
|
+
X.install = (s) => {
|
|
1270
|
+
s.component(X.name, X);
|
|
1259
1271
|
};
|
|
1260
|
-
const
|
|
1272
|
+
const Xs = { class: "cu-time" }, Ps = {
|
|
1261
1273
|
key: 0,
|
|
1262
1274
|
class: "cu-capsule radius"
|
|
1263
|
-
},
|
|
1275
|
+
}, Ws = {
|
|
1264
1276
|
name: "TimeLine"
|
|
1265
|
-
}, P = /* @__PURE__ */
|
|
1266
|
-
...
|
|
1277
|
+
}, P = /* @__PURE__ */ f({
|
|
1278
|
+
...Ws,
|
|
1267
1279
|
props: {
|
|
1268
1280
|
items: { default: () => [] }
|
|
1269
1281
|
},
|
|
@@ -1284,13 +1296,13 @@ const Rs = { class: "cu-time" }, Gs = {
|
|
|
1284
1296
|
}
|
|
1285
1297
|
}
|
|
1286
1298
|
return (t, a) => (n(), l("div", null, [
|
|
1287
|
-
(n(!0), l(
|
|
1288
|
-
key:
|
|
1299
|
+
(n(!0), l(g, null, v(t.items, (d, p) => (n(), l("div", {
|
|
1300
|
+
key: p,
|
|
1289
1301
|
class: "cu-timeline"
|
|
1290
1302
|
}, [
|
|
1291
|
-
o("div",
|
|
1292
|
-
(n(!0), l(
|
|
1293
|
-
var
|
|
1303
|
+
o("div", Xs, c(d.date), 1),
|
|
1304
|
+
(n(!0), l(g, null, v(d.items, (_) => {
|
|
1305
|
+
var m, b, x;
|
|
1294
1306
|
return n(), l("div", {
|
|
1295
1307
|
key: _.key,
|
|
1296
1308
|
class: i(["cu-item", r(_)])
|
|
@@ -1298,17 +1310,17 @@ const Rs = { class: "cu-time" }, Gs = {
|
|
|
1298
1310
|
o("div", {
|
|
1299
1311
|
class: i(["content", `bg-${_.bg || "gray"}`, "shadow-blur"])
|
|
1300
1312
|
}, [
|
|
1301
|
-
(
|
|
1302
|
-
te(
|
|
1303
|
-
bg: e((
|
|
1313
|
+
(m = _ == null ? void 0 : _.capsule) != null && m.list && _.capsule.list.length ? (n(), l("div", Ps, [
|
|
1314
|
+
te(C, {
|
|
1315
|
+
bg: e((b = _.capsule) == null ? void 0 : b.color)
|
|
1304
1316
|
}, {
|
|
1305
1317
|
default: Q(() => [
|
|
1306
1318
|
h(c(_.capsule.list[0]), 1)
|
|
1307
1319
|
]),
|
|
1308
1320
|
_: 2
|
|
1309
1321
|
}, 1032, ["bg"]),
|
|
1310
|
-
te(
|
|
1311
|
-
bg: e((
|
|
1322
|
+
te(C, {
|
|
1323
|
+
bg: e((x = _.capsule) == null ? void 0 : x.color),
|
|
1312
1324
|
light: !0
|
|
1313
1325
|
}, {
|
|
1314
1326
|
default: Q(() => [
|
|
@@ -1320,7 +1332,7 @@ const Rs = { class: "cu-time" }, Gs = {
|
|
|
1320
1332
|
o("div", {
|
|
1321
1333
|
class: i(_.capsule ? "margin-top-sm" : "")
|
|
1322
1334
|
}, [
|
|
1323
|
-
|
|
1335
|
+
y(t.$slots, `item-${_.key}`, {}, () => [
|
|
1324
1336
|
h(c(_.content), 1)
|
|
1325
1337
|
])
|
|
1326
1338
|
], 2)
|
|
@@ -1334,10 +1346,10 @@ const Rs = { class: "cu-time" }, Gs = {
|
|
|
1334
1346
|
P.install = (s) => {
|
|
1335
1347
|
s.component(P.name, P);
|
|
1336
1348
|
};
|
|
1337
|
-
const
|
|
1349
|
+
const Hs = { class: "bg-white padding" }, Js = ["data-index"], Qs = {
|
|
1338
1350
|
name: "TSteps"
|
|
1339
|
-
},
|
|
1340
|
-
...
|
|
1351
|
+
}, W = /* @__PURE__ */ f({
|
|
1352
|
+
...Qs,
|
|
1341
1353
|
props: {
|
|
1342
1354
|
steps: {},
|
|
1343
1355
|
modelValue: {},
|
|
@@ -1346,33 +1358,33 @@ const Ks = { class: "bg-white padding" }, Ps = ["data-index"], Hs = {
|
|
|
1346
1358
|
},
|
|
1347
1359
|
emits: ["update:modelValue"],
|
|
1348
1360
|
setup(s, { emit: e }) {
|
|
1349
|
-
return (r, t) => (n(), l("div",
|
|
1361
|
+
return (r, t) => (n(), l("div", Hs, [
|
|
1350
1362
|
o("div", {
|
|
1351
1363
|
class: i(["cu-steps", { "scroll-x": r.scrollX }])
|
|
1352
1364
|
}, [
|
|
1353
|
-
(n(!0), l(
|
|
1365
|
+
(n(!0), l(g, null, v(r.steps, (a, d) => (n(), l("div", {
|
|
1354
1366
|
class: i(["cu-item", d > r.modelValue ? "" : `text-${r.color}`]),
|
|
1355
1367
|
key: d
|
|
1356
1368
|
}, [
|
|
1357
1369
|
o("text", {
|
|
1358
1370
|
class: i(a.cuIcon ? "cuIcon-" + a.cuIcon : "num"),
|
|
1359
1371
|
"data-index": d + 1
|
|
1360
|
-
}, c(a.cuIcon ? "" : d + 1), 11,
|
|
1372
|
+
}, c(a.cuIcon ? "" : d + 1), 11, Js),
|
|
1361
1373
|
h(" " + c(a.name), 1)
|
|
1362
1374
|
], 2))), 128))
|
|
1363
1375
|
], 2)
|
|
1364
1376
|
]));
|
|
1365
1377
|
}
|
|
1366
1378
|
});
|
|
1367
|
-
|
|
1368
|
-
s.component(
|
|
1379
|
+
W.install = (s) => {
|
|
1380
|
+
s.component(W.name, W);
|
|
1369
1381
|
};
|
|
1370
|
-
const
|
|
1371
|
-
|
|
1372
|
-
],
|
|
1382
|
+
const Ys = { class: "cu-dialog" }, Zs = { class: "cu-bar bg-white justify-end padding-right-sm" }, eo = { class: "content" }, to = /* @__PURE__ */ o("text", { class: "cuIcon-close text-red" }, null, -1), so = [
|
|
1383
|
+
to
|
|
1384
|
+
], oo = { class: "padding-xl" }, no = {
|
|
1373
1385
|
name: "DrawerModal"
|
|
1374
|
-
},
|
|
1375
|
-
...
|
|
1386
|
+
}, H = /* @__PURE__ */ f({
|
|
1387
|
+
...no,
|
|
1376
1388
|
props: {
|
|
1377
1389
|
title: {},
|
|
1378
1390
|
modelValue: { type: Boolean }
|
|
@@ -1385,16 +1397,16 @@ const Js = { class: "cu-dialog" }, Qs = { class: "cu-bar bg-white justify-end pa
|
|
|
1385
1397
|
return (a, d) => (n(), l("div", {
|
|
1386
1398
|
class: i(["cu-modal", a.modelValue ? "show" : ""])
|
|
1387
1399
|
}, [
|
|
1388
|
-
o("div",
|
|
1389
|
-
o("div",
|
|
1390
|
-
o("div",
|
|
1400
|
+
o("div", Ys, [
|
|
1401
|
+
o("div", Zs, [
|
|
1402
|
+
o("div", eo, c(a.title), 1),
|
|
1391
1403
|
o("div", {
|
|
1392
1404
|
class: "action",
|
|
1393
1405
|
onClick: t
|
|
1394
|
-
},
|
|
1406
|
+
}, so)
|
|
1395
1407
|
]),
|
|
1396
|
-
o("div",
|
|
1397
|
-
|
|
1408
|
+
o("div", oo, [
|
|
1409
|
+
y(a.$slots, "default", {}, () => [
|
|
1398
1410
|
h("Modal 内容~")
|
|
1399
1411
|
])
|
|
1400
1412
|
])
|
|
@@ -1402,35 +1414,35 @@ const Js = { class: "cu-dialog" }, Qs = { class: "cu-bar bg-white justify-end pa
|
|
|
1402
1414
|
], 2));
|
|
1403
1415
|
}
|
|
1404
1416
|
});
|
|
1405
|
-
|
|
1406
|
-
s.component(
|
|
1417
|
+
H.install = (s) => {
|
|
1418
|
+
s.component(H.name, H);
|
|
1407
1419
|
};
|
|
1408
|
-
const
|
|
1409
|
-
s.use(
|
|
1410
|
-
},
|
|
1411
|
-
install:
|
|
1420
|
+
const lo = (s) => {
|
|
1421
|
+
s.use(T), s.use(N), s.use(w), s.use(z), s.use(q), s.use(V), s.use(A), s.use(U), s.use(L), s.use(M), s.use(F), s.use(R), s.use(O), s.use(G), s.use(E), s.use(C), s.use(K), s.use(X), s.use(P), s.use(W), s.use(H);
|
|
1422
|
+
}, io = {
|
|
1423
|
+
install: lo
|
|
1412
1424
|
};
|
|
1413
1425
|
export {
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1426
|
+
K as ChatList,
|
|
1427
|
+
X as ChatRoom,
|
|
1428
|
+
H as DrawerModal,
|
|
1429
|
+
O as GridGroup,
|
|
1418
1430
|
G as Menu,
|
|
1419
|
-
|
|
1431
|
+
w as TAvatar,
|
|
1420
1432
|
E as TButton,
|
|
1421
|
-
|
|
1433
|
+
T as TIcon,
|
|
1422
1434
|
M as TInputBar,
|
|
1423
|
-
|
|
1435
|
+
A as TNavBar,
|
|
1424
1436
|
z as TNavCard,
|
|
1425
1437
|
q as TNewCard,
|
|
1426
1438
|
L as TSearchBar,
|
|
1427
1439
|
V as TShareCard,
|
|
1428
|
-
|
|
1429
|
-
|
|
1440
|
+
W as TSteps,
|
|
1441
|
+
R as TTab,
|
|
1430
1442
|
F as TTabs,
|
|
1431
|
-
|
|
1443
|
+
C as TTag,
|
|
1432
1444
|
N as TTitle,
|
|
1433
|
-
|
|
1445
|
+
U as TTopBar,
|
|
1434
1446
|
P as TimeLine,
|
|
1435
|
-
|
|
1447
|
+
io as default
|
|
1436
1448
|
};
|