UNPKG

niuke-im

Version:

niuke-im-next

2 lines (1 loc) 1.58 kB
(function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o["niuke-im-next"]={},o.Vue))})(this,function(o,e){"use strict";const r=t=>(e.pushScopeId("data-v-124dbe6e"),t=t(),e.popScopeId(),t),d={class:"conversation-list"},l=r(()=>e.createElementVNode("img",{src:"https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.svg",class:"conversation-avatar",alt:""},null,-1)),_={class:"conversation-info"},m={class:"conversation-name"},p={class:"conversation-message"},f={class:"conversation-time"},u=e.defineComponent({__name:"index",setup(t){const n=[{lastMessage:{fromAccount:"",messageForShow:"",lastTime:""}}];return(i,a)=>(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,(c,v)=>e.createElementVNode("div",{class:"conversation-item",key:v},[l,e.createElementVNode("div",_,[e.createElementVNode("div",m,e.toDisplayString(c.lastMessage.fromAccount),1),e.createElementVNode("div",p,e.toDisplayString(c.lastMessage.messageForShow),1)]),e.createElementVNode("div",f,e.toDisplayString(c.lastMessage.lastTime),1)])),64))]))}}),y="",s=((t,n)=>{const i=t.__vccOpts||t;for(const[a,c]of n)i[a]=c;return i})(u,[["__scopeId","data-v-124dbe6e"]]);s.install=function(t){return t.component(s.name,s),t};const g=[s],h={install:function(t){g.forEach(n=>{t.use(n)})}};o.ConversationList=s,o.default=h,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});