vue-color-ui 0.0.42 → 0.0.44
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 +0 -0
- package/lib/css/animation.css +0 -0
- package/lib/css/icon.css +0 -0
- package/lib/css/main.css +0 -0
- package/lib/style.css +1 -1
- package/lib/temp-color-ui.js +9 -8
- package/lib/temp-color-ui.umd.cjs +2 -2
- package/lib/vite.svg +0 -0
- package/package.json +1 -1
- package/type/Menu.d.ts +0 -0
- package/type/chat.d.ts +0 -0
- package/type/color.d.ts +0 -0
- package/type/grid.d.ts +0 -0
- package/type/icon.d.ts +0 -0
- package/type/index.d.ts +0 -0
- package/type/timeline.d.ts +0 -0
- package/types/pkg/Base/Avatar.vue.d.ts +13 -13
- package/types/pkg/Base/AvatarGroup.vue.d.ts +6 -6
- package/types/pkg/Base/Button.vue.d.ts +14 -14
- package/types/pkg/Base/Icon.vue.d.ts +4 -4
- package/types/pkg/Base/Tag.vue.d.ts +11 -11
- package/types/pkg/Base/Title.vue.d.ts +13 -12
- package/types/pkg/Base/index.d.ts +0 -0
- package/types/pkg/ChatList/ChatListItem.vue.d.ts +11 -11
- package/types/pkg/ChatList/index.d.ts +0 -0
- package/types/pkg/ChatList/index.vue.d.ts +8 -8
- package/types/pkg/ChatRoom/index.d.ts +0 -0
- package/types/pkg/ChatRoom/index.vue.d.ts +8 -8
- package/types/pkg/GridGroup/index.d.ts +0 -0
- package/types/pkg/GridGroup/index.vue.d.ts +4 -4
- package/types/pkg/InputBar/components/CandidateBox.vue.d.ts +9 -11
- package/types/pkg/InputBar/components/EmojiPanel.vue.d.ts +0 -0
- package/types/pkg/InputBar/components/FunctionPanel.vue.d.ts +3 -4
- package/types/pkg/InputBar/index.d.ts +0 -0
- package/types/pkg/InputBar/index.vue.d.ts +46 -16
- package/types/pkg/Loading/index.d.ts +0 -0
- package/types/pkg/Loading/index.vue.d.ts +4 -4
- package/types/pkg/Loading/loading2.vue.d.ts +4 -4
- package/types/pkg/Menu/index.d.ts +0 -0
- package/types/pkg/Menu/index.vue.d.ts +4 -4
- package/types/pkg/NavBar/index.d.ts +0 -0
- package/types/pkg/NavBar/index.vue.d.ts +4 -4
- package/types/pkg/NavCard/index.d.ts +0 -0
- package/types/pkg/NavCard/index.vue.d.ts +4 -4
- package/types/pkg/NewCard/index.d.ts +0 -0
- package/types/pkg/NewCard/index.vue.d.ts +4 -4
- package/types/pkg/SearchBar/index.d.ts +0 -0
- package/types/pkg/SearchBar/index.vue.d.ts +4 -4
- package/types/pkg/ShareCard/index.d.ts +0 -0
- package/types/pkg/ShareCard/index.vue.d.ts +4 -4
- package/types/pkg/Steps/index.d.ts +0 -0
- package/types/pkg/Steps/index.vue.d.ts +4 -4
- package/types/pkg/Tab/TTab.vue.d.ts +14 -13
- package/types/pkg/Tab/index.d.ts +0 -0
- package/types/pkg/Tab/index.vue.d.ts +12 -12
- package/types/pkg/TimeLine/index.d.ts +0 -0
- package/types/pkg/TimeLine/index.vue.d.ts +13 -11
- package/types/pkg/TopBar/index.d.ts +0 -0
- package/types/pkg/TopBar/index.vue.d.ts +4 -4
- package/types/pkg/VirtualScrollSlide/index.d.ts +0 -0
- package/types/pkg/VirtualScrollSlide/index.vue.d.ts +0 -0
- package/types/pkg/index.d.ts +0 -0
- package/types/pkg/modal/index.d.ts +0 -0
- package/types/pkg/modal/index.vue.d.ts +11 -11
- package/types/pkg/tools.d.ts +0 -0
- package/types/src/App.vue.d.ts +0 -0
- package/types/src/components/HelloWorld.vue.d.ts +3 -4
- package/types/src/main.d.ts +0 -0
- package/types/utils/size.d.ts +0 -0
- package/types/index.d.ts +0 -0
package/README.md
CHANGED
|
File without changes
|
package/lib/css/animation.css
CHANGED
|
File without changes
|
package/lib/css/icon.css
CHANGED
|
File without changes
|
package/lib/css/main.css
CHANGED
|
File without changes
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nav-list{display:flex;flex-wrap:wrap;padding:0 20px;justify-content:space-between}.nav-li{padding:15px;border-radius:6px;width:45%;margin:0 2.5% 20px;background-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-c7a21a1c]{width:100%;display:block;list-style:none;background-color:#fff;padding:2px 5px;margin:0;box-shadow:0 4px 8px #0000001a}.string-list li[data-v-c7a21a1c]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-c7a21a1c]:last-child{border-bottom:none}.string-list li[data-v-c7a21a1c]:hover{background-color:#f0f0f0;color:#333;cursor:pointer;border-radius:4px}.emoji-panel[data-v-e9a4aa4d]{background-color:#fff;border:1px solid #ccc;padding:10px;display:flex;flex-wrap:wrap;z-index:1000;height:280px;overflow-y:auto}.emoji-panel span[data-v-e9a4aa4d]{cursor:pointer;font-size:24px;margin:5px}.function-panel-container[data-v-1fefca20]{background-color:#fff;box-sizing:border-box;width:100vw;border-top:1px solid #66666631}.function-panel[data-v-1fefca20]{display:flex;flex-wrap:wrap;background-color:#fff;padding:10px;z-index:1000;max-width:360px;gap:18px;margin:0 auto}.function-item[data-v-1fefca20]{display:flex;flex-direction:column;align-items:center;margin:10px 0;cursor:pointer;width:70px;height:70px;background-color:#f9f9f9;border-radius:10px;justify-content:center;transition:background-color .3s}.function-item[data-v-1fefca20]:hover{background-color:#e6e6e6}.function-item span[data-v-1fefca20]{margin-top:5px;font-size:14px;color:#333;text-align:center}input[data-v-
|
|
1
|
+
.nav-list{display:flex;flex-wrap:wrap;padding:0 20px;justify-content:space-between}.nav-li{padding:15px;border-radius:6px;width:45%;margin:0 2.5% 20px;background-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-c7a21a1c]{width:100%;display:block;list-style:none;background-color:#fff;padding:2px 5px;margin:0;box-shadow:0 4px 8px #0000001a}.string-list li[data-v-c7a21a1c]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-c7a21a1c]:last-child{border-bottom:none}.string-list li[data-v-c7a21a1c]:hover{background-color:#f0f0f0;color:#333;cursor:pointer;border-radius:4px}.emoji-panel[data-v-e9a4aa4d]{background-color:#fff;border:1px solid #ccc;padding:10px;display:flex;flex-wrap:wrap;z-index:1000;height:280px;overflow-y:auto}.emoji-panel span[data-v-e9a4aa4d]{cursor:pointer;font-size:24px;margin:5px}.function-panel-container[data-v-1fefca20]{background-color:#fff;box-sizing:border-box;width:100vw;border-top:1px solid #66666631}.function-panel[data-v-1fefca20]{display:flex;flex-wrap:wrap;background-color:#fff;padding:10px;z-index:1000;max-width:360px;gap:18px;margin:0 auto}.function-item[data-v-1fefca20]{display:flex;flex-direction:column;align-items:center;margin:10px 0;cursor:pointer;width:70px;height:70px;background-color:#f9f9f9;border-radius:10px;justify-content:center;transition:background-color .3s}.function-item[data-v-1fefca20]:hover{background-color:#e6e6e6}.function-item span[data-v-1fefca20]{margin-top:5px;font-size:14px;color:#333;text-align:center}input[data-v-626eda11]:focus{outline:none}.tab-content{padding:10px 16px;background:#fff}canvas[data-v-022c82bd]{margin:0 auto}.slide-wrapper[data-v-8600af8d]{overflow:hidden;position:relative;width:100vw;height:100vh}.slide-list[data-v-8600af8d]{position:absolute;width:100%;transition:transform .3s ease}.slide-item[data-v-8600af8d]{position:absolute;width:100%}
|
package/lib/temp-color-ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var we = Object.defineProperty;
|
|
2
2
|
var Ce = (t, e, c) => e in t ? we(t, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : t[e] = c;
|
|
3
|
-
var M = (t, e, c) =>
|
|
4
|
-
import { defineComponent as _,
|
|
3
|
+
var M = (t, e, c) => Ce(t, typeof e != "symbol" ? e + "" : e, c);
|
|
4
|
+
import { defineComponent as _, createElementBlock as l, openBlock as n, Fragment as b, renderList as y, normalizeStyle as w, normalizeClass as d, createElementVNode as o, toDisplayString as u, createCommentVNode as p, createTextVNode as k, pushScopeId as xe, popScopeId as Te, computed as j, renderSlot as x, createBlock as V, ref as B, withModifiers as de, unref as Be, onMounted as D, resolveComponent as ke, createVNode as P, onUnmounted as Se, withDirectives as he, withKeys as je, vShow as pe, provide as ve, watch as Ie, inject as fe, withCtx as re, reactive as Ee, KeepAlive as Ve, resolveDynamicComponent as Me } from "vue";
|
|
5
5
|
const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" }, Ne = { class: "nav-name" }, Pe = {
|
|
6
6
|
name: "TNavCard"
|
|
7
7
|
}, R = /* @__PURE__ */ _({
|
|
@@ -877,7 +877,7 @@ const fs = {
|
|
|
877
877
|
}, Bs = {
|
|
878
878
|
key: 1,
|
|
879
879
|
class: "action"
|
|
880
|
-
}, Ss = ["value"], js = { class: "action" }, Es = { name: "TInputBar" }, Vs = /* @__PURE__ */ _({
|
|
880
|
+
}, Ss = ["value", "placeholder"], js = { class: "action" }, Es = { name: "TInputBar" }, Vs = /* @__PURE__ */ _({
|
|
881
881
|
...Es,
|
|
882
882
|
props: {
|
|
883
883
|
modelValue: {},
|
|
@@ -887,7 +887,8 @@ const fs = {
|
|
|
887
887
|
buttonText: { default: "发送" },
|
|
888
888
|
stringArray: { default: () => [] },
|
|
889
889
|
functionItems: { default: () => [] },
|
|
890
|
-
buttonBg: { default: "green" }
|
|
890
|
+
buttonBg: { default: "green" },
|
|
891
|
+
placeholder: { default: "" }
|
|
891
892
|
},
|
|
892
893
|
emits: ["update:modelValue", "send"],
|
|
893
894
|
setup(t, { emit: e }) {
|
|
@@ -936,7 +937,8 @@ const fs = {
|
|
|
936
937
|
maxlength: "300",
|
|
937
938
|
"cursor-spacing": "10",
|
|
938
939
|
value: m.modelValue,
|
|
939
|
-
onInput: E
|
|
940
|
+
onInput: E,
|
|
941
|
+
placeholder: m.placeholder
|
|
940
942
|
}, null, 40, Ss),
|
|
941
943
|
o("div", js, [
|
|
942
944
|
o("text", {
|
|
@@ -966,7 +968,7 @@ const fs = {
|
|
|
966
968
|
])
|
|
967
969
|
], 64));
|
|
968
970
|
}
|
|
969
|
-
}), Q = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-
|
|
971
|
+
}), Q = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-626eda11"]]);
|
|
970
972
|
Q.install = (t) => {
|
|
971
973
|
t.component(Q.name, Q);
|
|
972
974
|
};
|
|
@@ -1743,8 +1745,7 @@ const Pn = { class: "loading-animation" }, Ln = {
|
|
|
1743
1745
|
}
|
|
1744
1746
|
const c = t, s = B(null);
|
|
1745
1747
|
return D(() => {
|
|
1746
|
-
if (!s.value)
|
|
1747
|
-
return;
|
|
1748
|
+
if (!s.value) return;
|
|
1748
1749
|
const i = s.value.getContext("2d"), { width: a, height: h, particleRadius: r, particleDecay: f } = c, $ = window.devicePixelRatio || 1;
|
|
1749
1750
|
s.value.width = a * $, s.value.height = h * $, s.value.style.width = a + "px", s.value.style.height = h + "px", i.scale($, $);
|
|
1750
1751
|
const g = a * 0.5, I = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.TempColorUI={},i.Vue))})(this,function(i,e){"use strict";var dn=Object.defineProperty;var mn=(i,e,$)=>e in i?dn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:$}):i[e]=$;var B=(i,e,$)=>(mn(i,typeof e!="symbol"?e+"":e,$),$);const $={class:"nav-list"},oe=["onClick"],ne={class:"nav-title"},le={class:"nav-name"},ae={name:"TNavCard"},I=e.defineComponent({...ae,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,c)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+r.color]),style:e.normalizeStyle([{animation:"show "+((c+1)*.2+1)+"s 1"}]),key:c,onClick:d=>o(r,c)},[e.createElementVNode("div",ne,e.toDisplayString(r.title),1),e.createElementVNode("div",le,e.toDisplayString(r.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+r.cuIcon)},null,2)],14,oe))),128))]))}});I.install=n=>{n.component(I.name,I)};const J=n=>(e.pushScopeId("data-v-bbdb83ff"),n=n(),e.popScopeId(),n),se={class:"cu-item shadow"},ce={class:"title"},re={class:"text-cut"},ie={class:"content"},de=["src","alt"],me={class:"desc"},pe={class:"text-content"},ge={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},fe={class:"text-gray"},he=J(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ke=J(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),_e=J(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ye={class:"margin-left-sm text-gray flex justify-between"},ue={class:"text-grey margin-right-xs"},Be={name:"TNewCard"},be=e.defineComponent({...Be,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(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createElementVNode("div",re,e.toDisplayString(t.title),1)]),e.createElementVNode("div",ie,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,de),e.createElementVNode("div",me,[e.createElementVNode("div",pe,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",ge,[e.createElementVNode("div",fe,[he,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ke,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),_e,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ye,[e.createElementVNode("div",ue,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),C=(n,t)=>{const s=n.__vccOpts||n;for(const[o,a]of t)s[o]=a;return s},S=C(be,[["__scopeId","data-v-bbdb83ff"]]);S.install=n=>{n.component(S.name,S)};const Ee={class:"cu-item shadow"},$e={class:"cu-list menu-avatar"},Ce={class:"cu-item"},Ve={class:"content flex-sub"},Ne={class:"text-gray text-sm flex justify-between"},Ie={class:"text-content"},Se={class:"text-gray text-sm text-right padding"},we=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ze=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Te=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},De={class:"content"},je={class:"text-grey"},Fe={class:"text-gray text-content text-df"},Me={class:"flex"},Le={class:"flex-sub"},qe={class:"margin-top-sm flex justify-between"},Ae={class:"text-gray text-df"},Pe={key:0,class:"cuIcon-appreciatefill text-red"},Re=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ue={class:"text-gray margin-left-xs"},Xe={name:"TShareCard"},w=e.defineComponent({...Xe,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(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ce,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",Ne,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ie,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",Se,[we,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ze,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Te,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",De,[e.createElementVNode("div",je,e.toDisplayString(o.author),1),e.createElementVNode("div",Fe,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Me,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Le,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",qe,[e.createElementVNode("div",Ae,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Pe)):e.createCommentVNode("",!0),Re,e.createElementVNode("span",Ue,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=n=>{n.component(w.name,w)};const Ye={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Oe(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ye[t];return o?`${n}: ${o};`:""}function He(n){return Oe("font-size",n)}const Ge={name:"TIcon"},V=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>He(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},Je={class:"action border-title"},Qe={class:"tib text-xl text-bold text-blue"},We=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"tib text-xl text-bold text-green"},et=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),tt={class:"action sub-title"},ot={class:"action title-style-3"},nt={key:5,class:"cu-bar bg-white"},lt={class:"action"},at={key:6,class:"cu-bar bg-white solid-bottom"},st={class:"action"},ct={class:"action"},rt={name:"TTitle"},z=e.defineComponent({...rt,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>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",Ke,[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",Je,[e.createElementVNode("div",Qe,e.toDisplayString(t.title),1),We])],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",Ze,[e.createElementVNode("div",ve,e.toDisplayString(t.title),1),et])],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",tt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],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",ot,[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",nt,[e.createElementVNode("div",lt,[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",at,[e.createElementVNode("div",st,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(t.$slots,"action")])]))}}),it={name:"TAvatar"},b=e.defineComponent({...it,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(n){return(t,s)=>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))}}),dt={class:"cu-avatar-group"},mt={name:"TAvatarGroup"},H=e.defineComponent({...mt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,a)=>(e.openBlock(),e.createBlock(b,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),pt=["disabled"],gt={key:1},ft={name:"TButton"},T=e.defineComponent({...ft,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(n){const t=n,s=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"})),a=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,pt))}}),ht={key:0},kt={name:"TTag"},E=e.defineComponent({...kt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=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(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});V.install=n=>{n.component(V.name,V)},z.install=n=>{n.component(z.name,z)},b.install=n=>{n.component(b.name,b)},H.install=n=>{n.component(H.name,H)},T.install=n=>{n.component(T.name,T)},E.install=n=>{n.component(E.name,E)};const _t=["onClick"],yt={key:0,class:"cuIcon-cu-image"},ut=["src"],Bt={key:0,class:"cu-tag badge"},bt={key:0,class:"cu-tag badge"},Et={name:"TNavBar"},x=e.defineComponent({...Et,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(n){const t=n,s=(o,a)=>{t.onItemClick&&t.onItemClick(o,a)};return(o,a)=>(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,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["action",`text-${r===o.activeIndex?o.activeColor:o.color}`]),onClick:c=>s(l,r)},[l.img?(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ut),l.badge?(e.openBlock(),e.createElementBlock("div",Bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${l.icon}`)},[l.badge?(e.openBlock(),e.createElementBlock("div",bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,_t))),128))],2))}});x.install=n=>{n.component(x.name,x)};const $t={key:0,class:"action"},Ct={key:1},Vt={class:"content text-bold"},Nt={key:2,class:"action"},It={name:"TTopBar"},D=e.defineComponent({...It,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",$t,[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",Ct,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",Vt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});D.install=n=>{n.component(D.name,D)};const St=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),wt=["placeholder"],zt={class:"action"},Tt={key:0,class:"cu-btn bg-green shadow-blur round"},xt={key:0},Dt={key:3},jt={name:"TSearchBar"},j=e.defineComponent({...jt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[St,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,wt)],2),e.createElementVNode("div",zt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Tt,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",Dt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});j.install=n=>{n.component(j.name,j)};const Ft={key:0,class:"string-list"},Mt=["innerHTML","onClick"],Lt=C(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(n,{emit:t}){const s=t,o=n,a=(r="",c)=>{s("send",r,c)},l=e.computed(()=>o.stringArray.map(r=>{if(!o.text)return r.text;let c="";for(let d of r.text)o.text.includes(d)?c+=`<span style="color:#ff0000">${d}</span>`:c+=d;return c}));return(r,c)=>r.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(d,f)=>(e.openBlock(),e.createElementBlock("li",{key:f,innerHTML:d,onClick:p=>a(r.stringArray[f].text,r.stringArray[f])},null,8,Mt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),qt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],At=[{title:"红色",name:"red"},{title:"橙色",name:"orange"},{title:"黄色",name:"yellow"},{title:"橄榄色",name:"olive"},{title:"绿色",name:"green"},{title:"青色",name:"cyan"},{title:"蓝色",name:"blue"},{title:"紫色",name:"purple"},{title:"淡紫色",name:"mauve"},{title:"粉色",name:"pink"},{title:"棕色",name:"brown"},{title:"灰色",name:"grey"},{title:"灰色",name:"gray"},{title:"黑色",name:"black"},{title:"白色",name:"white"},{title:"渐变红",name:"gradual-red"},{title:"渐变橙",name:"gradual-orange"},{title:"渐变绿",name:"gradual-green"},{title:"渐变紫",name:"gradual-purple"},{title:"渐变粉",name:"gradual-pink"},{title:"渐变蓝",name:"gradual-blue"},{title:"渐变青",name:"gradual-teal"},{title:"渐变日落",name:"gradual-sunset"},{title:"渐变梦幻",name:"gradual-dream"},{title:"渐变活力橙",name:"gradual-vibrant-orange"},{title:"渐变紫蓝",name:"gradual-purple-blue"},{title:"渐变柔粉蓝",name:"gradual-soft-pink-blue"},{title:"渐变彩虹",name:"gradual-rainbow"},{title:"渐变蓝紫",name:"gradual-blue-purple"},{title:"渐变热带",name:"gradual-tropical"},{title:"渐变梦幻蓝",name:"gradual-dreamy"},{title:"渐变金色",name:"gradual-golden"},{title:"渐变灰",name:"gradual-gray"},{title:"渐变棕",name:"gradual-brown"},{title:"渐变金属",name:"gradual-metal"},{title:"渐变湖蓝",name:"gradual-lake-blue"},{title:"渐变玫瑰金",name:"gradual-rose-gold"},{title:"渐变海洋",name:"gradual-ocean"}],Pt=["onClick"],Rt=C(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(n,{emit:t}){const s=t,o=a=>{s("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(qt),r=>(e.openBlock(),e.createElementBlock("span",{key:r,onClick:c=>o(r)},e.toDisplayString(r),9,Pt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Ut={class:"function-panel-container"},Xt=["onClick"],Yt=C(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(n){const t=e.ref(null);return e.onMounted(()=>{}),(s,o)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",Ut,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"function-item",onClick:l.event},[e.createVNode(a,{name:l.icon,color:l.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(l.text),1)],8,Xt))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Ot={class:"cu-bar input"},Ht={key:0,class:"action"},Gt={key:1,class:"action"},Kt=["value"],Jt={class:"action"},Qt={name:"TInputBar"},Wt=e.defineComponent({...Qt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]},buttonBg:{default:"green"}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,r=n,c=m=>{s.value=m.detail.height},d=()=>{s.value=0},f=(m="",k)=>{m?l("send",m,k):l("send",r.modelValue),l("update:modelValue",""),o.value=!1},p=()=>{a.value=!1,o.value=!o.value},h=()=>{o.value=!1,a.value=!a.value},y=m=>{l("update:modelValue",r.modelValue+m)},u=m=>{const k=m.target;l("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(m,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Lt,{text:m.modelValue,"string-array":m.stringArray,onSend:f},null,8,["text","string-array"]),e.createElementVNode("div",Ot,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:c,onBlur:d,onKeydown:k[0]||(k[0]=e.withKeys(N=>f(),["enter"])),onConfirm:k[1]||(k[1]=N=>f()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:m.modelValue,onInput:u},null,40,Kt),e.createElementVNode("div",Jt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(p,["stop"])},null,2),m.functionItems&&m.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(h,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:e.normalizeClass(["cu-btn shadow-blur round",`bg-${m.buttonBg}`]),onClick:k[2]||(k[2]=N=>f())},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.buttonText),1)],!0)],2)]),e.withDirectives(e.createVNode(Rt,{onAddEmoji:y},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Yt,{items:m.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),F=C(Wt,[["__scopeId","data-v-cad7ccb4"]]);F.install=n=>{n.component(F.name,F)};const Zt=["onClick"],vt={class:"tab-content"},eo={name:"TTabs"},M=e.defineComponent({...eo,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"},bold:{type:Boolean,default:!1},color:{default:"blue"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(n,{emit:t}){const s=n,o=t,a=e.ref([]),l=e.ref(s.modelValue),r=(p,h)=>{l.value=p,o("update:modelValue",p),o("select",h)},c=p=>(a.value.push(p),a.value.length-1);e.provide("registerTab",c),e.provide("activeTab",l);const d=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),f=e.computed(()=>p=>{let h=[];return l.value===p&&(h.push(`text-${s.color}`),s.bold!==!1&&h.push("text-bold"),s.line!==!1&&h.push("cur")),h});return e.watch(()=>s.modelValue,p=>{l.value=p},{immediate:!0}),(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${p.bg}`,`text-${p.text}`]]),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(y,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",f.value(u)]),key:u,onClick:m=>r(u,y)},[y.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${y.icon} text-${l.value===u?p.color:y.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(y.label),1)],10,Zt))),128))],6),e.createElementVNode("div",vt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),to={name:"TTab"},L=e.defineComponent({...to,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(n){const t=n,s=e.inject("registerTab"),o=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(o==null?void 0:o.value)===a.value),r=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(a.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(c,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(c.$slots,"default"),e.renderSlot(c.$slots,"custom",{tab:r.value})],512)),[[e.vShow,l.value]])}});M.install=n=>{n.component(M.name,M)},L.install=n=>{n.component(L.name,L)};/*!
|
|
1
|
+
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.TempColorUI={},i.Vue))})(this,function(i,e){"use strict";var dn=Object.defineProperty;var mn=(i,e,V)=>e in i?dn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:V}):i[e]=V;var B=(i,e,V)=>mn(i,typeof e!="symbol"?e+"":e,V);const V={class:"nav-list"},oe=["onClick"],ne={class:"nav-title"},le={class:"nav-name"},ae={name:"TNavCard"},I=e.defineComponent({...ae,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,c)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+r.color]),style:e.normalizeStyle([{animation:"show "+((c+1)*.2+1)+"s 1"}]),key:c,onClick:d=>o(r,c)},[e.createElementVNode("div",ne,e.toDisplayString(r.title),1),e.createElementVNode("div",le,e.toDisplayString(r.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+r.cuIcon)},null,2)],14,oe))),128))]))}});I.install=n=>{n.component(I.name,I)};const J=n=>(e.pushScopeId("data-v-bbdb83ff"),n=n(),e.popScopeId(),n),se={class:"cu-item shadow"},ce={class:"title"},re={class:"text-cut"},ie={class:"content"},de=["src","alt"],me={class:"desc"},pe={class:"text-content"},ge={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},fe={class:"text-gray"},he=J(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ke=J(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),_e=J(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ye={class:"margin-left-sm text-gray flex justify-between"},ue={class:"text-grey margin-right-xs"},Be={name:"TNewCard"},be=e.defineComponent({...Be,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(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createElementVNode("div",re,e.toDisplayString(t.title),1)]),e.createElementVNode("div",ie,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,de),e.createElementVNode("div",me,[e.createElementVNode("div",pe,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",ge,[e.createElementVNode("div",fe,[he,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ke,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),_e,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ye,[e.createElementVNode("div",ue,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),$=(n,t)=>{const s=n.__vccOpts||n;for(const[o,a]of t)s[o]=a;return s},S=$(be,[["__scopeId","data-v-bbdb83ff"]]);S.install=n=>{n.component(S.name,S)};const Ee={class:"cu-item shadow"},$e={class:"cu-list menu-avatar"},Ce={class:"cu-item"},Ve={class:"content flex-sub"},Ne={class:"text-gray text-sm flex justify-between"},Ie={class:"text-content"},Se={class:"text-gray text-sm text-right padding"},we=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ze=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Te=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},De={class:"content"},je={class:"text-grey"},Fe={class:"text-gray text-content text-df"},Me={class:"flex"},Le={class:"flex-sub"},qe={class:"margin-top-sm flex justify-between"},Ae={class:"text-gray text-df"},Pe={key:0,class:"cuIcon-appreciatefill text-red"},Re=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ue={class:"text-gray margin-left-xs"},Xe={name:"TShareCard"},w=e.defineComponent({...Xe,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(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ce,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",Ne,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ie,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",Se,[we,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ze,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Te,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",De,[e.createElementVNode("div",je,e.toDisplayString(o.author),1),e.createElementVNode("div",Fe,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Me,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Le,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",qe,[e.createElementVNode("div",Ae,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Pe)):e.createCommentVNode("",!0),Re,e.createElementVNode("span",Ue,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=n=>{n.component(w.name,w)};const Ye={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Oe(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ye[t];return o?`${n}: ${o};`:""}function He(n){return Oe("font-size",n)}const Ge={name:"TIcon"},C=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>He(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},Je={class:"action border-title"},Qe={class:"tib text-xl text-bold text-blue"},We=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"tib text-xl text-bold text-green"},et=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),tt={class:"action sub-title"},ot={class:"action title-style-3"},nt={key:5,class:"cu-bar bg-white"},lt={class:"action"},at={key:6,class:"cu-bar bg-white solid-bottom"},st={class:"action"},ct={class:"action"},rt={name:"TTitle"},z=e.defineComponent({...rt,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>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",Ke,[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",Je,[e.createElementVNode("div",Qe,e.toDisplayString(t.title),1),We])],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",Ze,[e.createElementVNode("div",ve,e.toDisplayString(t.title),1),et])],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",tt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],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",ot,[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",nt,[e.createElementVNode("div",lt,[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",at,[e.createElementVNode("div",st,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(t.$slots,"action")])]))}}),it={name:"TAvatar"},b=e.defineComponent({...it,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(n){return(t,s)=>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))}}),dt={class:"cu-avatar-group"},mt={name:"TAvatarGroup"},H=e.defineComponent({...mt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,a)=>(e.openBlock(),e.createBlock(b,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),pt=["disabled"],gt={key:1},ft={name:"TButton"},T=e.defineComponent({...ft,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(n){const t=n,s=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"})),a=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,pt))}}),ht={key:0},kt={name:"TTag"},E=e.defineComponent({...kt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=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(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});C.install=n=>{n.component(C.name,C)},z.install=n=>{n.component(z.name,z)},b.install=n=>{n.component(b.name,b)},H.install=n=>{n.component(H.name,H)},T.install=n=>{n.component(T.name,T)},E.install=n=>{n.component(E.name,E)};const _t=["onClick"],yt={key:0,class:"cuIcon-cu-image"},ut=["src"],Bt={key:0,class:"cu-tag badge"},bt={key:0,class:"cu-tag badge"},Et={name:"TNavBar"},x=e.defineComponent({...Et,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(n){const t=n,s=(o,a)=>{t.onItemClick&&t.onItemClick(o,a)};return(o,a)=>(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,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["action",`text-${r===o.activeIndex?o.activeColor:o.color}`]),onClick:c=>s(l,r)},[l.img?(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ut),l.badge?(e.openBlock(),e.createElementBlock("div",Bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${l.icon}`)},[l.badge?(e.openBlock(),e.createElementBlock("div",bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,_t))),128))],2))}});x.install=n=>{n.component(x.name,x)};const $t={key:0,class:"action"},Ct={key:1},Vt={class:"content text-bold"},Nt={key:2,class:"action"},It={name:"TTopBar"},D=e.defineComponent({...It,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",$t,[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",Ct,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",Vt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});D.install=n=>{n.component(D.name,D)};const St=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),wt=["placeholder"],zt={class:"action"},Tt={key:0,class:"cu-btn bg-green shadow-blur round"},xt={key:0},Dt={key:3},jt={name:"TSearchBar"},j=e.defineComponent({...jt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[St,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,wt)],2),e.createElementVNode("div",zt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Tt,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",Dt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});j.install=n=>{n.component(j.name,j)};const Ft={key:0,class:"string-list"},Mt=["innerHTML","onClick"],Lt=$(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(n,{emit:t}){const s=t,o=n,a=(r="",c)=>{s("send",r,c)},l=e.computed(()=>o.stringArray.map(r=>{if(!o.text)return r.text;let c="";for(let d of r.text)o.text.includes(d)?c+=`<span style="color:#ff0000">${d}</span>`:c+=d;return c}));return(r,c)=>r.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(d,f)=>(e.openBlock(),e.createElementBlock("li",{key:f,innerHTML:d,onClick:p=>a(r.stringArray[f].text,r.stringArray[f])},null,8,Mt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),qt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],At=[{title:"红色",name:"red"},{title:"橙色",name:"orange"},{title:"黄色",name:"yellow"},{title:"橄榄色",name:"olive"},{title:"绿色",name:"green"},{title:"青色",name:"cyan"},{title:"蓝色",name:"blue"},{title:"紫色",name:"purple"},{title:"淡紫色",name:"mauve"},{title:"粉色",name:"pink"},{title:"棕色",name:"brown"},{title:"灰色",name:"grey"},{title:"灰色",name:"gray"},{title:"黑色",name:"black"},{title:"白色",name:"white"},{title:"渐变红",name:"gradual-red"},{title:"渐变橙",name:"gradual-orange"},{title:"渐变绿",name:"gradual-green"},{title:"渐变紫",name:"gradual-purple"},{title:"渐变粉",name:"gradual-pink"},{title:"渐变蓝",name:"gradual-blue"},{title:"渐变青",name:"gradual-teal"},{title:"渐变日落",name:"gradual-sunset"},{title:"渐变梦幻",name:"gradual-dream"},{title:"渐变活力橙",name:"gradual-vibrant-orange"},{title:"渐变紫蓝",name:"gradual-purple-blue"},{title:"渐变柔粉蓝",name:"gradual-soft-pink-blue"},{title:"渐变彩虹",name:"gradual-rainbow"},{title:"渐变蓝紫",name:"gradual-blue-purple"},{title:"渐变热带",name:"gradual-tropical"},{title:"渐变梦幻蓝",name:"gradual-dreamy"},{title:"渐变金色",name:"gradual-golden"},{title:"渐变灰",name:"gradual-gray"},{title:"渐变棕",name:"gradual-brown"},{title:"渐变金属",name:"gradual-metal"},{title:"渐变湖蓝",name:"gradual-lake-blue"},{title:"渐变玫瑰金",name:"gradual-rose-gold"},{title:"渐变海洋",name:"gradual-ocean"}],Pt=["onClick"],Rt=$(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(n,{emit:t}){const s=t,o=a=>{s("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(qt),r=>(e.openBlock(),e.createElementBlock("span",{key:r,onClick:c=>o(r)},e.toDisplayString(r),9,Pt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Ut={class:"function-panel-container"},Xt=["onClick"],Yt=$(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(n){const t=e.ref(null);return e.onMounted(()=>{}),(s,o)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",Ut,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"function-item",onClick:l.event},[e.createVNode(a,{name:l.icon,color:l.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(l.text),1)],8,Xt))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Ot={class:"cu-bar input"},Ht={key:0,class:"action"},Gt={key:1,class:"action"},Kt=["value","placeholder"],Jt={class:"action"},Qt={name:"TInputBar"},Wt=e.defineComponent({...Qt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]},buttonBg:{default:"green"},placeholder:{default:""}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,r=n,c=m=>{s.value=m.detail.height},d=()=>{s.value=0},f=(m="",k)=>{m?l("send",m,k):l("send",r.modelValue),l("update:modelValue",""),o.value=!1},p=()=>{a.value=!1,o.value=!o.value},h=()=>{o.value=!1,a.value=!a.value},y=m=>{l("update:modelValue",r.modelValue+m)},u=m=>{const k=m.target;l("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(m,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Lt,{text:m.modelValue,"string-array":m.stringArray,onSend:f},null,8,["text","string-array"]),e.createElementVNode("div",Ot,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:c,onBlur:d,onKeydown:k[0]||(k[0]=e.withKeys(N=>f(),["enter"])),onConfirm:k[1]||(k[1]=N=>f()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:m.modelValue,onInput:u,placeholder:m.placeholder},null,40,Kt),e.createElementVNode("div",Jt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(p,["stop"])},null,2),m.functionItems&&m.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(h,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:e.normalizeClass(["cu-btn shadow-blur round",`bg-${m.buttonBg}`]),onClick:k[2]||(k[2]=N=>f())},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.buttonText),1)],!0)],2)]),e.withDirectives(e.createVNode(Rt,{onAddEmoji:y},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Yt,{items:m.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),F=$(Wt,[["__scopeId","data-v-626eda11"]]);F.install=n=>{n.component(F.name,F)};const Zt=["onClick"],vt={class:"tab-content"},eo={name:"TTabs"},M=e.defineComponent({...eo,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"},bold:{type:Boolean,default:!1},color:{default:"blue"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(n,{emit:t}){const s=n,o=t,a=e.ref([]),l=e.ref(s.modelValue),r=(p,h)=>{l.value=p,o("update:modelValue",p),o("select",h)},c=p=>(a.value.push(p),a.value.length-1);e.provide("registerTab",c),e.provide("activeTab",l);const d=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),f=e.computed(()=>p=>{let h=[];return l.value===p&&(h.push(`text-${s.color}`),s.bold!==!1&&h.push("text-bold"),s.line!==!1&&h.push("cur")),h});return e.watch(()=>s.modelValue,p=>{l.value=p},{immediate:!0}),(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${p.bg}`,`text-${p.text}`]]),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(y,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",f.value(u)]),key:u,onClick:m=>r(u,y)},[y.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${y.icon} text-${l.value===u?p.color:y.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(y.label),1)],10,Zt))),128))],6),e.createElementVNode("div",vt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),to={name:"TTab"},L=e.defineComponent({...to,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(n){const t=n,s=e.inject("registerTab"),o=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(o==null?void 0:o.value)===a.value),r=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(a.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(c,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(c.$slots,"default"),e.renderSlot(c.$slots,"custom",{tab:r.value})],512)),[[e.vShow,l.value]])}});M.install=n=>{n.component(M.name,M)},L.install=n=>{n.component(L.name,L)};/*!
|
|
2
2
|
* vue-router v4.3.3
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/var Z;(function(n){n.pop="pop",n.push="push"})(Z||(Z={}));var v;(function(n){n.back="back",n.forward="forward",n.unknown=""})(v||(v={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var ee;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(ee||(ee={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const oo=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 no(){return e.inject(oo)}const lo=["onClick"],ao={key:0,class:"cu-tag badge"},so={key:0},co={name:"GridGroup"},q=e.defineComponent({...co,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(n){const t=n,s=no(),o=a=>{if(a.path){t.routeFn?t.routeFn().push({path:a.path}):s.push({path:a.path});return}if(a.link){window.location.href=a.link;return}};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+a.gridCol,a.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.cuIconList,(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:c,style:e.normalizeStyle(`width: calc(100% / ${a.gridCol})`),onClick:d=>o(r)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+r.cuIcon,"text-"+r.color])},[r.badge!=0?(e.openBlock(),e.createElementBlock("div",ao,[r.badge!=1?(e.openBlock(),e.createElementBlock("i",so,e.toDisplayString((r.badge||0)>99?"99+":r.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(r.name),1)],12,lo))),128))],2))}});q.install=n=>{n.component(q.name,q)};const ro=["onClick"],io={class:"content"},mo=["src","alt"],po={class:"text-grey"},go={class:"action"},fo={key:1,class:"text-grey text-sm"},ho=["onClick"],ko={key:4,class:"text-grey text-sm"},_o={name:"Menu"},A=e.defineComponent({..._o,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(n){const t=o=>{o.event&&o.event(o)},s=o=>{o&&o()};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[o.menuBorder?"sm-border":"",o.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menuItems,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["cu-item",o.menuArrow?"arrow":""]),onClick:c=>t(l)},[e.createElementVNode("div",io,[l.icon?(e.openBlock(),e.createBlock(V,{key:0,class:"icon",name:l.icon.name,color:l.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),l.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:l.img.url,alt:l.img.alt},null,8,mo)):e.createCommentVNode("",!0),e.createElementVNode("text",po,e.toDisplayString(l.title),1)]),e.createElementVNode("div",go,[l.group?(e.openBlock(),e.createBlock(H,{key:0,urls:l.group},null,8,["urls"])):e.createCommentVNode("",!0),l.group?(e.openBlock(),e.createElementBlock("text",fo,e.toDisplayString(l.group.length)+"人",1)):e.createCommentVNode("",!0),l.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${l.btn.bg}`]),onClick:c=>{var d;return s((d=l.btn)==null?void 0:d.event)}},[l.btn.icon?(e.openBlock(),e.createBlock(V,{key:0,name:l.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.btn.text),1)],10,ho)):e.createCommentVNode("",!0),l.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(l.tags,(c,d)=>(e.openBlock(),e.createBlock(E,{size:c.size,key:d,bg:c.bg,light:c.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("text",ko,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)])],10,ro))),128))],2))}});A.install=n=>{n.component(A.name,A)};const yo={key:1,class:"cu-tag badge"},uo={class:"content"},Bo={class:"flex align-center"},bo={class:"text-cut text-black"},Eo={class:"text-gray text-sm flex"},$o={class:"text-cut"},Co={class:"action"},Vo={class:"text-grey text-xs"},No={name:"ChatListItem"},Q=e.defineComponent({...No,props:{userinfo:{},roomId:{},roomName:{},time:{default:""},avatarName:{default:"friendfill"},avatarBg:{default:"grey"},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean},content:{},event:{type:Function,default:()=>{}}},setup(n){const t=n;return(s,o)=>{var l;const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:s.isDisconnected,cur:s.isCurrent}]),onClick:o[0]||(o[0]=r=>s.event(t))},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",s.userinfo.avatarShape,"lg",`bg-${s.avatarBg}`]),style:e.normalizeStyle({backgroundImage:s.userinfo.avatar?`url(${s.userinfo.avatar})`:""})},[(l=s.userinfo)!=null&&l.avatar?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,name:s.avatarName,size:36,color:"white"},null,8,["name"])),s.badge?(e.openBlock(),e.createElementBlock("div",yo,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",uo,[e.createElementVNode("div",Bo,[e.createElementVNode("div",bo,e.toDisplayString(s.userinfo.name),1),s.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${s.userinfo.tagColor}`,"sm"])},e.toDisplayString(s.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Eo,[e.createElementVNode("div",$o,[e.renderSlot(s.$slots,"default")])])]),e.createElementVNode("div",Co,[e.createElementVNode("div",Vo,e.toDisplayString(s.time),1),s.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${s.unreadColor}`,"sm"])},e.toDisplayString(s.unread),3)):s.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(s.iconClass)},null,2)):e.createCommentVNode("",!0)])],2)}}}),Io={class:"cu-list menu-avatar"},So={name:"ChatList"},P=e.defineComponent({...So,props:{items:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",Io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,a)=>(e.openBlock(),e.createBlock(Q,{"avatar-name":o.avatarName,"avatar-bg":o.avatarBg,time:o.time,key:a,userinfo:o.userinfo,unread:o.unread,unreadColor:o.unreadColor,badge:o.badge,icon:o.icon,iconClass:o.iconClass,isDisconnected:o.isDisconnected,isCurrent:o.isCurrent,event:o.event},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:o},()=>[e.createTextVNode(e.toDisplayString(o.content),1)])]),_:2},1032,["avatar-name","avatar-bg","time","userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent","event"]))),128))]))}});P.install=n=>{n.component(P.name,P),n.component(Q.name,Q)};const wo={class:"cu-chat"},zo={key:0,class:"cu-info round"},To={key:1,class:"cu-info"},xo=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),Do={class:"main"},jo=["src"],Fo={key:2,class:"content shadow"},Mo=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),Lo={class:"action text-bold text-grey"},qo={key:3,class:"content shadow"},Ao=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),Po={class:"content shadow"},Ro=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),Uo={class:"date"},Xo={name:"ChatRoom"},R=e.defineComponent({...Xo,props:{messages:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",wo,[(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",zo,e.toDisplayString(o.content),1)):(e.openBlock(),e.createElementBlock("div",To,[xo,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(b,{key:0,mode:"radius",url:o.avatar},null,8,["url"])),e.createElementVNode("div",Do,[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,jo)):o.type==="audio"?(e.openBlock(),e.createElementBlock("div",Fo,[Mo,e.createElementVNode("div",Lo,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",qo,[Ao,e.createTextVNode(" "+e.toDisplayString(o.content),1)])):o.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",Po,e.toDisplayString(o.content),1),Ro],64)):e.renderSlot(t.$slots,"custom-message",{key:5,message:o})]),o.self?(e.openBlock(),e.createBlock(b,{key:1,mode:"radius",url:o.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",Uo,e.toDisplayString(o.date),1)],64))],2))),128))]))}});R.install=n=>{n.component(R.name,R)};const Yo={class:"cu-time"},Oo={key:0,class:"cu-capsule radius"},Ho={name:"TimeLine"},U=e.defineComponent({...Ho,props:{items:{default:()=>[]}},setup(n){function t(o){return o||"cyan"}function s(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,a)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"cu-timeline"},[e.createElementVNode("div",Yo,e.toDisplayString(l.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,c=>{var d,f,p;return e.openBlock(),e.createElementBlock("div",{key:c.key,class:e.normalizeClass(["cu-item",s(c)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${c.bg||"gray"}`,"shadow-blur"])},[(d=c==null?void 0:c.capsule)!=null&&d.list&&c.capsule.list.length?(e.openBlock(),e.createElementBlock("div",Oo,[e.createVNode(E,{bg:t((f=c.capsule)==null?void 0:f.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(E,{bg:t((p=c.capsule)==null?void 0:p.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(c.capsule?"margin-top-sm":"")},[e.renderSlot(o.$slots,`item-${c.key}`,{},()=>[e.createTextVNode(e.toDisplayString(c.content),1)])],2)],2)],2)}),128))]))),128))]))}});U.install=n=>{n.component(U.name,U)};const Go={class:"bg-white padding"},Ko=["data-index"],Jo={name:"TSteps"},X=e.defineComponent({...Jo,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(n,{emit:t}){return(s,o)=>(e.openBlock(),e.createElementBlock("div",Go,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":s.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.steps,(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",l>s.modelValue?"":`text-${s.color}`]),key:l},[e.createElementVNode("text",{class:e.normalizeClass(a.cuIcon?"cuIcon-"+a.cuIcon:"num"),"data-index":l+1},e.toDisplayString(a.cuIcon?"":l+1),11,Ko),e.createTextVNode(" "+e.toDisplayString(a.name),1)],2))),128))],2)]))}});X.install=n=>{n.component(X.name,X)};const Qo={class:"cu-dialog"},Wo={class:"cu-bar bg-white justify-end padding-right-sm"},Zo={class:"content"},vo=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],en={class:"padding-xl"},tn={name:"DrawerModal"},Y=e.defineComponent({...tn,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:t}){const s=t,o=()=>{s("update:modelValue",!1)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",a.modelValue?"show":""])},[e.createElementVNode("div",Qo,[e.createElementVNode("div",Wo,[e.createElementVNode("div",Zo,e.toDisplayString(a.title),1),e.createElementVNode("div",{class:"action",onClick:o},vo)]),e.createElementVNode("div",en,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});Y.install=n=>{n.component(Y.name,Y)};const on={class:"loading-animation"},nn={name:"Loading1"},ln=e.defineComponent({...nn,props:{width:{default:300},height:{default:300},particleRadius:{default:7},particleDecay:{default:.01}},setup(n){class t{constructor(l,r,c){B(this,"radius");B(this,"x");B(this,"y");B(this,"angle");B(this,"speed");B(this,"accel");B(this,"decay");B(this,"life");this.radius=r,this.x=l.x,this.y=l.y,this.angle=l.angle,this.speed=l.speed,this.accel=l.accel,this.decay=c,this.life=1}step(l,r){this.speed+=this.accel,this.x+=Math.cos(this.angle)*this.speed,this.y+=Math.sin(this.angle)*this.speed,this.angle+=Math.PI/64,this.accel*=1.01,this.life-=this.decay,this.life<=0&&r.splice(l,1)}draw(l,r,c,d){l.fillStyle=l.strokeStyle=`hsla(${r+this.life*120}, 100%, 60%, ${this.life})`,l.beginPath(),c[d-1]&&(l.moveTo(this.x,this.y),l.lineTo(c[d-1].x,c[d-1].y)),l.stroke(),l.beginPath(),l.arc(this.x,this.y,Math.max(.001,this.life*this.radius),0,Math.PI*2),l.fill();const f=Math.random()*1.25;l.fillRect(~~(this.x+(Math.random()-.5)*35*this.life),~~(this.y+(Math.random()-.5)*35*this.life),f,f)}}const s=n,o=e.ref(null);return e.onMounted(()=>{if(!o.value)return;const a=o.value.getContext("2d"),{width:l,height:r,particleRadius:c,particleDecay:d}=s,f=window.devicePixelRatio||1;o.value.width=l*f,o.value.height=r*f,o.value.style.width=l+"px",o.value.style.height=r+"px",a.scale(f,f);const p=l*.5,h=[];let y=0,u=0,m=0;a.globalCompositeOperation="lighter";function k(){h.push(new t({x:l/2+Math.cos(m/20)*p/2,y:r/2+Math.sin(m/20)*p/2,angle:u+y,speed:0,accel:.01},c,d)),h.forEach((g,_)=>{g.step(_,h)}),u+=Math.PI/2,y+=Math.PI/2}function N(){a.clearRect(0,0,l,r),h.forEach((g,_)=>{g.draw(a,m,h,_)})}function K(){requestAnimationFrame(K),k(),N(),m++}K()}),(a,l)=>(e.openBlock(),e.createElementBlock("div",on,[e.createElementVNode("canvas",{ref_key:"canvas",ref:o},null,512)]))}}),O=C(ln,[["__scopeId","data-v-022c82bd"]]);O.install=n=>{n.component(O.name,O)};const an=["data-index"],sn={name:"TVirtualScrollSlide"},cn=e.defineComponent({...sn,props:{virtualTotal:{},render:{type:Function},list:{}},emits:["slideLeft","slideRight"],setup(n,{emit:t}){const s=n,o=t,a=e.ref(null),l=e.ref(null),r=e.ref(0),c=e.reactive({localIndex:0,wrapperHeight:0,touchStartY:0,touchEndY:0,touchStartX:0,touchEndX:0}),d=e.ref([]),f="slide-item";e.watch(()=>s.list,(g,_)=>{g.length!==_.length&&p()}),e.onMounted(()=>{a.value&&(c.wrapperHeight=a.value.clientHeight,p())});const p=()=>{const g=Math.max(0,c.localIndex),_=Math.min(c.localIndex+s.virtualTotal,s.list.length);d.value=s.list.slice(g,_),r.value=-c.localIndex*c.wrapperHeight},h=g=>{g.touches.length>0&&(c.touchStartY=g.touches[0].clientY,c.touchStartX=g.touches[0].clientX)},y=g=>{g.touches.length>0&&(c.touchEndY=g.touches[0].clientY,c.touchEndX=g.touches[0].clientX)},u=()=>{const g=c.touchEndY-c.touchStartY,_=c.touchEndX-c.touchStartX;Math.abs(g)>Math.abs(_)&&Math.abs(g)>30?g<0?m():k():Math.abs(_)>30&&(_<0?o("slideLeft",{item:d.value[c.localIndex],index:c.localIndex}):o("slideRight",{item:d.value[c.localIndex],index:c.localIndex})),c.touchStartY=0,c.touchEndY=0,c.touchStartX=0,c.touchEndX=0},m=()=>{c.localIndex<s.list.length-1&&(c.localIndex++,p())},k=()=>{c.localIndex>0&&(c.localIndex--,p())},N=g=>(c.localIndex+g)*c.wrapperHeight,K=e.computed(()=>d.value.map(g=>`video-${g.id}`).join(","));return(g,_)=>(e.openBlock(),e.createElementBlock("div",{class:"slide-wrapper",ref_key:"wrapper",ref:a,onTouchstart:h,onTouchmove:y,onTouchend:u},[e.createElementVNode("div",{class:"slide-list",ref_key:"slideList",ref:l,style:e.normalizeStyle({transform:`translateY(${r.value}px)`})},[(e.openBlock(),e.createBlock(e.KeepAlive,{include:K.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(te,W)=>(e.openBlock(),e.createElementBlock("div",{key:te.id,"data-index":W,class:e.normalizeClass(f),style:e.normalizeStyle({top:`${N(W)}px`})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.render(te,W))))],12,an))),128))],1032,["include"]))],4)],544))}}),G=C(cn,[["__scopeId","data-v-8600af8d"]]);G.install=n=>{n.component(G.name,G)};const rn={install:n=>{n.use(V),n.use(z),n.use(b),n.use(I),n.use(S),n.use(w),n.use(x),n.use(D),n.use(j),n.use(F),n.use(M),n.use(L),n.use(q),n.use(A),n.use(T),n.use(E),n.use(P),n.use(R),n.use(U),n.use(X),n.use(Y),n.use(O),n.use(G)}};i.ChatList=P,i.ChatRoom=R,i.DrawerModal=Y,i.GridGroup=q,i.Loading1=O,i.Menu=A,i.TAvatar=b,i.TButton=T,i.TIcon=V,i.TInputBar=F,i.TNavBar=x,i.TNavCard=I,i.TNewCard=S,i.TSearchBar=j,i.TShareCard=w,i.TSteps=X,i.TTab=L,i.TTabs=M,i.TTag=E,i.TTitle=z,i.TTopBar=D,i.TimeLine=U,i.default=rn,i.textColor=At,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/var Z;(function(n){n.pop="pop",n.push="push"})(Z||(Z={}));var v;(function(n){n.back="back",n.forward="forward",n.unknown=""})(v||(v={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var ee;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(ee||(ee={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const oo=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 no(){return e.inject(oo)}const lo=["onClick"],ao={key:0,class:"cu-tag badge"},so={key:0},co={name:"GridGroup"},q=e.defineComponent({...co,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(n){const t=n,s=no(),o=a=>{if(a.path){t.routeFn?t.routeFn().push({path:a.path}):s.push({path:a.path});return}if(a.link){window.location.href=a.link;return}};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+a.gridCol,a.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.cuIconList,(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:c,style:e.normalizeStyle(`width: calc(100% / ${a.gridCol})`),onClick:d=>o(r)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+r.cuIcon,"text-"+r.color])},[r.badge!=0?(e.openBlock(),e.createElementBlock("div",ao,[r.badge!=1?(e.openBlock(),e.createElementBlock("i",so,e.toDisplayString((r.badge||0)>99?"99+":r.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(r.name),1)],12,lo))),128))],2))}});q.install=n=>{n.component(q.name,q)};const ro=["onClick"],io={class:"content"},mo=["src","alt"],po={class:"text-grey"},go={class:"action"},fo={key:1,class:"text-grey text-sm"},ho=["onClick"],ko={key:4,class:"text-grey text-sm"},_o={name:"Menu"},A=e.defineComponent({..._o,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(n){const t=o=>{o.event&&o.event(o)},s=o=>{o&&o()};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[o.menuBorder?"sm-border":"",o.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menuItems,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["cu-item",o.menuArrow?"arrow":""]),onClick:c=>t(l)},[e.createElementVNode("div",io,[l.icon?(e.openBlock(),e.createBlock(C,{key:0,class:"icon",name:l.icon.name,color:l.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),l.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:l.img.url,alt:l.img.alt},null,8,mo)):e.createCommentVNode("",!0),e.createElementVNode("text",po,e.toDisplayString(l.title),1)]),e.createElementVNode("div",go,[l.group?(e.openBlock(),e.createBlock(H,{key:0,urls:l.group},null,8,["urls"])):e.createCommentVNode("",!0),l.group?(e.openBlock(),e.createElementBlock("text",fo,e.toDisplayString(l.group.length)+"人",1)):e.createCommentVNode("",!0),l.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${l.btn.bg}`]),onClick:c=>{var d;return s((d=l.btn)==null?void 0:d.event)}},[l.btn.icon?(e.openBlock(),e.createBlock(C,{key:0,name:l.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.btn.text),1)],10,ho)):e.createCommentVNode("",!0),l.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(l.tags,(c,d)=>(e.openBlock(),e.createBlock(E,{size:c.size,key:d,bg:c.bg,light:c.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("text",ko,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)])],10,ro))),128))],2))}});A.install=n=>{n.component(A.name,A)};const yo={key:1,class:"cu-tag badge"},uo={class:"content"},Bo={class:"flex align-center"},bo={class:"text-cut text-black"},Eo={class:"text-gray text-sm flex"},$o={class:"text-cut"},Co={class:"action"},Vo={class:"text-grey text-xs"},No={name:"ChatListItem"},Q=e.defineComponent({...No,props:{userinfo:{},roomId:{},roomName:{},time:{default:""},avatarName:{default:"friendfill"},avatarBg:{default:"grey"},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean},content:{},event:{type:Function,default:()=>{}}},setup(n){const t=n;return(s,o)=>{var l;const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:s.isDisconnected,cur:s.isCurrent}]),onClick:o[0]||(o[0]=r=>s.event(t))},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",s.userinfo.avatarShape,"lg",`bg-${s.avatarBg}`]),style:e.normalizeStyle({backgroundImage:s.userinfo.avatar?`url(${s.userinfo.avatar})`:""})},[(l=s.userinfo)!=null&&l.avatar?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,name:s.avatarName,size:36,color:"white"},null,8,["name"])),s.badge?(e.openBlock(),e.createElementBlock("div",yo,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",uo,[e.createElementVNode("div",Bo,[e.createElementVNode("div",bo,e.toDisplayString(s.userinfo.name),1),s.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${s.userinfo.tagColor}`,"sm"])},e.toDisplayString(s.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Eo,[e.createElementVNode("div",$o,[e.renderSlot(s.$slots,"default")])])]),e.createElementVNode("div",Co,[e.createElementVNode("div",Vo,e.toDisplayString(s.time),1),s.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${s.unreadColor}`,"sm"])},e.toDisplayString(s.unread),3)):s.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(s.iconClass)},null,2)):e.createCommentVNode("",!0)])],2)}}}),Io={class:"cu-list menu-avatar"},So={name:"ChatList"},P=e.defineComponent({...So,props:{items:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",Io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,a)=>(e.openBlock(),e.createBlock(Q,{"avatar-name":o.avatarName,"avatar-bg":o.avatarBg,time:o.time,key:a,userinfo:o.userinfo,unread:o.unread,unreadColor:o.unreadColor,badge:o.badge,icon:o.icon,iconClass:o.iconClass,isDisconnected:o.isDisconnected,isCurrent:o.isCurrent,event:o.event},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:o},()=>[e.createTextVNode(e.toDisplayString(o.content),1)])]),_:2},1032,["avatar-name","avatar-bg","time","userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent","event"]))),128))]))}});P.install=n=>{n.component(P.name,P),n.component(Q.name,Q)};const wo={class:"cu-chat"},zo={key:0,class:"cu-info round"},To={key:1,class:"cu-info"},xo=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),Do={class:"main"},jo=["src"],Fo={key:2,class:"content shadow"},Mo=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),Lo={class:"action text-bold text-grey"},qo={key:3,class:"content shadow"},Ao=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),Po={class:"content shadow"},Ro=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),Uo={class:"date"},Xo={name:"ChatRoom"},R=e.defineComponent({...Xo,props:{messages:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",wo,[(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",zo,e.toDisplayString(o.content),1)):(e.openBlock(),e.createElementBlock("div",To,[xo,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(b,{key:0,mode:"radius",url:o.avatar},null,8,["url"])),e.createElementVNode("div",Do,[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,jo)):o.type==="audio"?(e.openBlock(),e.createElementBlock("div",Fo,[Mo,e.createElementVNode("div",Lo,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",qo,[Ao,e.createTextVNode(" "+e.toDisplayString(o.content),1)])):o.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",Po,e.toDisplayString(o.content),1),Ro],64)):e.renderSlot(t.$slots,"custom-message",{key:5,message:o})]),o.self?(e.openBlock(),e.createBlock(b,{key:1,mode:"radius",url:o.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",Uo,e.toDisplayString(o.date),1)],64))],2))),128))]))}});R.install=n=>{n.component(R.name,R)};const Yo={class:"cu-time"},Oo={key:0,class:"cu-capsule radius"},Ho={name:"TimeLine"},U=e.defineComponent({...Ho,props:{items:{default:()=>[]}},setup(n){function t(o){return o||"cyan"}function s(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,a)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"cu-timeline"},[e.createElementVNode("div",Yo,e.toDisplayString(l.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,c=>{var d,f,p;return e.openBlock(),e.createElementBlock("div",{key:c.key,class:e.normalizeClass(["cu-item",s(c)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${c.bg||"gray"}`,"shadow-blur"])},[(d=c==null?void 0:c.capsule)!=null&&d.list&&c.capsule.list.length?(e.openBlock(),e.createElementBlock("div",Oo,[e.createVNode(E,{bg:t((f=c.capsule)==null?void 0:f.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(E,{bg:t((p=c.capsule)==null?void 0:p.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(c.capsule?"margin-top-sm":"")},[e.renderSlot(o.$slots,`item-${c.key}`,{},()=>[e.createTextVNode(e.toDisplayString(c.content),1)])],2)],2)],2)}),128))]))),128))]))}});U.install=n=>{n.component(U.name,U)};const Go={class:"bg-white padding"},Ko=["data-index"],Jo={name:"TSteps"},X=e.defineComponent({...Jo,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(n,{emit:t}){return(s,o)=>(e.openBlock(),e.createElementBlock("div",Go,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":s.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.steps,(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",l>s.modelValue?"":`text-${s.color}`]),key:l},[e.createElementVNode("text",{class:e.normalizeClass(a.cuIcon?"cuIcon-"+a.cuIcon:"num"),"data-index":l+1},e.toDisplayString(a.cuIcon?"":l+1),11,Ko),e.createTextVNode(" "+e.toDisplayString(a.name),1)],2))),128))],2)]))}});X.install=n=>{n.component(X.name,X)};const Qo={class:"cu-dialog"},Wo={class:"cu-bar bg-white justify-end padding-right-sm"},Zo={class:"content"},vo=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],en={class:"padding-xl"},tn={name:"DrawerModal"},Y=e.defineComponent({...tn,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:t}){const s=t,o=()=>{s("update:modelValue",!1)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",a.modelValue?"show":""])},[e.createElementVNode("div",Qo,[e.createElementVNode("div",Wo,[e.createElementVNode("div",Zo,e.toDisplayString(a.title),1),e.createElementVNode("div",{class:"action",onClick:o},vo)]),e.createElementVNode("div",en,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});Y.install=n=>{n.component(Y.name,Y)};const on={class:"loading-animation"},nn={name:"Loading1"},ln=e.defineComponent({...nn,props:{width:{default:300},height:{default:300},particleRadius:{default:7},particleDecay:{default:.01}},setup(n){class t{constructor(l,r,c){B(this,"radius");B(this,"x");B(this,"y");B(this,"angle");B(this,"speed");B(this,"accel");B(this,"decay");B(this,"life");this.radius=r,this.x=l.x,this.y=l.y,this.angle=l.angle,this.speed=l.speed,this.accel=l.accel,this.decay=c,this.life=1}step(l,r){this.speed+=this.accel,this.x+=Math.cos(this.angle)*this.speed,this.y+=Math.sin(this.angle)*this.speed,this.angle+=Math.PI/64,this.accel*=1.01,this.life-=this.decay,this.life<=0&&r.splice(l,1)}draw(l,r,c,d){l.fillStyle=l.strokeStyle=`hsla(${r+this.life*120}, 100%, 60%, ${this.life})`,l.beginPath(),c[d-1]&&(l.moveTo(this.x,this.y),l.lineTo(c[d-1].x,c[d-1].y)),l.stroke(),l.beginPath(),l.arc(this.x,this.y,Math.max(.001,this.life*this.radius),0,Math.PI*2),l.fill();const f=Math.random()*1.25;l.fillRect(~~(this.x+(Math.random()-.5)*35*this.life),~~(this.y+(Math.random()-.5)*35*this.life),f,f)}}const s=n,o=e.ref(null);return e.onMounted(()=>{if(!o.value)return;const a=o.value.getContext("2d"),{width:l,height:r,particleRadius:c,particleDecay:d}=s,f=window.devicePixelRatio||1;o.value.width=l*f,o.value.height=r*f,o.value.style.width=l+"px",o.value.style.height=r+"px",a.scale(f,f);const p=l*.5,h=[];let y=0,u=0,m=0;a.globalCompositeOperation="lighter";function k(){h.push(new t({x:l/2+Math.cos(m/20)*p/2,y:r/2+Math.sin(m/20)*p/2,angle:u+y,speed:0,accel:.01},c,d)),h.forEach((g,_)=>{g.step(_,h)}),u+=Math.PI/2,y+=Math.PI/2}function N(){a.clearRect(0,0,l,r),h.forEach((g,_)=>{g.draw(a,m,h,_)})}function K(){requestAnimationFrame(K),k(),N(),m++}K()}),(a,l)=>(e.openBlock(),e.createElementBlock("div",on,[e.createElementVNode("canvas",{ref_key:"canvas",ref:o},null,512)]))}}),O=$(ln,[["__scopeId","data-v-022c82bd"]]);O.install=n=>{n.component(O.name,O)};const an=["data-index"],sn={name:"TVirtualScrollSlide"},cn=e.defineComponent({...sn,props:{virtualTotal:{},render:{type:Function},list:{}},emits:["slideLeft","slideRight"],setup(n,{emit:t}){const s=n,o=t,a=e.ref(null),l=e.ref(null),r=e.ref(0),c=e.reactive({localIndex:0,wrapperHeight:0,touchStartY:0,touchEndY:0,touchStartX:0,touchEndX:0}),d=e.ref([]),f="slide-item";e.watch(()=>s.list,(g,_)=>{g.length!==_.length&&p()}),e.onMounted(()=>{a.value&&(c.wrapperHeight=a.value.clientHeight,p())});const p=()=>{const g=Math.max(0,c.localIndex),_=Math.min(c.localIndex+s.virtualTotal,s.list.length);d.value=s.list.slice(g,_),r.value=-c.localIndex*c.wrapperHeight},h=g=>{g.touches.length>0&&(c.touchStartY=g.touches[0].clientY,c.touchStartX=g.touches[0].clientX)},y=g=>{g.touches.length>0&&(c.touchEndY=g.touches[0].clientY,c.touchEndX=g.touches[0].clientX)},u=()=>{const g=c.touchEndY-c.touchStartY,_=c.touchEndX-c.touchStartX;Math.abs(g)>Math.abs(_)&&Math.abs(g)>30?g<0?m():k():Math.abs(_)>30&&(_<0?o("slideLeft",{item:d.value[c.localIndex],index:c.localIndex}):o("slideRight",{item:d.value[c.localIndex],index:c.localIndex})),c.touchStartY=0,c.touchEndY=0,c.touchStartX=0,c.touchEndX=0},m=()=>{c.localIndex<s.list.length-1&&(c.localIndex++,p())},k=()=>{c.localIndex>0&&(c.localIndex--,p())},N=g=>(c.localIndex+g)*c.wrapperHeight,K=e.computed(()=>d.value.map(g=>`video-${g.id}`).join(","));return(g,_)=>(e.openBlock(),e.createElementBlock("div",{class:"slide-wrapper",ref_key:"wrapper",ref:a,onTouchstart:h,onTouchmove:y,onTouchend:u},[e.createElementVNode("div",{class:"slide-list",ref_key:"slideList",ref:l,style:e.normalizeStyle({transform:`translateY(${r.value}px)`})},[(e.openBlock(),e.createBlock(e.KeepAlive,{include:K.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(te,W)=>(e.openBlock(),e.createElementBlock("div",{key:te.id,"data-index":W,class:e.normalizeClass(f),style:e.normalizeStyle({top:`${N(W)}px`})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.render(te,W))))],12,an))),128))],1032,["include"]))],4)],544))}}),G=$(cn,[["__scopeId","data-v-8600af8d"]]);G.install=n=>{n.component(G.name,G)};const rn={install:n=>{n.use(C),n.use(z),n.use(b),n.use(I),n.use(S),n.use(w),n.use(x),n.use(D),n.use(j),n.use(F),n.use(M),n.use(L),n.use(q),n.use(A),n.use(T),n.use(E),n.use(P),n.use(R),n.use(U),n.use(X),n.use(Y),n.use(O),n.use(G)}};i.ChatList=P,i.ChatRoom=R,i.DrawerModal=Y,i.GridGroup=q,i.Loading1=O,i.Menu=A,i.TAvatar=b,i.TButton=T,i.TIcon=C,i.TInputBar=F,i.TNavBar=x,i.TNavCard=I,i.TNewCard=S,i.TSearchBar=j,i.TShareCard=w,i.TSteps=X,i.TTab=L,i.TTabs=M,i.TTag=E,i.TTitle=z,i.TTopBar=D,i.TimeLine=U,i.default=rn,i.textColor=At,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/lib/vite.svg
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/type/Menu.d.ts
CHANGED
|
File without changes
|
package/type/chat.d.ts
CHANGED
|
File without changes
|
package/type/color.d.ts
CHANGED
|
File without changes
|
package/type/grid.d.ts
CHANGED
|
File without changes
|
package/type/icon.d.ts
CHANGED
|
File without changes
|
package/type/index.d.ts
CHANGED
|
File without changes
|
package/type/timeline.d.ts
CHANGED
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
url?: string | undefined;
|
|
3
|
-
size?: "
|
|
3
|
+
size?: "xl" | "lg" | "sm" | undefined;
|
|
4
4
|
mode?: "round" | "radius" | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
size: string;
|
|
7
7
|
mode: string;
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
9
9
|
url?: string | undefined;
|
|
10
|
-
size?: "
|
|
10
|
+
size?: "xl" | "lg" | "sm" | undefined;
|
|
11
11
|
mode?: "round" | "radius" | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
size: string;
|
|
@@ -16,22 +16,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
16
|
size: "sm" | "lg" | "xl";
|
|
17
17
|
mode: "round" | "radius";
|
|
18
18
|
}, {}>, {
|
|
19
|
-
default
|
|
19
|
+
default?: ((props: {}) => any) | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export default _default;
|
|
22
22
|
type __VLS_WithDefaults<P, D> = {
|
|
23
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
23
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
24
24
|
default: D[K];
|
|
25
25
|
}> : P[K];
|
|
26
26
|
};
|
|
27
|
-
type __VLS_Prettify<T> = {
|
|
28
|
-
[K in keyof T]: T[K];
|
|
29
|
-
} & {};
|
|
30
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
-
new (): {
|
|
32
|
-
$slots: S;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
27
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
28
|
type __VLS_TypePropsToOption<T> = {
|
|
37
29
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -41,3 +33,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
41
33
|
required: true;
|
|
42
34
|
};
|
|
43
35
|
};
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_PrettifyLocal<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
urls?: string[] | undefined;
|
|
3
|
-
size?: "
|
|
3
|
+
size?: "xl" | "lg" | "sm" | undefined;
|
|
4
4
|
mode?: "round" | "radius" | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
urls: () => never[];
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
8
|
mode: string;
|
|
9
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
10
10
|
urls?: string[] | undefined;
|
|
11
|
-
size?: "
|
|
11
|
+
size?: "xl" | "lg" | "sm" | undefined;
|
|
12
12
|
mode?: "round" | "radius" | undefined;
|
|
13
13
|
}>, {
|
|
14
14
|
urls: () => never[];
|
|
@@ -21,13 +21,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
21
21
|
}, {}>;
|
|
22
22
|
export default _default;
|
|
23
23
|
type __VLS_WithDefaults<P, D> = {
|
|
24
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
25
25
|
default: D[K];
|
|
26
26
|
}> : P[K];
|
|
27
27
|
};
|
|
28
|
-
type __VLS_Prettify<T> = {
|
|
29
|
-
[K in keyof T]: T[K];
|
|
30
|
-
} & {};
|
|
31
28
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
29
|
type __VLS_TypePropsToOption<T> = {
|
|
33
30
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -37,3 +34,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
37
34
|
required: true;
|
|
38
35
|
};
|
|
39
36
|
};
|
|
37
|
+
type __VLS_PrettifyLocal<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
text?: string | undefined;
|
|
3
3
|
bg?: BgColorName | undefined;
|
|
4
|
-
size?: "default" | "
|
|
4
|
+
size?: "default" | "xl" | "lg" | "sm" | undefined;
|
|
5
5
|
rounded?: boolean | undefined;
|
|
6
6
|
icon?: string | undefined;
|
|
7
7
|
disabled?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
16
16
|
text?: string | undefined;
|
|
17
17
|
bg?: BgColorName | undefined;
|
|
18
|
-
size?: "default" | "
|
|
18
|
+
size?: "default" | "xl" | "lg" | "sm" | undefined;
|
|
19
19
|
rounded?: boolean | undefined;
|
|
20
20
|
icon?: string | undefined;
|
|
21
21
|
disabled?: boolean | undefined;
|
|
@@ -28,27 +28,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
28
28
|
shadow: boolean;
|
|
29
29
|
}>>>, {
|
|
30
30
|
size: "sm" | "lg" | "xl" | "default";
|
|
31
|
-
shadow: boolean;
|
|
32
31
|
bg: BgColorName;
|
|
33
32
|
rounded: boolean;
|
|
34
33
|
disabled: boolean;
|
|
34
|
+
shadow: boolean;
|
|
35
35
|
}, {}>, {
|
|
36
|
-
default
|
|
36
|
+
default?: ((props: {}) => any) | undefined;
|
|
37
37
|
}>;
|
|
38
38
|
export default _default;
|
|
39
39
|
type __VLS_WithDefaults<P, D> = {
|
|
40
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
40
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
41
41
|
default: D[K];
|
|
42
42
|
}> : P[K];
|
|
43
43
|
};
|
|
44
|
-
type __VLS_Prettify<T> = {
|
|
45
|
-
[K in keyof T]: T[K];
|
|
46
|
-
} & {};
|
|
47
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
-
new (): {
|
|
49
|
-
$slots: S;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
44
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
53
45
|
type __VLS_TypePropsToOption<T> = {
|
|
54
46
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -58,3 +50,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
58
50
|
required: true;
|
|
59
51
|
};
|
|
60
52
|
};
|
|
53
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
type __VLS_PrettifyLocal<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
@@ -18,13 +18,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
18
18
|
}, {}>;
|
|
19
19
|
export default _default;
|
|
20
20
|
type __VLS_WithDefaults<P, D> = {
|
|
21
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
21
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
22
22
|
default: D[K];
|
|
23
23
|
}> : P[K];
|
|
24
24
|
};
|
|
25
|
-
type __VLS_Prettify<T> = {
|
|
26
|
-
[K in keyof T]: T[K];
|
|
27
|
-
} & {};
|
|
28
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
26
|
type __VLS_TypePropsToOption<T> = {
|
|
30
27
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -34,3 +31,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
34
31
|
required: true;
|
|
35
32
|
};
|
|
36
33
|
};
|
|
34
|
+
type __VLS_PrettifyLocal<T> = {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} & {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
text?: string | undefined;
|
|
3
3
|
bg?: BgColorName | undefined;
|
|
4
4
|
size?: string | undefined;
|
|
@@ -31,22 +31,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
31
|
bg: BgColorName;
|
|
32
32
|
shape: "radius" | "default" | "round";
|
|
33
33
|
}, {}>, {
|
|
34
|
-
default
|
|
34
|
+
default?: ((props: {}) => any) | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
export default _default;
|
|
37
37
|
type __VLS_WithDefaults<P, D> = {
|
|
38
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
38
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
39
39
|
default: D[K];
|
|
40
40
|
}> : P[K];
|
|
41
41
|
};
|
|
42
|
-
type __VLS_Prettify<T> = {
|
|
43
|
-
[K in keyof T]: T[K];
|
|
44
|
-
} & {};
|
|
45
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
-
new (): {
|
|
47
|
-
$slots: S;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
42
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
51
43
|
type __VLS_TypePropsToOption<T> = {
|
|
52
44
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -56,3 +48,11 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
56
48
|
required: true;
|
|
57
49
|
};
|
|
58
50
|
};
|
|
51
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_PrettifyLocal<T> = {
|
|
57
|
+
[K in keyof T]: T[K];
|
|
58
|
+
} & {};
|