vue-color-ui 0.0.14 → 0.0.16

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/README.md CHANGED
@@ -1,9 +1,303 @@
1
- # Vue 3 + TypeScript + Vite
2
1
 
3
- This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
2
+ # vue-color-ui
4
3
 
5
- ## Recommended Setup
4
+ `vue-color-ui` [ColorUI](https://github.com/weilanwl/ColorUI) 在 uniapp 生态中的 Vue 版本。这个项目是一个临时解决方案,旨在填补原作者更新之前的空白。
6
5
 
7
- - [VS Code](https://code.visualstudio.com/) + [Vue - Official](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (previously Volar) and disable Vetur
6
+ ## 安装
7
+
8
+ 使用 npm 安装 `vue-color-ui`:
9
+
10
+ ```bash
11
+ npm install vue-color-ui
12
+ ```
13
+
14
+ ## Nuxt 3 快速开始
15
+
16
+ 在 Nuxt 3 项目中快速配置 `vue-color-ui`:
17
+
18
+ 1. 创建插件文件 `plugins/vue-color-ui.ts`:
19
+
20
+ ```typescript
21
+ import TempColorUI from "vue-color-ui";
22
+ import "vue-color-ui/lib/style.css";
23
+ import "vue-color-ui/lib/css/main.css";
24
+ import "vue-color-ui/lib/css/animation.css";
25
+ import "vue-color-ui/lib/css/icon.css";
26
+
27
+ export default defineNuxtPlugin((app) => {
28
+ app.vueApp.use(TempColorUI);
29
+ });
30
+ ```
31
+
32
+ ## 使用
33
+
34
+ 在你的 Vue 组件中,你可以直接使用 `vue-color-ui` 提供的组件。例如:
35
+
36
+ ```vue
37
+ <template>
38
+ <TNavBar :items="navItems" />
39
+ </template>
40
+
41
+ <script setup>
42
+ const navItems = [
43
+ { icon: "homefill", label: "首页" },
44
+ { icon: "similar", label: "分类" },
45
+ { img: "https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png", label: "积分" },
46
+ { icon: "cart", label: "购物车", badge: 99 },
47
+ { icon: "my", label: "我的" }
48
+ ];
49
+ </script>
50
+ ```
51
+
52
+ ## 贡献
53
+
54
+ 这个项目是一个临时解决方案,等原作者更新了之后再决定是否继续维护。如果你有任何建议或发现任何问题,欢迎提交 issue 或 pull request。
55
+
56
+ ## 许可证
57
+
58
+ [MIT](LICENSE)
59
+
60
+ ## 颜色
61
+
62
+ ### BgColorName 背景颜色类型
63
+
64
+ `BgColorName` 类型可以是以下颜色名称之一:
65
+
66
+ ```typescript
67
+ type ColorName =
68
+ | "red"
69
+ | "orange"
70
+ | "yellow"
71
+ | "olive"
72
+ | "green"
73
+ | "cyan"
74
+ | "blue"
75
+ | "purple"
76
+ | "mauve"
77
+ | "pink"
78
+ | "brown"
79
+ | "grey"
80
+ | "gray"
81
+ | "black"
82
+ | "white";
83
+
84
+ type GradientColorName =
85
+ | "gradual-red"
86
+ | "gradual-orange"
87
+ | "gradual-green"
88
+ | "gradual-purple"
89
+ | "gradual-pink"
90
+ | "gradual-blue";
91
+
92
+ type BgColorName = ColorName | GradientColorName;
93
+ ```
94
+
95
+
96
+
97
+ ## TNavBar组件使用文档
98
+
99
+ `TNavBar` 是一个全局注册的组件,用于创建底部或顶部导航栏。该组件支持图标、图片、徽标等多种元素,并允许自定义背景颜色和文本颜色。
100
+
101
+ ### 属性
102
+
103
+ | 属性名 | 类型 | 默认值 | 描述 |
104
+ | ------------- | -------------- | ------- | ------------------------------------------------------------ |
105
+ | `bg` | `string` | `white` | 导航栏背景颜色 |
106
+ | `color` | `string` | `gray` | 文本颜色 |
107
+ | `activeColor` | `string` | `red` | 活动项的文本颜色 |
108
+ | `items` | `NavBarItem[]` | `[]` | 导航栏项的数组,每个项包含 `icon`、`img`、`label` 和 `badge` |
109
+ | `isFoot` | `boolean` | `false` | 是否为底部导航栏 |
110
+ | `activeIndex` | `number` | `0` | 当前激活项的索引 |
111
+ | `onItemClick` | `function` | `null` | 点击导航项时的回调函数,接收 `item` 和 `index` 两个参数 |
112
+
113
+ ### 示例
114
+
115
+ #### 示例 1: 基本使用
116
+
117
+ ```vue
118
+ <template>
119
+ <TNavBar />
120
+ </template>
121
+ ```
122
+
123
+ #### 示例 2: 自定义导航项
124
+
125
+ ```vue
126
+ <template>
127
+ <TNavBar :items="navItems" />
128
+ </template>
129
+
130
+ <script setup>
131
+ const navItems = [
132
+ { icon: "homefill", label: "首页" },
133
+ { icon: "similar", label: "分类" },
134
+ { img: "https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png", label: "积分" },
135
+ { icon: "cart", label: "购物车", badge: 99 },
136
+ { icon: "my", label: "我的" }
137
+ ];
138
+ </script>
139
+ ```
140
+
141
+ #### 示例 3: 自定义背景颜色和文本颜色
142
+
143
+ ```vue
144
+ <template>
145
+ <TNavBar bg="blue" color="white" activeColor="yellow" />
146
+ </template>
147
+ ```
148
+
149
+ #### 示例 4: 底部导航栏
150
+
151
+ ```vue
152
+ <template>
153
+ <TNavBar :isFoot="true" />
154
+ </template>
155
+ ```
156
+
157
+ #### 示例 5: 带徽标的导航项
158
+
159
+ ```vue
160
+ <template>
161
+ <TNavBar :items="navItemsWithBadge" />
162
+ </template>
163
+
164
+ <script setup>
165
+ const navItemsWithBadge = [
166
+ { icon: "homefill", label: "首页" },
167
+ { icon: "similar", label: "分类" },
168
+ { icon: "cart", label: "购物车", badge: 99 },
169
+ { icon: "my", label: "我的", badge: 5 }
170
+ ];
171
+ </script>
172
+ ```
173
+
174
+ #### 示例 6: 使用回调函数处理点击事件
175
+
176
+ ```vue
177
+ <template>
178
+ <TNavBar :items="navItems" :onItemClick="handleItemClick" />
179
+ </template>
180
+
181
+ <script setup>
182
+ const navItems = [
183
+ { icon: "homefill", label: "首页", path: "/home" },
184
+ { icon: "similar", label: "分类", path: "/category" },
185
+ { icon: "discover", label: "刷刷", path: "/discover" },
186
+ { icon: "edit", label: "报告", path: "/report" },
187
+ { icon: "my", label: "我的", path: "/profile" }
188
+ ];
189
+
190
+ const handleItemClick = (item, index) => {
191
+ console.log("Clicked item:", item, "at index:", index);
192
+ // 处理导航逻辑,例如路由跳转
193
+ };
194
+ </script>
195
+ ```
196
+
197
+ ### 属性类型定义
198
+
199
+ #### `ColorName`
200
+
201
+ `ColorName` 是一个字符串类型,用于定义颜色名称。可以是预定义的颜色名称,例如 `red`、`blue`、`gray` 等。
202
+
203
+ #### `NavBarItem`
204
+
205
+ `NavBarItem` 是一个对象类型,包含以下属性:
206
+
207
+ | 属性名 | 类型 | 描述 |
208
+ | ------- | -------- | -------------------- |
209
+ | `icon` | `string` | 图标名称 |
210
+ | `img` | `string` | 图片 URL |
211
+ | `label` | `string` | 导航项标签 |
212
+ | `badge` | `number` | 徽标数字(可选) |
213
+ | `path` | `string` | 导航项对应的路由路径 |
214
+
215
+ ## TTag 组件使用文档
216
+
217
+ `TTag` 是一个用于显示标签的 Vue 组件,支持多种样式和自定义内容。
218
+
219
+ ### 基本用法
220
+
221
+ ```vue
222
+ <template>
223
+ <TTag>标签内容</TTag>
224
+ </template>
225
+ ```
226
+
227
+ ### 属性
228
+
229
+ `TTag` 组件支持以下属性:
230
+
231
+ | 属性名 | 类型 | 默认值 | 描述 |
232
+ | ------- | ------------- | --------- | ------------------------------------------------- |
233
+ | `text` | `string` | `-` | 标签的文本内容 |
234
+ | `bg` | `BgColorName` | `blue` | 标签的背景颜色,支持颜色名称或渐变颜色名称 |
235
+ | `size` | `string` | `default` | 标签的大小,可选值有 `default`, `small`, `large` |
236
+ | `shape` | `string` | `default` | 标签的形状,可选值有 `default`, `radius`, `round` |
237
+ | `light` | `boolean` | `false` | 是否使用浅色背景 |
238
+ | `line` | `boolean` | `false` | 是否使用线条样式 |
239
+
240
+
241
+ ### 示例
242
+
243
+ #### 基本标签
244
+
245
+ ```vue
246
+ <template>
247
+ <TTag text="默认标签" />
248
+ </template>
249
+ ```
250
+
251
+ #### 不同背景颜色的标签
252
+
253
+ ```vue
254
+ <template>
255
+ <TTag text="红色标签" bg="red" />
256
+ <TTag text="渐变橙色标签" bg="gradual-orange" />
257
+ </template>
258
+ ```
259
+
260
+ #### 不同大小的标签
261
+
262
+ ```vue
263
+ <template>
264
+ <TTag text="默认大小" size="default" />
265
+ <TTag text="小号标签" size="small" />
266
+ <TTag text="大号标签" size="large" />
267
+ </template>
268
+ ```
269
+
270
+ #### 不同形状的标签
271
+
272
+ ```vue
273
+ <template>
274
+ <TTag text="默认形状" shape="default" />
275
+ <TTag text="圆角标签" shape="radius" />
276
+ <TTag text="圆形标签" shape="round" />
277
+ </template>
278
+ ```
279
+
280
+ #### 浅色背景的标签
281
+
282
+ ```vue
283
+ <template>
284
+ <TTag text="浅色标签" light />
285
+ </template>
286
+ ```
287
+
288
+ #### 线条样式的标签
289
+
290
+ ```vue
291
+ <template>
292
+ <TTag text="线条标签" line />
293
+ </template>
294
+ ```
295
+
296
+ #### 组合样式的标签
297
+
298
+ ```vue
299
+ <template>
300
+ <TTag text="自定义标签" bg="purple" size="large" shape="round" light />
301
+ </template>
302
+ ```
8
303
 
9
- - Use [vue-tsc](https://github.com/vuejs/language-tools/tree/master/packages/tsc) for performing the same type checking from the command line, or for generating d.ts files for SFCs.
@@ -1,4 +1,4 @@
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";
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 Z, watch as ce, inject as W, onMounted as ie, withDirectives as re, vShow as ue, withCtx as Q, createVNode as ee } from "vue";
2
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({
@@ -92,12 +92,12 @@ const Y = (s) => (le("data-v-bbdb83ff"), s = s(), ae(), s), he = { class: "cu-it
92
92
  ])
93
93
  ], 2));
94
94
  }
