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