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