95
- }), Z = (s, e) => {
95
+ }), ne = (s, e) => {
96
96
  const r = s.__vccOpts || s;
97
97
  for (const [t, a] of e)
98
98
  r[t] = a;
99
99
  return r;
100
- }, q = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-bbdb83ff"]]);
100
+ }, q = /* @__PURE__ */ ne(ze, [["__scopeId", "data-v-bbdb83ff"]]);
101
101
  q.install = (s) => {
102
102
  s.component(q.name, q);
103
103
  };
@@ -444,7 +444,7 @@ const ot = {
444
444
  }
445
445
  }), Tt = { key: 0 }, Bt = {
446
446
  name: "TTag"
447
- }, jt = /* @__PURE__ */ f({
447
+ }, w = /* @__PURE__ */ f({
448
448
  ...Bt,
449
449
  props: {
450
450
  text: {},
@@ -458,19 +458,19 @@ const ot = {
458
458
  const e = s, r = y(() => [
459
459
  "cu-tag",
460
460
  e.shape !== "default" ? e.shape : "",
461
- e.light ? "light" : "",
462
- `${e.line ? "line" : "bg"}-${e.bg}`,
461
+ e.light !== !1 ? "light" : "",
462
+ `${e.line !== !1 ? "line" : "bg"}-${e.bg}`,
463
463
  e.size !== "default" ? e.size : ""
464
464
  ].join(" ")), t = y(() => ({}));
465
465
  return (a, u) => (n(), l("div", {
466
466
  class: i(r.value),
467
467
  style: v(t.value)
468
468
  }, [
469
- $(a.$slots, "default", {}, void 0, !0),
469
+ $(a.$slots, "default"),
470
470
  a.text ? (n(), l("span", Tt, c(a.text), 1)) : d("", !0)
471
471
  ], 6));
472
472
  }
473
- }), w = /* @__PURE__ */ Z(jt, [["__scopeId", "data-v-3c2b82ce"]]);
473
+ });
474
474
  x.install = (s) => {
475
475
  s.component(x.name, x);
476
476
  };
@@ -489,19 +489,19 @@ E.install = (s) => {
489
489
  w.install = (s) => {
490
490
  s.component(w.name, w);
491
491
  };
492
- const St = ["onClick"], zt = {
492
+ const jt = ["onClick"], St = {
493
493
  key: 0,
494
494
  class: "cuIcon-cu-image"
495
- }, qt = ["src"], Vt = {
495
+ }, zt = ["src"], qt = {
496
496
  key: 0,
497
497
  class: "cu-tag badge"
498
- }, Nt = {
498
+ }, Vt = {
499
499
  key: 0,
500
500
  class: "cu-tag badge"
501
- }, Dt = {
501
+ }, Nt = {
502
502
  name: "TNavBar"
503
503
  }, U = /* @__PURE__ */ f({
504
- ...Dt,
504
+ ...Nt,
505
505
  props: {
506
506
  bg: { default: "white" },
507
507
  color: { default: "gray" },
@@ -546,35 +546,35 @@ const St = ["onClick"], zt = {
546
546
  class: i(["action", `text-${p === t.activeIndex ? t.activeColor : t.color}`]),
547
547
  onClick: (_) => r(u, p)
548
548
  }, [
549
- u.img ? (n(), l("div", zt, [
549
+ u.img ? (n(), l("div", St, [
550
550
  o("img", {
551
551
  src: u.img,
552
552
  style: { width: "21px", height: "21px" },
553
553
  class: "radius"
554
- }, null, 8, qt),
555
- u.badge ? (n(), l("div", Vt, c(u.badge), 1)) : d("", !0)
554
+ }, null, 8, zt),
555
+ u.badge ? (n(), l("div", qt, c(u.badge), 1)) : d("", !0)
556
556
  ])) : (n(), l("div", {
557
557
  key: 1,
558
558
  class: i(`cuIcon-${u.icon}`)
559
559
  }, [
560
- u.badge ? (n(), l("div", Nt, c(u.badge), 1)) : d("", !0)
560
+ u.badge ? (n(), l("div", Vt, c(u.badge), 1)) : d("", !0)
561
561
  ], 2)),
562
562
  o("div", null, c(u.label), 1)
563
- ], 10, St))), 128))
563
+ ], 10, jt))), 128))
564
564
  ], 2));
565
565
  }
566
566
  });
567
567
  U.install = (s) => {
568
568
  s.component(U.name, U);
569
569
  };
570
- const Et = {
570
+ const Dt = {
571
571
  key: 0,
572
572
  class: "action"
573
- }, Ut = { key: 1 }, At = { class: "content text-bold" }, Lt = {
573
+ }, Et = { key: 1 }, Ut = { class: "content text-bold" }, At = {
574
574
  key: 2,
575
575
  class: "action"
576
- }, Mt = { name: "TTopBar" }, A = /* @__PURE__ */ f({
577
- ...Mt,
576
+ }, Lt = { name: "TTopBar" }, A = /* @__PURE__ */ f({
577
+ ...Lt,
578
578
  props: {
579
579
  title: {},
580
580
  leftIcon: {},
@@ -589,20 +589,20 @@ const Et = {
589
589
  return (e, r) => (n(), l("div", {
590
590
  class: i(["cu-bar", `bg-${e.bg}`])
591
591
  }, [
592
- e.leftIcon || e.leftText ? (n(), l("div", Et, [
592
+ e.leftIcon || e.leftText ? (n(), l("div", Dt, [
593
593
  e.leftIcon ? (n(), l("text", {
594
594
  key: 0,
595
595
  class: i(`cuIcon-${e.leftIcon} text-${e.leftIconColor}`)
596
596
  }, null, 2)) : d("", !0),
597
- e.leftText ? (n(), l("span", Ut, c(e.leftText), 1)) : d("", !0)
597
+ e.leftText ? (n(), l("span", Et, c(e.leftText), 1)) : d("", !0)
598
598
  ])) : d("", !0),
599
599
  e.avatarUrl ? (n(), l("div", {
600
600
  key: 1,
601
601
  class: "cu-avatar round",
602
602
  style: v({ backgroundImage: `url(${e.avatarUrl})` })
603
603
  }, null, 4)) : d("", !0),
604
- o("div", At, c(e.title), 1),
605
- e.rightIcon ? (n(), l("div", Lt, [
604
+ o("div", Ut, c(e.title), 1),
605
+ e.rightIcon ? (n(), l("div", At, [
606
606
  o("text", {
607
607
  class: i(`cuIcon-${e.rightIcon} text-${e.rightIconColor}`)
608
608
  }, null, 2)
@@ -613,13 +613,13 @@ const Et = {
613
613
  A.install = (s) => {
614
614
  s.component(A.name, A);
615
615
  };
616
- const Ft = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ot = { class: "action" }, Rt = {
616
+ const Mt = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ft = { class: "action" }, Ot = {
617
617
  key: 0,
618
618
  class: "cu-btn bg-green shadow-blur round"
619
- }, Gt = { key: 0 }, Xt = { key: 3 }, Kt = {
619
+ }, Rt = { key: 0 }, Gt = { key: 3 }, Xt = {
620
620
  name: "TSearchBar"
621
621
  }, L = /* @__PURE__ */ f({
622
- ...Kt,
622
+ ...Xt,
623
623
  props: {
624
624
  bgColor: { default: "white" },
625
625
  borderRadiusClass: { default: "round" },
@@ -647,7 +647,7 @@ const Ft = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ot =
647
647
  o("div", {
648
648
  class: i(["search-form", a.borderRadiusClass])
649
649
  }, [
650
- Ft,
650
+ Mt,
651
651
  o("input", {
652
652
  onFocus: r,
653
653
  onBlur: t,
@@ -657,9 +657,9 @@ const Ft = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ot =
657
657
  "confirm-type": "search"
658
658
  }, null, 32)
659
659
  ], 2),
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),
660
+ o("div", Ft, [
661
+ a.buttonText ? (n(), l("button", Ot, c(a.buttonText), 1)) : (n(), l(g, { key: 1 }, [
662
+ a.location ? (n(), l("text", Rt, c(a.location), 1)) : d("", !0),
663
663
  a.locationIcon ? (n(), l("text", {
664
664
  key: 1,
665
665
  class: i(`cuIcon-${a.locationIcon}`)
@@ -668,7 +668,7 @@ const Ft = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ot =
668
668
  key: 2,
669
669
  class: i(`cuIcon-${a.actionIcon}`)
670
670
  }, null, 2)) : d("", !0),
671
- a.actionText ? (n(), l("text", Xt, c(a.actionText), 1)) : d("", !0)
671
+ a.actionText ? (n(), l("text", Gt, c(a.actionText), 1)) : d("", !0)
672
672
  ], 64))
673
673
  ])
674
674
  ], 2));
@@ -677,14 +677,14 @@ const Ft = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ot =
677
677
  L.install = (s) => {
678
678
  s.component(L.name, L);
679
679
  };
680
- const Pt = { class: "cu-bar input" }, Ht = {
680
+ const Kt = { class: "cu-bar input" }, Pt = {
681
681
  key: 0,
682
682
  class: "action"
683
- }, Jt = {
683
+ }, Ht = {
684
684
  key: 1,
685
685
  class: "action"
686
- }, Qt = { class: "action" }, Wt = { class: "cu-btn bg-green shadow-blur" }, Yt = { name: "TInputBar" }, M = /* @__PURE__ */ f({
687
- ...Yt,
686
+ }, Jt = { class: "action" }, Qt = { class: "cu-btn bg-green shadow-blur" }, Wt = { name: "TInputBar" }, M = /* @__PURE__ */ f({
687
+ ...Wt,
688
688
  props: {
689
689
  leftIcon: {},
690
690
  middleIcon: {},
@@ -697,13 +697,13 @@ const Pt = { class: "cu-bar input" }, Ht = {
697
697
  }, t = () => {
698
698
  e.value = 0;
699
699
  };
700
- return (a, u) => (n(), l("div", Pt, [
701
- a.leftIcon ? (n(), l("div", Ht, [
700
+ return (a, u) => (n(), l("div", Kt, [
701
+ a.leftIcon ? (n(), l("div", Pt, [
702
702
  o("text", {
703
703
  class: i(`cuIcon-${a.leftIcon} text-grey`)
704
704
  }, null, 2)
705
705
  ])) : d("", !0),
706
- a.middleIcon ? (n(), l("div", Jt, [
706
+ a.middleIcon ? (n(), l("div", Ht, [
707
707
  o("text", {
708
708
  class: i(`cuIcon-${a.middleIcon} text-grey`)
709
709
  }, null, 2)
@@ -716,22 +716,22 @@ const Pt = { class: "cu-bar input" }, Ht = {
716
716
  maxlength: "300",
717
717
  "cursor-spacing": "10"
718
718
  }, null, 32),
719
- o("div", Qt, [
719
+ o("div", Jt, [
720
720
  o("text", {
721
721
  class: i(`cuIcon-${a.rightIcon} text-grey`)
722
722
  }, null, 2)
723
723
  ]),
724
- o("button", Wt, c(a.buttonText), 1)
724
+ o("button", Qt, c(a.buttonText), 1)
725
725
  ]));
726
726
  }
727
727
  });
728
728
  M.install = (s) => {
729
729
  s.component(M.name, M);
730
730
  };
731
- const Zt = ["onClick"], es = { class: "tab-content" }, ts = {
731
+ const Yt = ["onClick"], Zt = { class: "tab-content" }, es = {
732
732
  name: "TTabs"
733
733
  }, F = /* @__PURE__ */ f({
734
- ...ts,
734
+ ...es,
735
735
  props: {
736
736
  modelValue: { default: 0 },
737
737
  center: { type: Boolean, default: !1 },
@@ -745,7 +745,7 @@ const Zt = ["onClick"], es = { class: "tab-content" }, ts = {
745
745
  const r = j([]), t = j(0), a = e, u = (b, T) => {
746
746
  t.value = b, a("update:modelValue", b), a("select", T);
747
747
  };
748
- ee("registerTab", (b) => (r.value.push(b), r.value.length - 1)), ee("activeTab", t);
748
+ Z("registerTab", (b) => (r.value.push(b), r.value.length - 1)), Z("activeTab", t);
749
749
  const _ = s, C = y(() => _.center !== !1 ? "justify-content:center;" : `justify-content:${_.mode}`);
750
750
  return ce(
751
751
  () => _.modelValue,
@@ -762,16 +762,16 @@ const Zt = ["onClick"], es = { class: "tab-content" }, ts = {
762
762
  (n(!0), l(g, null, m(r.value, (B, S) => (n(), l("div", {
763
763
  class: i(["cu-item", [t.value === S ? "cur text-blue" : ""]]),
764
764
  key: S,
765
- onClick: (no) => u(S, B)
765
+ onClick: (oo) => u(S, B)
766
766
  }, [
767
767
  B.icon ? (n(), l("i", {
768
768
  key: 0,
769
769
  class: i(`cuIcon-${B.icon} text-${t.value === S ? "blue" : B.iconColor}`)
770
770
  }, null, 2)) : d("", !0),
771
771
  h(" " + c(B.label), 1)
772
- ], 10, Zt))), 128))
772
+ ], 10, Yt))), 128))
773
773
  ], 6),
774
- o("div", es, [
774
+ o("div", Zt, [
775
775
  $(b.$slots, "default", {
776
776
  tab: r.value[t.value]
777
777
  }),
@@ -779,10 +779,10 @@ const Zt = ["onClick"], es = { class: "tab-content" }, ts = {
779
779
  ])
780
780
  ], 2));
781
781
  }
782
- }), ss = {
782
+ }), ts = {
783
783
  name: "TTab"
784
784
  }, O = /* @__PURE__ */ f({
785
- ...ss,
785
+ ...ts,
786
786
  props: {
787
787
  label: {},
788
788
  icon: { default: "" },
@@ -821,34 +821,34 @@ O.install = (s) => {
821
821
  * (c) 2024 Eduardo San Martin Morote
822
822
  * @license MIT
823
823
  */
824
- var se;
824
+ var te;
825
825
  (function(s) {
826
826
  s.pop = "pop", s.push = "push";
827
- })(se || (se = {}));
828
- var oe;
827
+ })(te || (te = {}));
828
+ var se;
829
829
  (function(s) {
830
830
  s.back = "back", s.forward = "forward", s.unknown = "";
831
- })(oe || (oe = {}));
831
+ })(se || (se = {}));
832
832
  Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
833
- var ne;
833
+ var oe;
834
834
  (function(s) {
835
835
  s[s.aborted = 4] = "aborted", s[s.cancelled = 8] = "cancelled", s[s.duplicated = 16] = "duplicated";
836
- })(ne || (ne = {}));
836
+ })(oe || (oe = {}));
837
837
  Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
838
838
  Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
839
- const os = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
839
+ const ss = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
840
840
  Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
841
841
  Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
842
- function ns() {
843
- return W(os);
842
+ function os() {
843
+ return W(ss);
844
844
  }
845
- const ls = ["onClick"], as = {
845
+ const ns = ["onClick"], ls = {
846
846
  key: 0,
847
847
  class: "cu-tag badge"
848
- }, cs = { key: 0 }, is = {
848
+ }, as = { key: 0 }, cs = {
849
849
  name: "GridGroup"
850
850
  }, R = /* @__PURE__ */ f({
851
- ...is,
851
+ ...cs,
852
852
  props: {
853
853
  cuIconList: { default: () => [
854
854
  {
@@ -918,7 +918,7 @@ const ls = ["onClick"], as = {
918
918
  routeFn: { type: Function, default: void 0 }
919
919
  },
920
920
  setup(s) {
921
- const e = s, r = ns(), t = (a) => {
921
+ const e = s, r = os(), t = (a) => {
922
922
  if (a.path) {
923
923
  e.routeFn ? e.routeFn().push({
924
924
  path: a.path
@@ -944,28 +944,28 @@ const ls = ["onClick"], as = {
944
944
  o("div", {
945
945
  class: i(["cuIcon-" + p.cuIcon, "text-" + p.color])
946
946
  }, [
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)
947
+ p.badge != 0 ? (n(), l("div", ls, [
948
+ p.badge != 1 ? (n(), l("i", as, c((p.badge || 0) > 99 ? "99+" : p.badge), 1)) : d("", !0)
949
949
  ])) : d("", !0)
950
950
  ], 2),
951
951
  o("text", null, c(p.name), 1)
952
- ], 12, ls))), 128))
952
+ ], 12, ns))), 128))
953
953
  ], 2));
954
954
  }
955
955
  });
956
956
  R.install = (s) => {
957
957
  s.component(R.name, R);
958
958
  };
959
- const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey" }, _s = { class: "action" }, ps = {
959
+ const is = { class: "content" }, rs = ["src", "alt"], us = { class: "text-grey" }, ds = { class: "action" }, _s = {
960
960
  key: 1,
961
961
  class: "text-grey text-sm"
962
- }, fs = ["onClick"], gs = {
962
+ }, ps = ["onClick"], fs = {
963
963
  key: 4,
964
964
  class: "text-grey text-sm"
965
- }, hs = {
965
+ }, gs = {
966
966
  name: "Menu"
967
967
  }, G = /* @__PURE__ */ f({
968
- ...hs,
968
+ ...gs,
969
969
  props: {
970
970
  menuItems: { default: () => [
971
971
  {
@@ -1051,7 +1051,7 @@ const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey"
1051
1051
  key: a,
1052
1052
  class: i(["cu-item", e.menuArrow ? "arrow" : ""])
1053
1053
  }, [
1054
- o("div", rs, [
1054
+ o("div", is, [
1055
1055
  t.icon ? (n(), k(x, {
1056
1056
  key: 0,
1057
1057
  class: "icon",
@@ -1063,15 +1063,15 @@ const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey"
1063
1063
  class: "icon",
1064
1064
  src: t.img.url,
1065
1065
  alt: t.img.alt
1066
- }, null, 8, us)) : d("", !0),
1067
- o("text", ds, c(t.title), 1)
1066
+ }, null, 8, rs)) : d("", !0),
1067
+ o("text", us, c(t.title), 1)
1068
1068
  ]),
1069
- o("div", _s, [
1069
+ o("div", ds, [
1070
1070
  t.group ? (n(), k(D, {
1071
1071
  key: 0,
1072
1072
  urls: t.group
1073
1073
  }, null, 8, ["urls"])) : d("", !0),
1074
- t.group ? (n(), l("text", ps, c(t.group.length) + "人", 1)) : d("", !0),
1074
+ t.group ? (n(), l("text", _s, c(t.group.length) + "人", 1)) : d("", !0),
1075
1075
  t.btn ? (n(), l("button", {
1076
1076
  key: 2,
1077
1077
  class: i(["cu-btn round shadow", `bg-${t.btn.bg}`]),
@@ -1083,7 +1083,7 @@ const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey"
1083
1083
  color: "white"
1084
1084
  }, null, 8, ["name"])) : d("", !0),
1085
1085
  h(" " + c(t.btn.text), 1)
1086
- ], 10, fs)) : d("", !0),
1086
+ ], 10, ps)) : d("", !0),
1087
1087
  t.tags ? (n(!0), l(g, { key: 3 }, m(t.tags, (p, _) => (n(), k(w, {
1088
1088
  size: p.size,
1089
1089
  key: _,
@@ -1096,7 +1096,7 @@ const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey"
1096
1096
  ]),
1097
1097
  _: 2
1098
1098
  }, 1032, ["size", "bg", "light"]))), 128)) : d("", !0),
1099
- t.text ? (n(), l("text", gs, c(t.text), 1)) : d("", !0)
1099
+ t.text ? (n(), l("text", fs, c(t.text), 1)) : d("", !0)
1100
1100
  ])
1101
1101
  ], 2);
1102
1102
  }), 128))
@@ -1106,10 +1106,10 @@ const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey"
1106
1106
  G.install = (s) => {
1107
1107
  s.component(G.name, G);
1108
1108
  };
1109
- const ms = {
1109
+ const hs = {
1110
1110
  key: 0,
1111
1111
  class: "cu-tag badge"
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({
1112
+ }, 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__ */ f({
1113
1113
  __name: "ChatListItem",
1114
1114
  props: {
1115
1115
  userinfo: {},
@@ -1129,24 +1129,24 @@ const ms = {
1129
1129
  class: i(["cu-avatar", e.userinfo.avatarShape, "lg"]),
1130
1130
  style: v({ backgroundImage: `url(${e.userinfo.avatar})` })
1131
1131
  }, [
1132
- e.badge ? (n(), l("div", ms, c(e.badge), 1)) : d("", !0)
1132
+ e.badge ? (n(), l("div", hs, c(e.badge), 1)) : d("", !0)
1133
1133
  ], 6),
1134
- o("div", bs, [
1135
- o("div", vs, [
1136
- o("div", $s, c(e.userinfo.name), 1),
1134
+ o("div", ms, [
1135
+ o("div", bs, [
1136
+ o("div", vs, c(e.userinfo.name), 1),
1137
1137
  e.userinfo.tag ? (n(), l("div", {
1138
1138
  key: 0,
1139
1139
  class: i(["cu-tag", "round", `bg-${e.userinfo.tagColor}`, "sm"])
1140
1140
  }, c(e.userinfo.tag), 3)) : d("", !0)
1141
1141
  ]),
1142
- o("div", ys, [
1143
- o("div", ks, [
1142
+ o("div", $s, [
1143
+ o("div", ys, [
1144
1144
  $(e.$slots, "default", {}, void 0, !0)
1145
1145
  ])
1146
1146
  ])
1147
1147
  ]),
1148
- o("div", Is, [
1149
- o("div", ws, c(e.userinfo.time), 1),
1148
+ o("div", ks, [
1149
+ o("div", Is, c(e.userinfo.time), 1),
1150
1150
  e.unread ? (n(), l("div", {
1151
1151
  key: 0,
1152
1152
  class: i(["cu-tag", "round", `bg-${e.unreadColor}`, "sm"])
@@ -1157,16 +1157,16 @@ const ms = {
1157
1157
  ])
1158
1158
  ], 2));
1159
1159
  }
1160
- }), xs = /* @__PURE__ */ Z(Cs, [["__scopeId", "data-v-e90f08c9"]]), Ts = { class: "cu-list menu-avatar" }, Bs = {
1160
+ }), Cs = /* @__PURE__ */ ne(ws, [["__scopeId", "data-v-e90f08c9"]]), xs = { class: "cu-list menu-avatar" }, Ts = {
1161
1161
  name: "ChatList"
1162
1162
  }, X = /* @__PURE__ */ f({
1163
- ...Bs,
1163
+ ...Ts,
1164
1164
  props: {
1165
1165
  items: {}
1166
1166
  },
1167
1167
  setup(s) {
1168
- return (e, r) => (n(), l("div", Ts, [
1169
- (n(!0), l(g, null, m(e.items, (t, a) => (n(), k(xs, {
1168
+ return (e, r) => (n(), l("div", xs, [
1169
+ (n(!0), l(g, null, m(e.items, (t, a) => (n(), k(Cs, {
1170
1170
  key: a,
1171
1171
  userinfo: t.userinfo,
1172
1172
  unread: t.unread,
@@ -1190,35 +1190,35 @@ const ms = {
1190
1190
  X.install = (s) => {
1191
1191
  s.component(X.name, X);
1192
1192
  };
1193
- const js = { class: "cu-chat" }, Ss = {
1193
+ const Bs = { class: "cu-chat" }, js = {
1194
1194
  key: 0,
1195
1195
  class: "cu-info round"
1196
- }, zs = {
1196
+ }, Ss = {
1197
1197
  key: 1,
1198
1198
  class: "cu-info"
1199
- }, qs = /* @__PURE__ */ o("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), Vs = { class: "main" }, Ns = ["src"], Ds = {
1199
+ }, zs = /* @__PURE__ */ o("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), qs = { class: "main" }, Vs = ["src"], Ns = {
1200
1200
  key: 2,
1201
1201
  class: "content shadow"
1202
- }, Es = /* @__PURE__ */ o("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), Us = { class: "action text-bold text-grey" }, As = {
1202
+ }, Ds = /* @__PURE__ */ o("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), Es = { class: "action text-bold text-grey" }, Us = {
1203
1203
  key: 3,
1204
1204
  class: "content shadow"
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" }, [
1205
+ }, As = /* @__PURE__ */ o("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), Ls = { class: "content shadow" }, Ms = /* @__PURE__ */ o("div", { class: "action text-grey" }, [
1206
1206
  /* @__PURE__ */ o("text", { class: "cuIcon-warnfill text-red text-xxl" }),
1207
1207
  /* @__PURE__ */ o("text", { class: "text-sm margin-left-sm" }, "翻译错误")
1208
- ], -1), Os = { class: "date" }, Rs = { name: "ChatRoom" }, K = /* @__PURE__ */ f({
1209
- ...Rs,
1208
+ ], -1), Fs = { class: "date" }, Os = { name: "ChatRoom" }, K = /* @__PURE__ */ f({
1209
+ ...Os,
1210
1210
  props: {
1211
1211
  messages: {}
1212
1212
  },
1213
1213
  setup(s) {
1214
- return (e, r) => (n(), l("div", js, [
1214
+ return (e, r) => (n(), l("div", Bs, [
1215
1215
  (n(!0), l(g, null, m(e.messages, (t) => (n(), l("div", {
1216
1216
  key: t.id,
1217
1217
  class: i(["cu-item", { self: t.self }])
1218
1218
  }, [
1219
1219
  t.type === "info" ? (n(), l(g, { key: 0 }, [
1220
- t.self ? (n(), l("div", Ss, c(t.content), 1)) : (n(), l("div", zs, [
1221
- qs,
1220
+ t.self ? (n(), l("div", js, c(t.content), 1)) : (n(), l("div", Ss, [
1221
+ zs,
1222
1222
  h(" " + c(t.content), 1)
1223
1223
  ]))
1224
1224
  ], 64)) : (n(), l(g, { key: 1 }, [
@@ -1227,7 +1227,7 @@ const js = { class: "cu-chat" }, Ss = {
1227
1227
  mode: "radius",
1228
1228
  url: t.avatar
1229
1229
  }, null, 8, ["url"])),
1230
- o("div", Vs, [
1230
+ o("div", qs, [
1231
1231
  t.type === "text" ? (n(), l("div", {
1232
1232
  key: 0,
1233
1233
  class: i(["content shadow", { "bg-green": t.self }])
@@ -1238,15 +1238,15 @@ const js = { class: "cu-chat" }, Ss = {
1238
1238
  src: t.content,
1239
1239
  class: "radius",
1240
1240
  style: { "max-width": "100%" }
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,
1241
+ }, null, 8, Vs)) : t.type === "audio" ? (n(), l("div", Ns, [
1242
+ Ds,
1243
+ o("div", Es, c(t.content), 1)
1244
+ ])) : t.type === "location" ? (n(), l("div", Us, [
1245
+ As,
1246
1246
  h(" " + c(t.content), 1)
1247
1247
  ])) : t.type === "warning" ? (n(), l(g, { key: 4 }, [
1248
- o("div", Ms, c(t.content), 1),
1249
- Fs
1248
+ o("div", Ls, c(t.content), 1),
1249
+ Ms
1250
1250
  ], 64)) : d("", !0)
1251
1251
  ]),
1252
1252
  t.self ? (n(), k(I, {
@@ -1254,7 +1254,7 @@ const js = { class: "cu-chat" }, Ss = {
1254
1254
  mode: "radius",
1255
1255
  url: t.avatar
1256
1256
  }, null, 8, ["url"])) : d("", !0),
1257
- o("div", Os, c(t.date), 1)
1257
+ o("div", Fs, c(t.date), 1)
1258
1258
  ], 64))
1259
1259
  ], 2))), 128))
1260
1260
  ]));
@@ -1263,13 +1263,13 @@ const js = { class: "cu-chat" }, Ss = {
1263
1263
  K.install = (s) => {
1264
1264
  s.component(K.name, K);
1265
1265
  };
1266
- const Gs = { class: "cu-time" }, Xs = {
1266
+ const Rs = { class: "cu-time" }, Gs = {
1267
1267
  key: 0,
1268
1268
  class: "cu-capsule radius"
1269
- }, Ks = {
1269
+ }, Xs = {
1270
1270
  name: "TimeLine"
1271
1271
  }, P = /* @__PURE__ */ f({
1272
- ...Ks,
1272
+ ...Xs,
1273
1273
  props: {
1274
1274
  items: { default: () => [] }
1275
1275
  },
@@ -1294,7 +1294,7 @@ const Gs = { class: "cu-time" }, Xs = {
1294
1294
  key: p,
1295
1295
  class: "cu-timeline"
1296
1296
  }, [
1297
- o("div", Gs, c(u.date), 1),
1297
+ o("div", Rs, c(u.date), 1),
1298
1298
  (n(!0), l(g, null, m(u.items, (_) => {
1299
1299
  var C, b, T;
1300
1300
  return n(), l("div", {
@@ -1304,8 +1304,8 @@ const Gs = { class: "cu-time" }, Xs = {
1304
1304
  o("div", {
1305
1305
  class: i(["content", `bg-${_.bg || "gray"}`, "shadow-blur"])
1306
1306
  }, [
1307
- (C = _ == null ? void 0 : _.capsule) != null && C.list && _.capsule.list.length ? (n(), l("div", Xs, [
1308
- te(w, {
1307
+ (C = _ == null ? void 0 : _.capsule) != null && C.list && _.capsule.list.length ? (n(), l("div", Gs, [
1308
+ ee(w, {
1309
1309
  bg: e((b = _.capsule) == null ? void 0 : b.color)
1310
1310
  }, {
1311
1311
  default: Q(() => [
@@ -1313,7 +1313,7 @@ const Gs = { class: "cu-time" }, Xs = {
1313
1313
  ]),
1314
1314
  _: 2
1315
1315
  }, 1032, ["bg"]),
1316
- te(w, {
1316
+ ee(w, {
1317
1317
  bg: e((T = _.capsule) == null ? void 0 : T.color),
1318
1318
  light: !0
1319
1319
  }, {
@@ -1340,10 +1340,10 @@ const Gs = { class: "cu-time" }, Xs = {
1340
1340
  P.install = (s) => {
1341
1341
  s.component(P.name, P);
1342
1342
  };
1343
- const Ps = { class: "bg-white padding" }, Hs = ["data-index"], Js = {
1343
+ const Ks = { class: "bg-white padding" }, Ps = ["data-index"], Hs = {
1344
1344
  name: "TSteps"
1345
1345
  }, H = /* @__PURE__ */ f({
1346
- ...Js,
1346
+ ...Hs,
1347
1347
  props: {
1348
1348
  steps: {},
1349
1349
  modelValue: {},
@@ -1352,7 +1352,7 @@ const Ps = { class: "bg-white padding" }, Hs = ["data-index"], Js = {
1352
1352
  },
1353
1353
  emits: ["update:modelValue"],
1354
1354
  setup(s, { emit: e }) {
1355
- return (r, t) => (n(), l("div", Ps, [
1355
+ return (r, t) => (n(), l("div", Ks, [
1356
1356
  o("div", {
1357
1357
  class: i(["cu-steps", { "scroll-x": r.scrollX }])
1358
1358
  }, [
@@ -1363,7 +1363,7 @@ const Ps = { class: "bg-white padding" }, Hs = ["data-index"], Js = {
1363
1363
  o("text", {
1364
1364
  class: i(a.cuIcon ? "cuIcon-" + a.cuIcon : "num"),
1365
1365
  "data-index": u + 1
1366
- }, c(a.cuIcon ? "" : u + 1), 11, Hs),
1366
+ }, c(a.cuIcon ? "" : u + 1), 11, Ps),
1367
1367
  h(" " + c(a.name), 1)
1368
1368
  ], 2))), 128))
1369
1369
  ], 2)
@@ -1373,12 +1373,12 @@ const Ps = { class: "bg-white padding" }, Hs = ["data-index"], Js = {
1373
1373
  H.install = (s) => {
1374
1374
  s.component(H.name, H);
1375
1375
  };
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 = {
1376
+ const Js = { class: "cu-dialog" }, Qs = { class: "cu-bar bg-white justify-end padding-right-sm" }, Ws = { class: "content" }, Ys = /* @__PURE__ */ o("text", { class: "cuIcon-close text-red" }, null, -1), Zs = [
1377
+ Ys
1378
+ ], eo = { class: "padding-xl" }, to = {
1379
1379
  name: "DrawerModal"
1380
1380
  }, J = /* @__PURE__ */ f({
1381
- ...so,
1381
+ ...to,
1382
1382
  props: {
1383
1383
  title: {},
1384
1384
  modelValue: { type: Boolean }
@@ -1391,15 +1391,15 @@ const Qs = { class: "cu-dialog" }, Ws = { class: "cu-bar bg-white justify-end pa
1391
1391
  return (a, u) => (n(), l("div", {
1392
1392
  class: i(["cu-modal", a.modelValue ? "show" : ""])
1393
1393
  }, [
1394
- o("div", Qs, [
1395
- o("div", Ws, [
1396
- o("div", Ys, c(a.title), 1),
1394
+ o("div", Js, [
1395
+ o("div", Qs, [
1396
+ o("div", Ws, c(a.title), 1),
1397
1397
  o("div", {
1398
1398
  class: "action",
1399
1399
  onClick: t
1400
- }, eo)
1400
+ }, Zs)
1401
1401
  ]),
1402
- o("div", to, [
1402
+ o("div", eo, [
1403
1403
  $(a.$slots, "default", {}, () => [
1404
1404
  h("Modal 内容~")
1405
1405
  ])
@@ -1411,10 +1411,10 @@ const Qs = { class: "cu-dialog" }, Ws = { class: "cu-bar bg-white justify-end pa
1411
1411
  J.install = (s) => {
1412
1412
  s.component(J.name, J);
1413
1413
  };
1414
- const oo = (s) => {
1414
+ const so = (s) => {
1415
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
1416
+ }, lo = {
1417
+ install: so
1418
1418
  };
1419
1419
  export {
1420
1420
  X as ChatList,
@@ -1438,5 +1438,5 @@ export {
1438
1438
  N as TTitle,
1439
1439
  A as TTopBar,
1440
1440
  P as TimeLine,
1441
- ao as default
1441
+ lo as default
1442
1442
  };
@@ -1,5 +1,5 @@
1
- (function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c.TempColorUI={},c.Vue))})(this,function(c,e){"use strict";const R={class:"nav-list"},G=["url"],P={class:"nav-title"},X={class:"nav-name"},K={name:"TNavCard"},k=e.defineComponent({...K,props:{items:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,n)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+o.name,class:e.normalizeClass(["nav-li","bg-"+o.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((n+1)*.2+1)+"s 1"}]),key:n},[e.createElementVNode("div",P,e.toDisplayString(o.title),1),e.createElementVNode("div",X,e.toDisplayString(o.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+o.cuIcon)},null,2)],14,G))),128))]))}});k.install=l=>{l.component(k.name,k)};const q=l=>(e.pushScopeId("data-v-bbdb83ff"),l=l(),e.popScopeId(),l),H={class:"cu-item shadow"},J={class:"title"},Q={class:"text-cut"},W={class:"content"},Y=["src","alt"],Z={class:"desc"},v={class:"text-content"},ee={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},te={class:"text-gray"},oe=q(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),le=q(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ne=q(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ae={class:"margin-left-sm text-gray flex justify-between"},se={class:"text-grey margin-right-xs"},ce={name:"TNewCard"},re=e.defineComponent({...ce,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",H,[e.createElementVNode("div",J,[e.createElementVNode("div",Q,e.toDisplayString(t.title),1)]),e.createElementVNode("div",W,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,Y),e.createElementVNode("div",Z,[e.createElementVNode("div",v,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"cu-tag bg-red light sm round"},e.toDisplayString(o),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[oe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),le,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ne,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ae,[e.createElementVNode("div",se,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),U=(l,t)=>{const a=l.__vccOpts||l;for(const[o,n]of t)a[o]=n;return a},_=U(re,[["__scopeId","data-v-bbdb83ff"]]);_.install=l=>{l.component(_.name,_)};const ie={class:"cu-item shadow"},de={class:"cu-list menu-avatar"},me={class:"cu-item"},pe={class:"content flex-sub"},ge={class:"text-gray text-sm flex justify-between"},fe={class:"text-content"},ke={class:"text-gray text-sm text-right padding"},_e=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),he=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),ye=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),be={class:"cu-item"},Be={class:"content"},Ee={class:"text-grey"},$e={class:"text-gray text-content text-df"},Ce={class:"flex"},Ve={class:"flex-sub"},Ne={class:"margin-top-sm flex justify-between"},ue={class:"text-gray text-df"},Se={key:0,class:"cuIcon-appreciatefill text-red"},Ie=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),ze={class:"text-gray margin-left-xs"},we={name:"TShareCard"},h=e.defineComponent({...we,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",ie,[e.createElementVNode("div",de,[e.createElementVNode("div",me,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",pe,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ge,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",fe,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",ke,[_e,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),he,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),ye,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var n;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",be,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,e.toDisplayString(o.author),1),e.createElementVNode("div",$e,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Ce,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",Ve,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",Ne,[e.createElementVNode("div",ue,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Se)):e.createCommentVNode("",!0),Ie,e.createElementVNode("span",ze,e.toDisplayString((n=o.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});h.install=l=>{l.component(h.name,h)};const Te={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function De(l,t,a="px"){if(typeof t=="number")return`${l}: ${t}${a};`;const o=Te[t];return o?`${l}: ${o};`:""}function xe(l){return De("font-size",l)}const je={name:"TIcon"},g=e.defineComponent({...je,props:{name:{},color:{default:"grey"},size:{default:15}},setup(l){const t=l,a=e.computed(()=>xe(t.size));return(o,n)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(a.value)},null,6))}}),Fe={class:"action border-title"},Le={class:"action border-title"},qe={class:"tib text-xl text-bold text-blue"},Ue=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ae={class:"action sub-title"},Me={class:"tib text-xl text-bold text-green"},Oe=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Re={class:"action sub-title"},Ge={class:"tib text-xl text-bold text-blue"},Pe={class:"tib text-ABC text-blue"},Xe={class:"action title-style-3"},Ke={key:5,class:"cu-bar bg-white"},He={class:"action"},Je={key:6,class:"cu-bar bg-white solid-bottom"},Qe={class:"action"},We={class:"action"},Ye={name:"TTitle"},y=e.defineComponent({...Ye,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(l){return(t,a)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Fe,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Le,[e.createElementVNode("div",qe,e.toDisplayString(t.title),1),Ue])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ae,[e.createElementVNode("div",Me,e.toDisplayString(t.title),1),Oe])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Re,[e.createElementVNode("div",Ge,e.toDisplayString(t.title),1),e.createElementVNode("div",Pe,e.toDisplayString(t.deputy),1)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Xe,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("div",He,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("div",Qe,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",We,[e.renderSlot(t.$slots,"action")])]))}}),Ze={name:"TAvatar"},m=e.defineComponent({...Ze,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(l){return(t,a)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),ve={class:"cu-avatar-group"},et={name:"TAvatarGroup"},F=e.defineComponent({...et,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,n)=>(e.openBlock(),e.createBlock(m,{key:n,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),tt=["disabled"],ot={key:1},lt={name:"TButton"},b=e.defineComponent({...lt,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(l){const t=l,a=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),n=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(s,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.value),style:e.normalizeStyle(o.value),disabled:s.disabled},[e.renderSlot(s.$slots,"default"),s.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${s.icon}`),style:e.normalizeStyle(n.value)},null,6)):e.createCommentVNode("",!0),s.text?(e.openBlock(),e.createElementBlock("span",ot,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,tt))}}),nt={key:0},at={name:"TTag"},st=e.defineComponent({...at,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(l){const t=l,a=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light?"light":"",`${t.line?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(o.value)},[e.renderSlot(n.$slots,"default",{},void 0,!0),n.text?(e.openBlock(),e.createElementBlock("span",nt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}}),p=U(st,[["__scopeId","data-v-3c2b82ce"]]);g.install=l=>{l.component(g.name,g)},y.install=l=>{l.component(y.name,y)},m.install=l=>{l.component(m.name,m)},F.install=l=>{l.component(F.name,F)},b.install=l=>{l.component(b.name,b)},p.install=l=>{l.component(p.name,p)};const ct=["onClick"],rt={key:0,class:"cuIcon-cu-image"},it=["src"],dt={key:0,class:"cu-tag badge"},mt={key:0,class:"cu-tag badge"},pt={name:"TNavBar"},B=e.defineComponent({...pt,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(l){const t=l,a=(o,n)=>{t.onItemClick&&t.onItemClick(o,n)};return(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${o.bg} ${o.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["action",`text-${i===o.activeIndex?o.activeColor:o.color}`]),onClick:r=>a(s,i)},[s.img?(e.openBlock(),e.createElementBlock("div",rt,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,it),s.badge?(e.openBlock(),e.createElementBlock("div",dt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${s.icon}`)},[s.badge?(e.openBlock(),e.createElementBlock("div",mt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,ct))),128))],2))}});B.install=l=>{l.component(B.name,B)};const gt={key:0,class:"action"},ft={key:1},kt={class:"content text-bold"},_t={key:2,class:"action"},ht={name:"TTopBar"},E=e.defineComponent({...ht,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",gt,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",ft,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",kt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});E.install=l=>{l.component(E.name,E)};const yt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),bt={class:"action"},Bt={key:0,class:"cu-btn bg-green shadow-blur round"},Et={key:0},$t={key:3},Ct={name:"TSearchBar"},$=e.defineComponent({...Ct,props:{bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(l){const t=e.ref(0),a=n=>{t.value=n.detail.height},o=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${n.bgColor}`,"search"])},[n.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",n.borderRadiusClass])},[yt,e.createElementVNode("input",{onFocus:a,onBlur:o,"adjust-position":!1,type:"text",placeholder:"搜索图片、文章、视频","confirm-type":"search"},null,32)],2),e.createElementVNode("div",bt,[n.buttonText?(e.openBlock(),e.createElementBlock("button",Bt,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",Et,e.toDisplayString(n.location),1)):e.createCommentVNode("",!0),n.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${n.locationIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${n.actionIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionText?(e.openBlock(),e.createElementBlock("text",$t,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});$.install=l=>{l.component($.name,$)};const Vt={class:"cu-bar input"},Nt={key:0,class:"action"},ut={key:1,class:"action"},St={class:"action"},It={class:"cu-btn bg-green shadow-blur"},zt={name:"TInputBar"},C=e.defineComponent({...zt,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},setup(l){const t=e.ref(0),a=n=>{t.value=n.detail.height},o=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",Vt,[n.leftIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),n.middleIcon?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:a,onBlur:o,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10"},null,32),e.createElementVNode("div",St,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.rightIcon} text-grey`)},null,2)]),e.createElementVNode("button",It,e.toDisplayString(n.buttonText),1)]))}});C.install=l=>{l.component(C.name,C)};const wt=["onClick"],Tt={class:"tab-content"},Dt={name:"TTabs"},V=e.defineComponent({...Dt,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"}},emits:["update:modelValue","select"],setup(l,{emit:t}){const a=e.ref([]),o=e.ref(0),n=t,s=(d,x)=>{o.value=d,n("update:modelValue",d),n("select",x)},i=d=>(a.value.push(d),a.value.length-1);e.provide("registerTab",i),e.provide("activeTab",o);const r=l,f=e.computed(()=>r.center!==!1?"justify-content:center;":`justify-content:${r.mode}`);return e.watch(()=>r.modelValue,d=>{o.value=d}),(d,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${d.bg}`,`text-${d.text}`]]),style:e.normalizeStyle(f.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(j,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",[o.value===L?"cur text-blue":""]]),key:L,onClick:qo=>s(L,j)},[j.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${j.icon} text-${o.value===L?"blue":j.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(j.label),1)],10,wt))),128))],6),e.createElementVNode("div",Tt,[e.renderSlot(d.$slots,"default",{tab:a.value[o.value]}),e.createTextVNode("·")])],2))}}),xt={name:"TTab"},N=e.defineComponent({...xt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(l){const t=l,a=e.inject("registerTab"),o=e.inject("activeTab"),n=e.ref(null),s=e.computed(()=>(o==null?void 0:o.value)===n.value),i=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{a&&(n.value=a({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:i.value})],512)),[[e.vShow,s.value]])}});V.install=l=>{l.component(V.name,V)},N.install=l=>{l.component(N.name,N)};/*!
1
+ (function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c.TempColorUI={},c.Vue))})(this,function(c,e){"use strict";const R={class:"nav-list"},G=["url"],P={class:"nav-title"},X={class:"nav-name"},K={name:"TNavCard"},k=e.defineComponent({...K,props:{items:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,n)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+o.name,class:e.normalizeClass(["nav-li","bg-"+o.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((n+1)*.2+1)+"s 1"}]),key:n},[e.createElementVNode("div",P,e.toDisplayString(o.title),1),e.createElementVNode("div",X,e.toDisplayString(o.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+o.cuIcon)},null,2)],14,G))),128))]))}});k.install=l=>{l.component(k.name,k)};const q=l=>(e.pushScopeId("data-v-bbdb83ff"),l=l(),e.popScopeId(),l),H={class:"cu-item shadow"},J={class:"title"},Q={class:"text-cut"},W={class:"content"},Y=["src","alt"],Z={class:"desc"},v={class:"text-content"},ee={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},te={class:"text-gray"},oe=q(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),le=q(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ne=q(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ae={class:"margin-left-sm text-gray flex justify-between"},se={class:"text-grey margin-right-xs"},ce={name:"TNewCard"},re=e.defineComponent({...ce,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",H,[e.createElementVNode("div",J,[e.createElementVNode("div",Q,e.toDisplayString(t.title),1)]),e.createElementVNode("div",W,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,Y),e.createElementVNode("div",Z,[e.createElementVNode("div",v,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"cu-tag bg-red light sm round"},e.toDisplayString(o),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[oe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),le,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ne,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ae,[e.createElementVNode("div",se,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),U=(l,t)=>{const a=l.__vccOpts||l;for(const[o,n]of t)a[o]=n;return a},_=U(re,[["__scopeId","data-v-bbdb83ff"]]);_.install=l=>{l.component(_.name,_)};const ie={class:"cu-item shadow"},de={class:"cu-list menu-avatar"},me={class:"cu-item"},pe={class:"content flex-sub"},ge={class:"text-gray text-sm flex justify-between"},fe={class:"text-content"},ke={class:"text-gray text-sm text-right padding"},_e=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),he=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),ye=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),be={class:"cu-item"},Be={class:"content"},Ee={class:"text-grey"},$e={class:"text-gray text-content text-df"},Ce={class:"flex"},Ve={class:"flex-sub"},Ne={class:"margin-top-sm flex justify-between"},ue={class:"text-gray text-df"},Se={key:0,class:"cuIcon-appreciatefill text-red"},Ie=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),ze={class:"text-gray margin-left-xs"},we={name:"TShareCard"},h=e.defineComponent({...we,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",ie,[e.createElementVNode("div",de,[e.createElementVNode("div",me,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",pe,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ge,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",fe,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",ke,[_e,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),he,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),ye,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var n;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",be,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,e.toDisplayString(o.author),1),e.createElementVNode("div",$e,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Ce,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",Ve,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",Ne,[e.createElementVNode("div",ue,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Se)):e.createCommentVNode("",!0),Ie,e.createElementVNode("span",ze,e.toDisplayString((n=o.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});h.install=l=>{l.component(h.name,h)};const De={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Te(l,t,a="px"){if(typeof t=="number")return`${l}: ${t}${a};`;const o=De[t];return o?`${l}: ${o};`:""}function xe(l){return Te("font-size",l)}const je={name:"TIcon"},g=e.defineComponent({...je,props:{name:{},color:{default:"grey"},size:{default:15}},setup(l){const t=l,a=e.computed(()=>xe(t.size));return(o,n)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(a.value)},null,6))}}),Fe={class:"action border-title"},Le={class:"action border-title"},qe={class:"tib text-xl text-bold text-blue"},Ue=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ae={class:"action sub-title"},Me={class:"tib text-xl text-bold text-green"},Oe=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Re={class:"action sub-title"},Ge={class:"tib text-xl text-bold text-blue"},Pe={class:"tib text-ABC text-blue"},Xe={class:"action title-style-3"},Ke={key:5,class:"cu-bar bg-white"},He={class:"action"},Je={key:6,class:"cu-bar bg-white solid-bottom"},Qe={class:"action"},We={class:"action"},Ye={name:"TTitle"},y=e.defineComponent({...Ye,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(l){return(t,a)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Fe,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Le,[e.createElementVNode("div",qe,e.toDisplayString(t.title),1),Ue])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ae,[e.createElementVNode("div",Me,e.toDisplayString(t.title),1),Oe])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Re,[e.createElementVNode("div",Ge,e.toDisplayString(t.title),1),e.createElementVNode("div",Pe,e.toDisplayString(t.deputy),1)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Xe,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("div",He,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("div",Qe,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",We,[e.renderSlot(t.$slots,"action")])]))}}),Ze={name:"TAvatar"},m=e.defineComponent({...Ze,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(l){return(t,a)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),ve={class:"cu-avatar-group"},et={name:"TAvatarGroup"},F=e.defineComponent({...et,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,n)=>(e.openBlock(),e.createBlock(m,{key:n,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),tt=["disabled"],ot={key:1},lt={name:"TButton"},b=e.defineComponent({...lt,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(l){const t=l,a=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),n=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(s,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.value),style:e.normalizeStyle(o.value),disabled:s.disabled},[e.renderSlot(s.$slots,"default"),s.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${s.icon}`),style:e.normalizeStyle(n.value)},null,6)):e.createCommentVNode("",!0),s.text?(e.openBlock(),e.createElementBlock("span",ot,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,tt))}}),nt={key:0},at={name:"TTag"},p=e.defineComponent({...at,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(l){const t=l,a=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(o.value)},[e.renderSlot(n.$slots,"default"),n.text?(e.openBlock(),e.createElementBlock("span",nt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}});g.install=l=>{l.component(g.name,g)},y.install=l=>{l.component(y.name,y)},m.install=l=>{l.component(m.name,m)},F.install=l=>{l.component(F.name,F)},b.install=l=>{l.component(b.name,b)},p.install=l=>{l.component(p.name,p)};const st=["onClick"],ct={key:0,class:"cuIcon-cu-image"},rt=["src"],it={key:0,class:"cu-tag badge"},dt={key:0,class:"cu-tag badge"},mt={name:"TNavBar"},B=e.defineComponent({...mt,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(l){const t=l,a=(o,n)=>{t.onItemClick&&t.onItemClick(o,n)};return(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${o.bg} ${o.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["action",`text-${i===o.activeIndex?o.activeColor:o.color}`]),onClick:r=>a(s,i)},[s.img?(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,rt),s.badge?(e.openBlock(),e.createElementBlock("div",it,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${s.icon}`)},[s.badge?(e.openBlock(),e.createElementBlock("div",dt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,st))),128))],2))}});B.install=l=>{l.component(B.name,B)};const pt={key:0,class:"action"},gt={key:1},ft={class:"content text-bold"},kt={key:2,class:"action"},_t={name:"TTopBar"},E=e.defineComponent({..._t,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",pt,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",ft,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});E.install=l=>{l.component(E.name,E)};const ht=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),yt={class:"action"},bt={key:0,class:"cu-btn bg-green shadow-blur round"},Bt={key:0},Et={key:3},$t={name:"TSearchBar"},$=e.defineComponent({...$t,props:{bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(l){const t=e.ref(0),a=n=>{t.value=n.detail.height},o=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${n.bgColor}`,"search"])},[n.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",n.borderRadiusClass])},[ht,e.createElementVNode("input",{onFocus:a,onBlur:o,"adjust-position":!1,type:"text",placeholder:"搜索图片、文章、视频","confirm-type":"search"},null,32)],2),e.createElementVNode("div",yt,[n.buttonText?(e.openBlock(),e.createElementBlock("button",bt,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",Bt,e.toDisplayString(n.location),1)):e.createCommentVNode("",!0),n.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${n.locationIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${n.actionIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionText?(e.openBlock(),e.createElementBlock("text",Et,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});$.install=l=>{l.component($.name,$)};const Ct={class:"cu-bar input"},Vt={key:0,class:"action"},Nt={key:1,class:"action"},ut={class:"action"},St={class:"cu-btn bg-green shadow-blur"},It={name:"TInputBar"},C=e.defineComponent({...It,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},setup(l){const t=e.ref(0),a=n=>{t.value=n.detail.height},o=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",Ct,[n.leftIcon?(e.openBlock(),e.createElementBlock("div",Vt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),n.middleIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:a,onBlur:o,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10"},null,32),e.createElementVNode("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.rightIcon} text-grey`)},null,2)]),e.createElementVNode("button",St,e.toDisplayString(n.buttonText),1)]))}});C.install=l=>{l.component(C.name,C)};const zt=["onClick"],wt={class:"tab-content"},Dt={name:"TTabs"},V=e.defineComponent({...Dt,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"}},emits:["update:modelValue","select"],setup(l,{emit:t}){const a=e.ref([]),o=e.ref(0),n=t,s=(d,x)=>{o.value=d,n("update:modelValue",d),n("select",x)},i=d=>(a.value.push(d),a.value.length-1);e.provide("registerTab",i),e.provide("activeTab",o);const r=l,f=e.computed(()=>r.center!==!1?"justify-content:center;":`justify-content:${r.mode}`);return e.watch(()=>r.modelValue,d=>{o.value=d}),(d,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${d.bg}`,`text-${d.text}`]]),style:e.normalizeStyle(f.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(j,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",[o.value===L?"cur text-blue":""]]),key:L,onClick:Lo=>s(L,j)},[j.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${j.icon} text-${o.value===L?"blue":j.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(j.label),1)],10,zt))),128))],6),e.createElementVNode("div",wt,[e.renderSlot(d.$slots,"default",{tab:a.value[o.value]}),e.createTextVNode("·")])],2))}}),Tt={name:"TTab"},N=e.defineComponent({...Tt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(l){const t=l,a=e.inject("registerTab"),o=e.inject("activeTab"),n=e.ref(null),s=e.computed(()=>(o==null?void 0:o.value)===n.value),i=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{a&&(n.value=a({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:i.value})],512)),[[e.vShow,s.value]])}});V.install=l=>{l.component(V.name,V)},N.install=l=>{l.component(N.name,N)};/*!
2
2
  * vue-router v4.3.3
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */var A;(function(l){l.pop="pop",l.push="push"})(A||(A={}));var M;(function(l){l.back="back",l.forward="forward",l.unknown=""})(M||(M={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var O;(function(l){l[l.aborted=4]="aborted",l[l.cancelled=8]="cancelled",l[l.duplicated=16]="duplicated"})(O||(O={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const jt=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ft(){return e.inject(jt)}const Lt=["onClick"],qt={key:0,class:"cu-tag badge"},Ut={key:0},At={name:"GridGroup"},u=e.defineComponent({...At,props:{cuIconList:{default:()=>[{cuIcon:"cardboardfill",color:"red",badge:120,name:"VR",link:"http://www.baidu.com/"},{cuIcon:"recordfill",color:"orange",badge:1,name:"录像"},{cuIcon:"picfill",color:"yellow",badge:0,name:"图像"},{cuIcon:"noticefill",color:"olive",badge:22,name:"通知"},{cuIcon:"upstagefill",color:"cyan",badge:0,name:"排行榜"},{cuIcon:"clothesfill",color:"blue",badge:0,name:"皮肤"},{cuIcon:"discoverfill",color:"purple",badge:0,name:"发现"},{cuIcon:"questionfill",color:"mauve",badge:0,name:"帮助"},{cuIcon:"commandfill",color:"purple",badge:0,name:"问答"},{cuIcon:"brandfill",color:"mauve",badge:0,name:"版权"}]},gridCol:{default:4},gridBorder:{type:Boolean,default:!1},routeFn:{type:Function,default:void 0}},setup(l){const t=l,a=Ft(),o=n=>{if(n.path){t.routeFn?t.routeFn().push({path:n.path}):a.push({path:n.path});return}if(n.link){window.location.href=n.link;return}};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+n.gridCol,n.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.cuIconList,(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:r,style:e.normalizeStyle(`width: calc(100% / ${n.gridCol})`),onClick:f=>o(i)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+i.cuIcon,"text-"+i.color])},[i.badge!=0?(e.openBlock(),e.createElementBlock("div",qt,[i.badge!=1?(e.openBlock(),e.createElementBlock("i",Ut,e.toDisplayString((i.badge||0)>99?"99+":i.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(i.name),1)],12,Lt))),128))],2))}});u.install=l=>{l.component(u.name,u)};const Mt={class:"content"},Ot=["src","alt"],Rt={class:"text-grey"},Gt={class:"action"},Pt={key:1,class:"text-grey text-sm"},Xt=["onClick"],Kt={key:4,class:"text-grey text-sm"},Ht={name:"Menu"},S=e.defineComponent({...Ht,props:{menuItems:{default:()=>[{title:"测试菜单",icon:{name:"warn",color:"blue"},text:"小目标还没有实现!"},{title:"图片菜单",img:{url:"https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg",alt:"图片菜单"}},{title:"头像组",icon:{name:"emoji",color:"pink"},group:["https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg"]},{title:"按钮",icon:{name:"btn",color:"green"},btn:{text:"上传",bg:"green",icon:"upload",event:()=>{console.log("点击了按钮")}}},{title:"标签",icon:{name:"tagfill",color:"red"},tags:[{text:"音乐",bg:"orange",light:!0,size:"sm"},{text:"电影",bg:"green",light:!0,size:"sm"},{text:"旅行",light:!1}]}]},menuBorder:{type:Boolean,default:!1},menuArrow:{type:Boolean,default:!1},menuCard:{type:Boolean,default:!1}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[t.menuBorder?"sm-border":"",t.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuItems,(o,n)=>{var s;return e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["cu-item",t.menuArrow?"arrow":""])},[e.createElementVNode("div",Mt,[o.icon?(e.openBlock(),e.createBlock(g,{key:0,class:"icon",name:o.icon.name,color:o.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),o.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:o.img.url,alt:o.img.alt},null,8,Ot)):e.createCommentVNode("",!0),e.createElementVNode("text",Rt,e.toDisplayString(o.title),1)]),e.createElementVNode("div",Gt,[o.group?(e.openBlock(),e.createBlock(F,{key:0,urls:o.group},null,8,["urls"])):e.createCommentVNode("",!0),o.group?(e.openBlock(),e.createElementBlock("text",Pt,e.toDisplayString(o.group.length)+"人",1)):e.createCommentVNode("",!0),o.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${o.btn.bg}`]),onClick:(s=o.btn)==null?void 0:s.event},[o.btn.icon?(e.openBlock(),e.createBlock(g,{key:0,name:o.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.btn.text),1)],10,Xt)):e.createCommentVNode("",!0),o.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(o.tags,(i,r)=>(e.openBlock(),e.createBlock(p,{size:i.size,key:r,bg:i.bg,light:i.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("text",Kt,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0)])],2)}),128))],2))}});S.install=l=>{l.component(S.name,S)};const Jt={key:0,class:"cu-tag badge"},Qt={class:"content"},Wt={class:"flex align-center"},Yt={class:"text-cut"},Zt={class:"text-gray text-sm flex"},vt={class:"text-cut"},eo={class:"action"},to={class:"text-grey text-xs"},oo=U(e.defineComponent({__name:"ChatListItem",props:{userinfo:{},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:t.isDisconnected,cur:t.isCurrent}])},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",t.userinfo.avatarShape,"lg"]),style:e.normalizeStyle({backgroundImage:`url(${t.userinfo.avatar})`})},[t.badge?(e.openBlock(),e.createElementBlock("div",Jt,e.toDisplayString(t.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",Qt,[e.createElementVNode("div",Wt,[e.createElementVNode("div",Yt,e.toDisplayString(t.userinfo.name),1),t.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.userinfo.tagColor}`,"sm"])},e.toDisplayString(t.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Zt,[e.createElementVNode("div",vt,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),e.createElementVNode("div",eo,[e.createElementVNode("div",to,e.toDisplayString(t.userinfo.time),1),t.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.unreadColor}`,"sm"])},e.toDisplayString(t.unread),3)):t.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.iconClass)},null,2)):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-e90f08c9"]]),lo={class:"cu-list menu-avatar"},no={name:"ChatList"},I=e.defineComponent({...no,props:{items:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,n)=>(e.openBlock(),e.createBlock(oo,{key:n,userinfo:o.userinfo,unread:o.unread,unreadColor:o.unreadColor,badge:o.badge,icon:o.icon,iconClass:o.iconClass,isDisconnected:o.isDisconnected,isCurrent:o.isCurrent},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:o},()=>[e.createTextVNode(e.toDisplayString(o.content),1)])]),_:2},1032,["userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent"]))),128))]))}});I.install=l=>{l.component(I.name,I)};const ao={class:"cu-chat"},so={key:0,class:"cu-info round"},co={key:1,class:"cu-info"},ro=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),io={class:"main"},mo=["src"],po={key:2,class:"content shadow"},go=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),fo={class:"action text-bold text-grey"},ko={key:3,class:"content shadow"},_o=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),ho={class:"content shadow"},yo=e.createElementVNode("div",{class:"action text-grey"},[e.createElementVNode("text",{class:"cuIcon-warnfill text-red text-xxl"}),e.createElementVNode("text",{class:"text-sm margin-left-sm"},"翻译错误")],-1),bo={class:"date"},Bo={name:"ChatRoom"},z=e.defineComponent({...Bo,props:{messages:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:e.normalizeClass(["cu-item",{self:o.self}])},[o.type==="info"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.self?(e.openBlock(),e.createElementBlock("div",so,e.toDisplayString(o.content),1)):(e.openBlock(),e.createElementBlock("div",co,[ro,e.createTextVNode(" "+e.toDisplayString(o.content),1)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.self?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,mode:"radius",url:o.avatar},null,8,["url"])),e.createElementVNode("div",io,[o.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["content shadow",{"bg-green":o.self}])},[e.createElementVNode("text",null,e.toDisplayString(o.content),1)],2)):o.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:1,src:o.content,class:"radius",style:{"max-width":"100%"}},null,8,mo)):o.type==="audio"?(e.openBlock(),e.createElementBlock("div",po,[go,e.createElementVNode("div",fo,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",ko,[_o,e.createTextVNode(" "+e.toDisplayString(o.content),1)])):o.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",ho,e.toDisplayString(o.content),1),yo],64)):e.createCommentVNode("",!0)]),o.self?(e.openBlock(),e.createBlock(m,{key:1,mode:"radius",url:o.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",bo,e.toDisplayString(o.date),1)],64))],2))),128))]))}});z.install=l=>{l.component(z.name,z)};const Eo={class:"cu-time"},$o={key:0,class:"cu-capsule radius"},Co={name:"TimeLine"},w=e.defineComponent({...Co,props:{items:{default:()=>[]}},setup(l){function t(o){return o||"cyan"}function a(o){switch(o.status){case"past":return`text-green cuIcon-${o.icon||"roundcheckfill"}`;case"ongoing":return"text-red cuIcon-all";case"upcoming":return`text-gray cuIcon-${o.icon||"radioboxfill"}`;default:return`text-gray cuIcon-${o.icon||"radioboxfill"}`}}return(o,n)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"cu-timeline"},[e.createElementVNode("div",Eo,e.toDisplayString(s.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>{var f,d,x;return e.openBlock(),e.createElementBlock("div",{key:r.key,class:e.normalizeClass(["cu-item",a(r)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${r.bg||"gray"}`,"shadow-blur"])},[(f=r==null?void 0:r.capsule)!=null&&f.list&&r.capsule.list.length?(e.openBlock(),e.createElementBlock("div",$o,[e.createVNode(p,{bg:t((d=r.capsule)==null?void 0:d.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(p,{bg:t((x=r.capsule)==null?void 0:x.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.capsule?"margin-top-sm":"")},[e.renderSlot(o.$slots,`item-${r.key}`,{},()=>[e.createTextVNode(e.toDisplayString(r.content),1)])],2)],2)],2)}),128))]))),128))]))}});w.install=l=>{l.component(w.name,w)};const Vo={class:"bg-white padding"},No=["data-index"],uo={name:"TSteps"},T=e.defineComponent({...uo,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(l,{emit:t}){return(a,o)=>(e.openBlock(),e.createElementBlock("div",Vo,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":a.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.steps,(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",s>a.modelValue?"":`text-${a.color}`]),key:s},[e.createElementVNode("text",{class:e.normalizeClass(n.cuIcon?"cuIcon-"+n.cuIcon:"num"),"data-index":s+1},e.toDisplayString(n.cuIcon?"":s+1),11,No),e.createTextVNode(" "+e.toDisplayString(n.name),1)],2))),128))],2)]))}});T.install=l=>{l.component(T.name,T)};const So={class:"cu-dialog"},Io={class:"cu-bar bg-white justify-end padding-right-sm"},zo={class:"content"},wo=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],To={class:"padding-xl"},Do={name:"DrawerModal"},D=e.defineComponent({...Do,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(l,{emit:t}){const a=t,o=()=>{a("update:modelValue",!1)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",n.modelValue?"show":""])},[e.createElementVNode("div",So,[e.createElementVNode("div",Io,[e.createElementVNode("div",zo,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:"action",onClick:o},wo)]),e.createElementVNode("div",To,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});D.install=l=>{l.component(D.name,D)};const xo={install:l=>{l.use(g),l.use(y),l.use(m),l.use(k),l.use(_),l.use(h),l.use(B),l.use(E),l.use($),l.use(C),l.use(V),l.use(N),l.use(u),l.use(S),l.use(b),l.use(p),l.use(I),l.use(z),l.use(w),l.use(T),l.use(D)}};c.ChatList=I,c.ChatRoom=z,c.DrawerModal=D,c.GridGroup=u,c.Menu=S,c.TAvatar=m,c.TButton=b,c.TIcon=g,c.TInputBar=C,c.TNavBar=B,c.TNavCard=k,c.TNewCard=_,c.TSearchBar=$,c.TShareCard=h,c.TSteps=T,c.TTab=N,c.TTabs=V,c.TTag=p,c.TTitle=y,c.TTopBar=E,c.TimeLine=w,c.default=xo,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */var A;(function(l){l.pop="pop",l.push="push"})(A||(A={}));var M;(function(l){l.back="back",l.forward="forward",l.unknown=""})(M||(M={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var O;(function(l){l[l.aborted=4]="aborted",l[l.cancelled=8]="cancelled",l[l.duplicated=16]="duplicated"})(O||(O={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const xt=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function jt(){return e.inject(xt)}const Ft=["onClick"],Lt={key:0,class:"cu-tag badge"},qt={key:0},Ut={name:"GridGroup"},u=e.defineComponent({...Ut,props:{cuIconList:{default:()=>[{cuIcon:"cardboardfill",color:"red",badge:120,name:"VR",link:"http://www.baidu.com/"},{cuIcon:"recordfill",color:"orange",badge:1,name:"录像"},{cuIcon:"picfill",color:"yellow",badge:0,name:"图像"},{cuIcon:"noticefill",color:"olive",badge:22,name:"通知"},{cuIcon:"upstagefill",color:"cyan",badge:0,name:"排行榜"},{cuIcon:"clothesfill",color:"blue",badge:0,name:"皮肤"},{cuIcon:"discoverfill",color:"purple",badge:0,name:"发现"},{cuIcon:"questionfill",color:"mauve",badge:0,name:"帮助"},{cuIcon:"commandfill",color:"purple",badge:0,name:"问答"},{cuIcon:"brandfill",color:"mauve",badge:0,name:"版权"}]},gridCol:{default:4},gridBorder:{type:Boolean,default:!1},routeFn:{type:Function,default:void 0}},setup(l){const t=l,a=jt(),o=n=>{if(n.path){t.routeFn?t.routeFn().push({path:n.path}):a.push({path:n.path});return}if(n.link){window.location.href=n.link;return}};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+n.gridCol,n.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.cuIconList,(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:r,style:e.normalizeStyle(`width: calc(100% / ${n.gridCol})`),onClick:f=>o(i)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+i.cuIcon,"text-"+i.color])},[i.badge!=0?(e.openBlock(),e.createElementBlock("div",Lt,[i.badge!=1?(e.openBlock(),e.createElementBlock("i",qt,e.toDisplayString((i.badge||0)>99?"99+":i.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(i.name),1)],12,Ft))),128))],2))}});u.install=l=>{l.component(u.name,u)};const At={class:"content"},Mt=["src","alt"],Ot={class:"text-grey"},Rt={class:"action"},Gt={key:1,class:"text-grey text-sm"},Pt=["onClick"],Xt={key:4,class:"text-grey text-sm"},Kt={name:"Menu"},S=e.defineComponent({...Kt,props:{menuItems:{default:()=>[{title:"测试菜单",icon:{name:"warn",color:"blue"},text:"小目标还没有实现!"},{title:"图片菜单",img:{url:"https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg",alt:"图片菜单"}},{title:"头像组",icon:{name:"emoji",color:"pink"},group:["https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg"]},{title:"按钮",icon:{name:"btn",color:"green"},btn:{text:"上传",bg:"green",icon:"upload",event:()=>{console.log("点击了按钮")}}},{title:"标签",icon:{name:"tagfill",color:"red"},tags:[{text:"音乐",bg:"orange",light:!0,size:"sm"},{text:"电影",bg:"green",light:!0,size:"sm"},{text:"旅行",light:!1}]}]},menuBorder:{type:Boolean,default:!1},menuArrow:{type:Boolean,default:!1},menuCard:{type:Boolean,default:!1}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[t.menuBorder?"sm-border":"",t.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuItems,(o,n)=>{var s;return e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["cu-item",t.menuArrow?"arrow":""])},[e.createElementVNode("div",At,[o.icon?(e.openBlock(),e.createBlock(g,{key:0,class:"icon",name:o.icon.name,color:o.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),o.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:o.img.url,alt:o.img.alt},null,8,Mt)):e.createCommentVNode("",!0),e.createElementVNode("text",Ot,e.toDisplayString(o.title),1)]),e.createElementVNode("div",Rt,[o.group?(e.openBlock(),e.createBlock(F,{key:0,urls:o.group},null,8,["urls"])):e.createCommentVNode("",!0),o.group?(e.openBlock(),e.createElementBlock("text",Gt,e.toDisplayString(o.group.length)+"人",1)):e.createCommentVNode("",!0),o.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${o.btn.bg}`]),onClick:(s=o.btn)==null?void 0:s.event},[o.btn.icon?(e.openBlock(),e.createBlock(g,{key:0,name:o.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.btn.text),1)],10,Pt)):e.createCommentVNode("",!0),o.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(o.tags,(i,r)=>(e.openBlock(),e.createBlock(p,{size:i.size,key:r,bg:i.bg,light:i.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("text",Xt,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0)])],2)}),128))],2))}});S.install=l=>{l.component(S.name,S)};const Ht={key:0,class:"cu-tag badge"},Jt={class:"content"},Qt={class:"flex align-center"},Wt={class:"text-cut"},Yt={class:"text-gray text-sm flex"},Zt={class:"text-cut"},vt={class:"action"},eo={class:"text-grey text-xs"},to=U(e.defineComponent({__name:"ChatListItem",props:{userinfo:{},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:t.isDisconnected,cur:t.isCurrent}])},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",t.userinfo.avatarShape,"lg"]),style:e.normalizeStyle({backgroundImage:`url(${t.userinfo.avatar})`})},[t.badge?(e.openBlock(),e.createElementBlock("div",Ht,e.toDisplayString(t.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",Jt,[e.createElementVNode("div",Qt,[e.createElementVNode("div",Wt,e.toDisplayString(t.userinfo.name),1),t.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.userinfo.tagColor}`,"sm"])},e.toDisplayString(t.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Yt,[e.createElementVNode("div",Zt,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),e.createElementVNode("div",vt,[e.createElementVNode("div",eo,e.toDisplayString(t.userinfo.time),1),t.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.unreadColor}`,"sm"])},e.toDisplayString(t.unread),3)):t.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.iconClass)},null,2)):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-e90f08c9"]]),oo={class:"cu-list menu-avatar"},lo={name:"ChatList"},I=e.defineComponent({...lo,props:{items:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",oo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,n)=>(e.openBlock(),e.createBlock(to,{key:n,userinfo:o.userinfo,unread:o.unread,unreadColor:o.unreadColor,badge:o.badge,icon:o.icon,iconClass:o.iconClass,isDisconnected:o.isDisconnected,isCurrent:o.isCurrent},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:o},()=>[e.createTextVNode(e.toDisplayString(o.content),1)])]),_:2},1032,["userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent"]))),128))]))}});I.install=l=>{l.component(I.name,I)};const no={class:"cu-chat"},ao={key:0,class:"cu-info round"},so={key:1,class:"cu-info"},co=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),ro={class:"main"},io=["src"],mo={key:2,class:"content shadow"},po=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),go={class:"action text-bold text-grey"},fo={key:3,class:"content shadow"},ko=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),_o={class:"content shadow"},ho=e.createElementVNode("div",{class:"action text-grey"},[e.createElementVNode("text",{class:"cuIcon-warnfill text-red text-xxl"}),e.createElementVNode("text",{class:"text-sm margin-left-sm"},"翻译错误")],-1),yo={class:"date"},bo={name:"ChatRoom"},z=e.defineComponent({...bo,props:{messages:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",no,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:e.normalizeClass(["cu-item",{self:o.self}])},[o.type==="info"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.self?(e.openBlock(),e.createElementBlock("div",ao,e.toDisplayString(o.content),1)):(e.openBlock(),e.createElementBlock("div",so,[co,e.createTextVNode(" "+e.toDisplayString(o.content),1)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.self?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,mode:"radius",url:o.avatar},null,8,["url"])),e.createElementVNode("div",ro,[o.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["content shadow",{"bg-green":o.self}])},[e.createElementVNode("text",null,e.toDisplayString(o.content),1)],2)):o.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:1,src:o.content,class:"radius",style:{"max-width":"100%"}},null,8,io)):o.type==="audio"?(e.openBlock(),e.createElementBlock("div",mo,[po,e.createElementVNode("div",go,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",fo,[ko,e.createTextVNode(" "+e.toDisplayString(o.content),1)])):o.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",_o,e.toDisplayString(o.content),1),ho],64)):e.createCommentVNode("",!0)]),o.self?(e.openBlock(),e.createBlock(m,{key:1,mode:"radius",url:o.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",yo,e.toDisplayString(o.date),1)],64))],2))),128))]))}});z.install=l=>{l.component(z.name,z)};const Bo={class:"cu-time"},Eo={key:0,class:"cu-capsule radius"},$o={name:"TimeLine"},w=e.defineComponent({...$o,props:{items:{default:()=>[]}},setup(l){function t(o){return o||"cyan"}function a(o){switch(o.status){case"past":return`text-green cuIcon-${o.icon||"roundcheckfill"}`;case"ongoing":return"text-red cuIcon-all";case"upcoming":return`text-gray cuIcon-${o.icon||"radioboxfill"}`;default:return`text-gray cuIcon-${o.icon||"radioboxfill"}`}}return(o,n)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"cu-timeline"},[e.createElementVNode("div",Bo,e.toDisplayString(s.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>{var f,d,x;return e.openBlock(),e.createElementBlock("div",{key:r.key,class:e.normalizeClass(["cu-item",a(r)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${r.bg||"gray"}`,"shadow-blur"])},[(f=r==null?void 0:r.capsule)!=null&&f.list&&r.capsule.list.length?(e.openBlock(),e.createElementBlock("div",Eo,[e.createVNode(p,{bg:t((d=r.capsule)==null?void 0:d.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(p,{bg:t((x=r.capsule)==null?void 0:x.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.capsule?"margin-top-sm":"")},[e.renderSlot(o.$slots,`item-${r.key}`,{},()=>[e.createTextVNode(e.toDisplayString(r.content),1)])],2)],2)],2)}),128))]))),128))]))}});w.install=l=>{l.component(w.name,w)};const Co={class:"bg-white padding"},Vo=["data-index"],No={name:"TSteps"},D=e.defineComponent({...No,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(l,{emit:t}){return(a,o)=>(e.openBlock(),e.createElementBlock("div",Co,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":a.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.steps,(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",s>a.modelValue?"":`text-${a.color}`]),key:s},[e.createElementVNode("text",{class:e.normalizeClass(n.cuIcon?"cuIcon-"+n.cuIcon:"num"),"data-index":s+1},e.toDisplayString(n.cuIcon?"":s+1),11,Vo),e.createTextVNode(" "+e.toDisplayString(n.name),1)],2))),128))],2)]))}});D.install=l=>{l.component(D.name,D)};const uo={class:"cu-dialog"},So={class:"cu-bar bg-white justify-end padding-right-sm"},Io={class:"content"},zo=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],wo={class:"padding-xl"},Do={name:"DrawerModal"},T=e.defineComponent({...Do,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(l,{emit:t}){const a=t,o=()=>{a("update:modelValue",!1)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",n.modelValue?"show":""])},[e.createElementVNode("div",uo,[e.createElementVNode("div",So,[e.createElementVNode("div",Io,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:"action",onClick:o},zo)]),e.createElementVNode("div",wo,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});T.install=l=>{l.component(T.name,T)};const To={install:l=>{l.use(g),l.use(y),l.use(m),l.use(k),l.use(_),l.use(h),l.use(B),l.use(E),l.use($),l.use(C),l.use(V),l.use(N),l.use(u),l.use(S),l.use(b),l.use(p),l.use(I),l.use(z),l.use(w),l.use(D),l.use(T)}};c.ChatList=I,c.ChatRoom=z,c.DrawerModal=T,c.GridGroup=u,c.Menu=S,c.TAvatar=m,c.TButton=b,c.TIcon=g,c.TInputBar=C,c.TNavBar=B,c.TNavCard=k,c.TNewCard=_,c.TSearchBar=$,c.TShareCard=h,c.TSteps=D,c.TTab=N,c.TTabs=V,c.TTag=p,c.TTitle=y,c.TTopBar=E,c.TimeLine=w,c.default=To,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vue-color-ui",
3
3
  "description": "ColorUI 临时代替的版本",
4
4
  "private": false,
5
- "version": "0.0.14",
5
+ "version": "0.0.16",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "scripts": {
@@ -2,7 +2,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
2
2
  text?: string | undefined;
3
3
  bg?: BgColorName | undefined;
4
4
  size?: string | undefined;
5
- shape?: string | undefined;
5
+ shape?: "default" | "radius" | "round" | undefined;
6
6
  light?: boolean | undefined;
7
7
  line?: boolean | undefined;
8
8
  }>, {
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
15
  text?: string | undefined;
16
16
  bg?: BgColorName | undefined;
17
17
  size?: string | undefined;
18
- shape?: string | undefined;
18
+ shape?: "default" | "radius" | "round" | undefined;
19
19
  light?: boolean | undefined;
20
20
  line?: boolean | undefined;
21
21
  }>, {
@@ -28,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
28
  bg: BgColorName;
29
29
  line: boolean;
30
30
  size: string;
31
- shape: string;
31
+ shape: "radius" | "default" | "round";
32
32
  light: boolean;
33
33
  }, {}>, {
34
34
  default?(_: {}): any;