优化页面

This commit is contained in:
pengxiaolong
2025-06-09 23:02:05 +08:00
parent c5042d08c3
commit 8c70c2c850
605 changed files with 661 additions and 945 deletions

View File

@@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),o=require("../../../utils/env.js"),t=require("../utils/sendMessage.js"),u=require("../config.js");Math||(i+l+a+s+r)();const l=()=>"./message-input-editor.js",a=()=>"./message-input-at/index.js",i=()=>"./message-input-audio.js",r=()=>"./message-input-quote/index.js",s=()=>"../../common/Icon.js",p=e.defineComponent({__name:"index",props:{placeholder:{default:"this is placeholder"},isMuted:{type:Boolean,default:!0},muteText:{default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},replyOrReference:{default:()=>({})},inputToolbarDisplayType:{default:"none"}},emits:["changeToolbarDisplayType"],setup(l,{expose:a,emit:i}){const r=i,s=l,p=e.ref(),d=e.ref(),f=e.ref(),c=e.ref(!1),v=e.ref("editor"),m=u.ChatConfig.getFeatureConfig(),g=e.ref(m.InputVoice),y=e.ref(m.InputEmoji||m.InputStickers),b=e.ref(m.InputImage||m.InputVideo||m.InputEvaluation||m.InputQuickReplies);function T(e){v.value=e,"audio"===e&&r("changeToolbarDisplayType","none")}function h(e){r("changeToolbarDisplayType",e)}e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:q}),e.Jt.watch(e.o.CHAT,{quoteMessage:E})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:q}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:E})})),e.watch((()=>s.inputToolbarDisplayType),(e=>{"none"!==e&&T("editor")}));const j=(e,n)=>{t.sendTyping(e,n)},A=e=>{var n;null==(n=null==d?void 0:d.value)||n.toggleAtList(e)},C=()=>{o.isH5&&r("changeToolbarDisplayType","none")},I=e=>{var n,o;(null==(n=null==p?void 0:p.value)?void 0:n.insertAt)&&(null==(o=null==p?void 0:p.value)||o.insertAt(e))},x=()=>{var e,n;(null==(e=null==p?void 0:p.value)?void 0:e.blur)&&(null==(n=null==p?void 0:p.value)||n.blur())};function q(n){var o;f.value=n,c.value=(null==(o=f.value)?void 0:o.type)===e.qt.TYPES.CONV_GROUP}function E(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)&&T("editor")}return a({insertEmoji:e=>{var n,o;(null==(n=null==p?void 0:p.value)?void 0:n.addEmoji)&&(null==(o=null==p?void 0:p.value)||o.addEmoji(e))},reEdit:e=>{var n,o;null==(n=null==p?void 0:p.value)||n.resetEditor(),null==(o=null==p?void 0:p.value)||o.setEditorContent(e)}}),(t,u)=>e.e({a:(e.unref(o.isWeChat)||e.unref(o.isApp))&&e.unref(g)},(e.unref(o.isWeChat)||e.unref(o.isApp))&&e.unref(g)?{b:"audio"===e.unref(v)?1:"",c:e.o$1(T),d:e.p({isEnableAudio:"audio"===e.unref(v)})}:{},{e:e.sr(p,"eab7c992-1",{k:"editor"}),f:"editor"===e.unref(v),g:e.o$1(j),h:e.o$1(A),i:e.o$1(C),j:e.p({placeholder:s.placeholder,isMuted:s.isMuted,muteText:s.muteText,enableInput:s.enableInput,enableAt:s.enableAt,enableTyping:s.enableTyping,isGroup:e.unref(c)}),k:s.enableAt},s.enableAt?{l:e.sr(d,"eab7c992-2",{k:"messageInputAtRef"}),m:e.o$1(I),n:e.o$1(x)}:{},{o:e.unref(y)},e.unref(y)?{p:e.o$1((e=>h("emojiPicker"))),q:e.p({file:e.unref(n.faceIcon),size:"23px",hotAreaSize:"3px"})}:{},{r:e.unref(b)},e.unref(b)?{s:e.o$1((e=>h("tools"))),t:e.p({file:e.unref(n.moreIcon),size:"23px",hotAreaSize:"3px"})}:{},{v:e.p({displayType:e.unref(v)}),w:e.n(!e.unref(o.isPC)&&"message-input-h5")})}}),d=e._export_sfc(p,[["__scopeId","data-v-eab7c992"]]);wx.createComponent(d);
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),o=require("../../../utils/env.js"),t=require("../utils/sendMessage.js"),u=require("../config.js");Math||(i+l+a+s+r)();const l=()=>"./message-input-editor.js",a=()=>"./message-input-at/index.js",i=()=>"./message-input-audio.js",r=()=>"./message-input-quote/index.js",s=()=>"../../common/Icon.js",p=e.defineComponent({__name:"index",props:{placeholder:{default:"this is placeholder"},isMuted:{type:Boolean,default:!0},muteText:{default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},replyOrReference:{default:()=>({})},inputToolbarDisplayType:{default:"none"}},emits:["changeToolbarDisplayType"],setup(l,{expose:a,emit:i}){const r=i,s=l,p=e.ref(),d=e.ref(),f=e.ref(),c=e.ref(!1),v=e.ref("editor"),m=u.ChatConfig.getFeatureConfig(),g=e.ref(m.InputVoice),y=e.ref(m.InputEmoji||m.InputStickers),T=e.ref(m.InputImage||m.InputVideo||m.InputEvaluation||m.InputQuickReplies);function h(e){v.value=e,"audio"===e&&r("changeToolbarDisplayType","none")}function b(e){r("changeToolbarDisplayType",e)}e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:q}),e.Jt.watch(e.o.CHAT,{quoteMessage:E})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:q}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:E})})),e.watch((()=>s.inputToolbarDisplayType),(e=>{"none"!==e&&h("editor")}));const j=(e,n)=>{t.sendTyping(e,n)},A=e=>{var n;null==(n=null==d?void 0:d.value)||n.toggleAtList(e)},C=()=>{o.isH5&&r("changeToolbarDisplayType","none")},I=e=>{var n,o;(null==(n=null==p?void 0:p.value)?void 0:n.insertAt)&&(null==(o=null==p?void 0:p.value)||o.insertAt(e))},x=()=>{var e,n;(null==(e=null==p?void 0:p.value)?void 0:e.blur)&&(null==(n=null==p?void 0:p.value)||n.blur())};function q(n){var o;f.value=n,c.value=(null==(o=f.value)?void 0:o.type)===e.qt.TYPES.CONV_GROUP}function E(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)&&h("editor")}return a({insertEmoji:e=>{var n,o;(null==(n=null==p?void 0:p.value)?void 0:n.addEmoji)&&(null==(o=null==p?void 0:p.value)||o.addEmoji(e))},reEdit:e=>{var n,o;null==(n=null==p?void 0:p.value)||n.resetEditor(),null==(o=null==p?void 0:p.value)||o.setEditorContent(e)}}),(t,u)=>e.e({a:(e.unref(o.isWeChat)||e.unref(o.isApp))&&e.unref(g)},(e.unref(o.isWeChat)||e.unref(o.isApp))&&e.unref(g)?{b:"audio"===e.unref(v)?1:"",c:e.o$1(h),d:e.p({isEnableAudio:"audio"===e.unref(v)})}:{},{e:e.sr(p,"de604828-1",{k:"editor"}),f:"editor"===e.unref(v),g:e.o$1(j),h:e.o$1(A),i:e.o$1(C),j:e.p({placeholder:s.placeholder,isMuted:s.isMuted,muteText:s.muteText,enableInput:s.enableInput,enableAt:s.enableAt,enableTyping:s.enableTyping,isGroup:e.unref(c)}),k:s.enableAt},s.enableAt?{l:e.sr(d,"de604828-2",{k:"messageInputAtRef"}),m:e.o$1(I),n:e.o$1(x)}:{},{o:e.unref(y)},e.unref(y)?{p:e.o$1((e=>b("emojiPicker"))),q:e.p({file:e.unref(n.faceIcon),size:"23px",hotAreaSize:"3px"})}:{},{r:e.unref(T)},e.unref(T)?{s:e.o$1((e=>b("tools"))),t:e.p({file:e.unref(n.moreIcon),size:"23px",hotAreaSize:"3px"})}:{},{v:e.p({displayType:e.unref(v)}),w:e.n(!e.unref(o.isPC)&&"message-input-h5")})}}),d=e._export_sfc(p,[["__scopeId","data-v-de604828"]]);wx.createComponent(d);

View File

@@ -1 +1 @@
<view class="{{['data-v-eab7c992', 'message-input', w]}}"><view class="audio-main-content-line data-v-eab7c992"><message-input-audio wx:if="{{a}}" class="{{['data-v-eab7c992', b && 'message-input-wx-audio-open']}}" bindchangeDisplayType="{{c}}" u-i="eab7c992-0" bind:__l="__l" u-p="{{d}}"/><message-input-editor wx:if="{{j}}" data-c-h="{{!f}}" u-r="editor" class="message-input-editor r data-v-eab7c992" bindonTyping="{{g}}" bindonAt="{{h}}" bindonFocus="{{i}}" u-i="eab7c992-1" bind:__l="__l" u-p="{{j}}"/><message-input-at wx:if="{{k}}" class="r data-v-eab7c992" u-r="messageInputAtRef" bindinsertAt="{{m}}" bindonAtListOpen="{{n}}" u-i="eab7c992-2" bind:__l="__l"/><icon wx:if="{{o}}" class="icon icon-face data-v-eab7c992" bindonClick="{{p}}" u-i="eab7c992-3" bind:__l="__l" u-p="{{q}}"/><icon wx:if="{{r}}" class="icon icon-more data-v-eab7c992" bindonClick="{{s}}" u-i="eab7c992-4" bind:__l="__l" u-p="{{t}}"/></view><view class="data-v-eab7c992"><message-quote wx:if="{{v}}" class="data-v-eab7c992" style="{{'min-width:' + 0}}" u-i="eab7c992-5" bind:__l="__l" u-p="{{v}}"/></view></view>
<view class="{{['data-v-de604828', 'message-input', w]}}"><view class="audio-main-content-line data-v-de604828"><message-input-audio wx:if="{{a}}" class="{{['data-v-de604828', b && 'message-input-wx-audio-open']}}" bindchangeDisplayType="{{c}}" u-i="de604828-0" bind:__l="__l" u-p="{{d}}"/><message-input-editor wx:if="{{j}}" data-c-h="{{!f}}" u-r="editor" class="message-input-editor r data-v-de604828" bindonTyping="{{g}}" bindonAt="{{h}}" bindonFocus="{{i}}" u-i="de604828-1" bind:__l="__l" u-p="{{j}}"/><message-input-at wx:if="{{k}}" class="r data-v-de604828" u-r="messageInputAtRef" bindinsertAt="{{m}}" bindonAtListOpen="{{n}}" u-i="de604828-2" bind:__l="__l"/><icon wx:if="{{o}}" class="icon icon-face data-v-de604828" bindonClick="{{p}}" u-i="de604828-3" bind:__l="__l" u-p="{{q}}"/><icon wx:if="{{r}}" class="icon icon-more data-v-de604828" bindonClick="{{s}}" u-i="de604828-4" bind:__l="__l" u-p="{{t}}"/></view><view class="data-v-de604828"><message-quote wx:if="{{v}}" class="data-v-de604828" style="{{'min-width:' + 0}}" u-i="de604828-5" bind:__l="__l" u-p="{{v}}"/></view></view>

View File

@@ -1 +1 @@
body.data-v-eab7c992,div.data-v-eab7c992,ul.data-v-eab7c992,ol.data-v-eab7c992,dt.data-v-eab7c992,dd.data-v-eab7c992,li.data-v-eab7c992,dl.data-v-eab7c992,h1.data-v-eab7c992,h2.data-v-eab7c992,h3.data-v-eab7c992,h4.data-v-eab7c992,p.data-v-eab7c992{margin:0;padding:0;font-style:normal}ol.data-v-eab7c992,ul.data-v-eab7c992,li.data-v-eab7c992{list-style:none}img.data-v-eab7c992{border:0;vertical-align:middle;pointer-events:none}body.data-v-eab7c992{color:#000;background:#fff}.clear.data-v-eab7c992{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-eab7c992{color:#000;text-decoration:none;cursor:pointer}a.data-v-eab7c992:hover{text-decoration:none}input.data-v-eab7c992,textarea.data-v-eab7c992{-webkit-user-select:auto;user-select:auto}input.data-v-eab7c992:focus,input.data-v-eab7c992:active,textarea.data-v-eab7c992:focus,textarea.data-v-eab7c992:active{outline:none}.chat-aside.data-v-eab7c992{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.data-v-eab7c992:not(not){display:flex;flex-direction:column;min-width:0;box-sizing:border-box}.message-input.data-v-eab7c992{position:relative;display:flex;flex-direction:column;border:none;overflow:hidden;background:#ebf0f6}.message-input-h5.data-v-eab7c992{padding:10px 10px 15px}.message-input-editor.data-v-eab7c992{flex:1;display:flex}.message-input .icon.data-v-eab7c992{margin-left:3px}.message-input-wx-audio-open.data-v-eab7c992{flex:1}.audio-main-content-line.data-v-eab7c992{display:flex;flex-direction:row;align-items:center}
body.data-v-de604828,div.data-v-de604828,ul.data-v-de604828,ol.data-v-de604828,dt.data-v-de604828,dd.data-v-de604828,li.data-v-de604828,dl.data-v-de604828,h1.data-v-de604828,h2.data-v-de604828,h3.data-v-de604828,h4.data-v-de604828,p.data-v-de604828{margin:0;padding:0;font-style:normal}ol.data-v-de604828,ul.data-v-de604828,li.data-v-de604828{list-style:none}img.data-v-de604828{border:0;vertical-align:middle;pointer-events:none}body.data-v-de604828{color:#000;background:#fff}.clear.data-v-de604828{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-de604828{color:#000;text-decoration:none;cursor:pointer}a.data-v-de604828:hover{text-decoration:none}input.data-v-de604828,textarea.data-v-de604828{-webkit-user-select:auto;user-select:auto}input.data-v-de604828:focus,input.data-v-de604828:active,textarea.data-v-de604828:focus,textarea.data-v-de604828:active{outline:none}.chat-aside.data-v-de604828{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.data-v-de604828:not(not){display:flex;flex-direction:column;min-width:0;box-sizing:border-box}.message-input.data-v-de604828{position:relative;display:flex;flex-direction:column;border:none;overflow:hidden;background:#ebf0f6}.message-input-h5.data-v-de604828{padding:10px 10px 15px}.message-input-editor.data-v-de604828{flex:1;display:flex}.message-input .icon.data-v-de604828{margin-left:3px}.message-input-wx-audio-open.data-v-de604828{flex:1}.audio-main-content-line.data-v-de604828{display:flex;flex-direction:row;align-items:center}

View File

@@ -1 +1 @@
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../utils/env.js");Math||l();const l=()=>"../../../common/BottomPopup/index.js",u=e.defineComponent({__name:"index",emits:["onAtListOpen","insertAt"],setup(l,{expose:u,emit:a}){const s=a,n=e.ref(),i=e.ref(),o=e.ref(!1),v=e.ref(),r=e.ref(),d=e.ref(),c=e.ref(!1),f=e.ref({left:0,top:0}),p=e.ref(0),m=e.ref(""),h={userID:e.qt.TYPES.MSG_AT_ALL,nick:"所有人",isAll:!0,avatar:"https://web.sdk.qcloud.com/im/assets/images/at.svg"};e.Jt.watch(e.o.CONV,{currentConversationID:t=>{var l,u;if(t!==m.value)if(m.value=t,v.value=[],r.value=[],d.value=[],c.value=!1,e.Jt.update(e.o.CUSTOM,"memberList",v.value),null==(l=null==m?void 0:m.value)?void 0:l.startsWith("GROUP")){c.value=!0;const t=null==(u=null==m?void 0:m.value)?void 0:u.substring(5);e.es.switchGroup(t)}else e.es.switchGroup("")}}),e.Jt.watch(e.o.GRP,{currentGroupMemberList:t=>{v.value=t,r.value=[h,...v.value],d.value=r.value,e.Jt.update(e.o.CUSTOM,"memberList",v.value)}});const g=e=>{c.value&&(o.value=e,o.value&&s("onAtListOpen"))};e.i.toggleAtList=g,e.i.handleAtListPosition=e=>{f.value=e},e.i.setCurrentSelectIndex=e=>{var t,l;p.value=e,null==(l=null==(t=i.value)?void 0:t[p.value])||l.scrollIntoView(!1)},e.i.setShowMemberList=e=>{d.value=e},u({toggleAtList:g}),e.watch((()=>[f.value,null==n?void 0:n.value]),(()=>{var e;!t.isH5&&(null==n?void 0:n.value)&&(null==(e=null==n?void 0:n.value)?void 0:e.style)&&(n.value.style.left=f.value.left+"px",n.value.style.top=f.value.top-n.value.clientHeight+"px")}));const C=()=>{o.value=!1,d.value=r.value,f.value={left:0,top:0}},I=e=>(null==e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",w=e=>(null==e?void 0:e.nick)?null==e?void 0:e.nick:null==e?void 0:e.userID;return(l,u)=>e.e({a:!e.unref(t.isPC)},e.unref(t.isPC)?{}:{b:e.t(e.unref(e.Wt).t("TUIChat.选择提醒的人"))},{c:e.f(e.unref(d),((l,u,a)=>({a:I(l),b:e.t(w(l)),c:u,d:e.n(u===e.unref(p)&&"selected"),e:e.o$1((l=>(l=>{var u;if(t.isPC&&e.i.selectItem)e.i.selectItem(l);else if(null==(u=null==d?void 0:d.value)?void 0:u.length){const e=null==d?void 0:d.value[l];s("insertAt",{id:null==e?void 0:e.userID,label:(null==e?void 0:e.nick)||(null==e?void 0:e.userID)})}C()})(u)),u)}))),d:e.n(e.unref(t.isPC)?"message-input-at":"message-input-at-h5"),e:e.o$1(C),f:e.p({show:e.unref(o)})})}}),a=e._export_sfc(u,[["__scopeId","data-v-1600ed76"]]);wx.createComponent(a);
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../utils/env.js");Math||l();const l=()=>"../../../common/BottomPopup/index.js",u=e.defineComponent({__name:"index",emits:["onAtListOpen","insertAt"],setup(l,{expose:u,emit:a}){const s=a,n=e.ref(),i=e.ref(),o=e.ref(!1),v=e.ref(),r=e.ref(),d=e.ref(),c=e.ref(!1),f=e.ref({left:0,top:0}),p=e.ref(0),m=e.ref(""),h={userID:e.qt.TYPES.MSG_AT_ALL,nick:"所有人",isAll:!0,avatar:"https://web.sdk.qcloud.com/im/assets/images/at.svg"};e.Jt.watch(e.o.CONV,{currentConversationID:t=>{var l,u;if(t!==m.value)if(m.value=t,v.value=[],r.value=[],d.value=[],c.value=!1,e.Jt.update(e.o.CUSTOM,"memberList",v.value),null==(l=null==m?void 0:m.value)?void 0:l.startsWith("GROUP")){c.value=!0;const t=null==(u=null==m?void 0:m.value)?void 0:u.substring(5);e.es.switchGroup(t)}else e.es.switchGroup("")}}),e.Jt.watch(e.o.GRP,{currentGroupMemberList:t=>{v.value=t,r.value=[h,...v.value],d.value=r.value,e.Jt.update(e.o.CUSTOM,"memberList",v.value)}});const g=e=>{c.value&&(o.value=e,o.value&&s("onAtListOpen"))};e.i.toggleAtList=g,e.i.handleAtListPosition=e=>{f.value=e},e.i.setCurrentSelectIndex=e=>{var t,l;p.value=e,null==(l=null==(t=i.value)?void 0:t[p.value])||l.scrollIntoView(!1)},e.i.setShowMemberList=e=>{d.value=e},u({toggleAtList:g}),e.watch((()=>[f.value,null==n?void 0:n.value]),(()=>{var e;!t.isH5&&(null==n?void 0:n.value)&&(null==(e=null==n?void 0:n.value)?void 0:e.style)&&(n.value.style.left=f.value.left+"px",n.value.style.top=f.value.top-n.value.clientHeight+"px")}));const C=()=>{o.value=!1,d.value=r.value,f.value={left:0,top:0}},I=e=>(null==e?void 0:e.avatar)||"https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png",b=e=>(null==e?void 0:e.nick)?null==e?void 0:e.nick:null==e?void 0:e.userID;return(l,u)=>e.e({a:!e.unref(t.isPC)},e.unref(t.isPC)?{}:{b:e.t(e.unref(e.Wt).t("TUIChat.选择提醒的人"))},{c:e.f(e.unref(d),((l,u,a)=>({a:I(l),b:e.t(b(l)),c:u,d:e.n(u===e.unref(p)&&"selected"),e:e.o$1((l=>(l=>{var u;if(t.isPC&&e.i.selectItem)e.i.selectItem(l);else if(null==(u=null==d?void 0:d.value)?void 0:u.length){const e=null==d?void 0:d.value[l];s("insertAt",{id:null==e?void 0:e.userID,label:(null==e?void 0:e.nick)||(null==e?void 0:e.userID)})}C()})(u)),u)}))),d:e.n(e.unref(t.isPC)?"message-input-at":"message-input-at-h5"),e:e.o$1(C),f:e.p({show:e.unref(o)})})}}),a=e._export_sfc(u,[["__scopeId","data-v-08dbad30"]]);wx.createComponent(a);

View File

@@ -1 +1 @@
<bottom-popup wx:if="{{f}}" class="data-v-1600ed76" u-s="{{['d']}}" bindonClose="{{e}}" u-i="1600ed76-0" bind:__l="__l" u-p="{{f}}"><view ref="MessageInputAt" class="{{['data-v-1600ed76', d]}}"><view ref="dialog" class="member-list data-v-1600ed76"><view wx:if="{{a}}" class="member-list-title data-v-1600ed76"><label class="title data-v-1600ed76">{{b}}</label></view><view class="member-list-box data-v-1600ed76"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" ref="memberListItems" class="{{['member-list-box-body', 'data-v-1600ed76', item.d]}}" bindtap="{{item.e}}"><image class="member-list-box-body-avatar data-v-1600ed76" src="{{item.a}}"></image><label class="member-list-box-body-name data-v-1600ed76">{{item.b}}</label></view></view></view></view></bottom-popup>
<bottom-popup wx:if="{{f}}" class="data-v-08dbad30" u-s="{{['d']}}" bindonClose="{{e}}" u-i="08dbad30-0" bind:__l="__l" u-p="{{f}}"><view ref="MessageInputAt" class="{{['data-v-08dbad30', d]}}"><view ref="dialog" class="member-list data-v-08dbad30"><view wx:if="{{a}}" class="member-list-title data-v-08dbad30"><label class="title data-v-08dbad30">{{b}}</label></view><view class="member-list-box data-v-08dbad30"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" ref="memberListItems" class="{{['member-list-box-body', 'data-v-08dbad30', item.d]}}" bindtap="{{item.e}}"><image class="member-list-box-body-avatar data-v-08dbad30" src="{{item.a}}"></image><label class="member-list-box-body-name data-v-08dbad30">{{item.b}}</label></view></view></view></view></bottom-popup>

View File

@@ -1 +1 @@
body.data-v-1600ed76,div.data-v-1600ed76,ul.data-v-1600ed76,ol.data-v-1600ed76,dt.data-v-1600ed76,dd.data-v-1600ed76,li.data-v-1600ed76,dl.data-v-1600ed76,h1.data-v-1600ed76,h2.data-v-1600ed76,h3.data-v-1600ed76,h4.data-v-1600ed76,p.data-v-1600ed76{margin:0;padding:0;font-style:normal}ol.data-v-1600ed76,ul.data-v-1600ed76,li.data-v-1600ed76{list-style:none}img.data-v-1600ed76{border:0;vertical-align:middle;pointer-events:none}body.data-v-1600ed76{color:#000;background:#fff}.clear.data-v-1600ed76{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-1600ed76{color:#000;text-decoration:none;cursor:pointer}a.data-v-1600ed76:hover{text-decoration:none}input.data-v-1600ed76,textarea.data-v-1600ed76{-webkit-user-select:auto;user-select:auto}input.data-v-1600ed76:focus,input.data-v-1600ed76:active,textarea.data-v-1600ed76:focus,textarea.data-v-1600ed76:active{outline:none}.chat-aside.data-v-1600ed76{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-at.data-v-1600ed76{position:fixed;max-width:15rem;max-height:10rem;overflow:hidden auto;background:#fff;box-shadow:0 .06rem .63rem rgba(2,16,43,.15);border-radius:.13rem}.member-list-box-header.data-v-1600ed76{height:2.5rem;padding-top:5px;cursor:pointer}.member-list-box-header.data-v-1600ed76:hover{background:rgba(0,110,255,.1)}.member-list-box span.data-v-1600ed76{font-family:PingFangSC-Regular;font-weight:400;font-size:12px;color:#000;letter-spacing:0;padding:5px}.member-list-box-body.data-v-1600ed76{height:30px;cursor:pointer;display:flex;align-items:center}.member-list-box-body .selected.data-v-1600ed76,.member-list-box-body.data-v-1600ed76:hover{background:rgba(0,110,255,.1)}.member-list-box-body-name.data-v-1600ed76{overflow:hidden;white-space:nowrap;word-wrap:break-word;word-break:break-all;text-overflow:ellipsis}.member-list-box-body-avatar.data-v-1600ed76{width:20px;height:20px;padding-left:10px}.member-list-box .selected.data-v-1600ed76{background:rgba(0,110,255,.1)}.message-input-at-h5 .member-list.data-v-1600ed76{height:auto;max-height:500px;width:100%;max-width:100%;background:#fff;border-radius:12px 12px 0 0;display:flex;flex-direction:column;overflow:hidden}.message-input-at-h5 .member-list-title.data-v-1600ed76{height:-webkit-fit-content;height:fit-content;width:calc(100% - 30px);text-align:center;vertical-align:middle;padding:15px}.message-input-at-h5 .member-list-title .title.data-v-1600ed76{vertical-align:middle;display:inline-block;font-size:16px}.message-input-at-h5 .member-list-title .close.data-v-1600ed76{vertical-align:middle;position:absolute;right:10px;display:inline-block}.message-input-at-h5 .member-list-box.data-v-1600ed76{flex:1;overflow-y:scroll}.message-input-at-h5 .member-list-box-body.data-v-1600ed76{padding:10px}.message-input-at-h5 .member-list-box-body img.data-v-1600ed76{width:26px;height:26px}.message-input-at-h5 .member-list-box-body span.data-v-1600ed76{font-size:14px}
body.data-v-08dbad30,div.data-v-08dbad30,ul.data-v-08dbad30,ol.data-v-08dbad30,dt.data-v-08dbad30,dd.data-v-08dbad30,li.data-v-08dbad30,dl.data-v-08dbad30,h1.data-v-08dbad30,h2.data-v-08dbad30,h3.data-v-08dbad30,h4.data-v-08dbad30,p.data-v-08dbad30{margin:0;padding:0;font-style:normal}ol.data-v-08dbad30,ul.data-v-08dbad30,li.data-v-08dbad30{list-style:none}img.data-v-08dbad30{border:0;vertical-align:middle;pointer-events:none}body.data-v-08dbad30{color:#000;background:#fff}.clear.data-v-08dbad30{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-08dbad30{color:#000;text-decoration:none;cursor:pointer}a.data-v-08dbad30:hover{text-decoration:none}input.data-v-08dbad30,textarea.data-v-08dbad30{-webkit-user-select:auto;user-select:auto}input.data-v-08dbad30:focus,input.data-v-08dbad30:active,textarea.data-v-08dbad30:focus,textarea.data-v-08dbad30:active{outline:none}.chat-aside.data-v-08dbad30{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-at.data-v-08dbad30{position:fixed;max-width:15rem;max-height:10rem;overflow:hidden auto;background:#fff;box-shadow:0 .06rem .63rem rgba(2,16,43,.15);border-radius:.13rem}.member-list-box-header.data-v-08dbad30{height:2.5rem;padding-top:5px;cursor:pointer}.member-list-box-header.data-v-08dbad30:hover{background:rgba(0,110,255,.1)}.member-list-box span.data-v-08dbad30{font-family:PingFangSC-Regular;font-weight:400;font-size:12px;color:#000;letter-spacing:0;padding:5px}.member-list-box-body.data-v-08dbad30{height:30px;cursor:pointer;display:flex;align-items:center}.member-list-box-body .selected.data-v-08dbad30,.member-list-box-body.data-v-08dbad30:hover{background:rgba(0,110,255,.1)}.member-list-box-body-name.data-v-08dbad30{overflow:hidden;white-space:nowrap;word-wrap:break-word;word-break:break-all;text-overflow:ellipsis}.member-list-box-body-avatar.data-v-08dbad30{width:20px;height:20px;padding-left:10px}.member-list-box .selected.data-v-08dbad30{background:rgba(0,110,255,.1)}.message-input-at-h5 .member-list.data-v-08dbad30{height:auto;max-height:500px;width:100%;max-width:100%;background:#fff;border-radius:12px 12px 0 0;display:flex;flex-direction:column;overflow:hidden}.message-input-at-h5 .member-list-title.data-v-08dbad30{height:-webkit-fit-content;height:fit-content;width:calc(100% - 30px);text-align:center;vertical-align:middle;padding:15px}.message-input-at-h5 .member-list-title .title.data-v-08dbad30{vertical-align:middle;display:inline-block;font-size:16px}.message-input-at-h5 .member-list-title .close.data-v-08dbad30{vertical-align:middle;position:absolute;right:10px;display:inline-block}.message-input-at-h5 .member-list-box.data-v-08dbad30{flex:1;overflow-y:scroll}.message-input-at-h5 .member-list-box-body.data-v-08dbad30{padding:10px}.message-input-at-h5 .member-list-box-body img.data-v-08dbad30{width:26px;height:26px}.message-input-at-h5 .member-list-box-body span.data-v-08dbad30{font-size:14px}

View File

@@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),o=require("../../common/Toast/index.js"),t=require("../../../utils/lodash.js"),u=require("../utils/utils.js"),i=require("../../common/Toast/type.js");Math||a();const a=()=>"../../common/Icon.js",r=e.defineComponent({__name:"message-input-audio",props:{isEnableAudio:{type:Boolean,default:!1}},emits:["changeDisplayType"],setup(a,{emit:r}){var l;const s=r,c=a;let d,f=0,v=!1,p=-1,m=!1,h=!1;const g=null==(l=e.i)?void 0:l.getRecorderManager(),T=e.ref(!1),y=e.ref("按住说话"),I=e.ref("正在录音"),j=e.ref(!1),C=e.ref(),E={duration:6e4,sampleRate:44100,numberOfChannels:1,encodeBitRate:192e3,format:"mp3"};function b(){s("changeDisplayType",c.isEnableAudio?"editor":"audio")}function A(e){C.value=e}function R(){q(),$()}function $(){T.value=!1,y.value="按住说话",I.value="正在录音"}function q(e){clearInterval(d),d=void 0,f=0,p=-1,v=!1,(null==e?void 0:e.hasError)||g.stop()}function S(){m&&(h=!0)}function _(){m=!0,g.start(E)}e.onMounted((()=>{g.onStart(z),g.onStop(O),g.onError(P),e.Jt.watch(e.o.CONV,{currentConversation:A})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:A})}));const M=t.throttle((function(e){if(T.value){const n=e.changedTouches[e.changedTouches.length-1].pageY;p<0&&(p=n);const o=p-n;o>150?(y.value="抬起取消",I.value="松开手指 取消发送",v=!0):o>50?(y.value="抬起发送",I.value="继续上滑可取消",v=!1):(y.value="抬起发送",I.value="正在录音",v=!1)}}),100);function x(){m=!1,g.stop()}function z(){if(!m)return h=!0,void g.stop();d=setInterval((()=>{f+=1}),1e3),y.value="抬起发送",T.value=!0}function O(n){var t,a,r,l,s,c;if(h)return h=!1,void R();if(v||!T.value)return void R();clearInterval(d);const p=n.tempFilePath,m=n.duration?n.duration:1e3*f,g=n.fileSize?n.fileSize:48*f/8*1024;if(m<1e3)o.Toast({message:"录音时间太短",type:i.TOAST_TYPE.NORMAL,duration:1500});else{const n={to:(null==(a=null==(t=null==C?void 0:C.value)?void 0:t.groupProfile)?void 0:a.groupID)||(null==(l=null==(r=null==C?void 0:C.value)?void 0:r.userProfile)?void 0:l.userID),conversationType:null==(s=null==C?void 0:C.value)?void 0:s.type,payload:{file:{duration:m,tempFilePath:p,fileSize:g}},needReadReceipt:u.isEnabledMessageReadReceiptGlobal()};null==(c=e.Qt)||c.sendAudioMessage(n)}R()}function P(){q({hasError:!0}),$()}return(o,t)=>e.e({a:e.o$1(b),b:e.p({file:e.unref(n.audioIcon$1),size:"23px",hotAreaSize:"3px"}),c:c.isEnableAudio},c.isEnableAudio?e.e({d:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(y)}`)),e:e.unref(T)},e.unref(T)?{f:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(I)}`))}:{},{g:e.o$1(S),h:e.o$1(_),i:e.o$1(((...n)=>e.unref(M)&&e.unref(M)(...n))),j:e.o$1(x)}):{},{k:e.unref(j)?1:""})}}),l=e._export_sfc(r,[["__scopeId","data-v-fc536242"]]);wx.createComponent(l);
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),o=require("../../common/Toast/index.js"),t=require("../../../utils/lodash.js"),u=require("../utils/utils.js"),i=require("../../common/Toast/type.js");Math||a();const a=()=>"../../common/Icon.js",r=e.defineComponent({__name:"message-input-audio",props:{isEnableAudio:{type:Boolean,default:!1}},emits:["changeDisplayType"],setup(a,{emit:r}){var l;const s=r,c=a;let d,f=0,v=!1,p=-1,m=!1,h=!1;const g=null==(l=e.i)?void 0:l.getRecorderManager(),T=e.ref(!1),y=e.ref("按住说话"),I=e.ref("正在录音"),j=e.ref(!1),C=e.ref(),E={duration:6e4,sampleRate:44100,numberOfChannels:1,encodeBitRate:192e3,format:"mp3"};function b(){s("changeDisplayType",c.isEnableAudio?"editor":"audio")}function A(e){C.value=e}function R(){q(),$()}function $(){T.value=!1,y.value="按住说话",I.value="正在录音"}function q(e){clearInterval(d),d=void 0,f=0,p=-1,v=!1,(null==e?void 0:e.hasError)||g.stop()}function S(){m&&(h=!0)}function _(){m=!0,g.start(E)}e.onMounted((()=>{g.onStart(z),g.onStop(O),g.onError(P),e.Jt.watch(e.o.CONV,{currentConversation:A})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:A})}));const M=t.throttle((function(e){if(T.value){const n=e.changedTouches[e.changedTouches.length-1].pageY;p<0&&(p=n);const o=p-n;o>150?(y.value="抬起取消",I.value="松开手指 取消发送",v=!0):o>50?(y.value="抬起发送",I.value="继续上滑可取消",v=!1):(y.value="抬起发送",I.value="正在录音",v=!1)}}),100);function x(){m=!1,g.stop()}function z(){if(!m)return h=!0,void g.stop();d=setInterval((()=>{f+=1}),1e3),y.value="抬起发送",T.value=!0}function O(n){var t,a,r,l,s,c;if(h)return h=!1,void R();if(v||!T.value)return void R();clearInterval(d);const p=n.tempFilePath,m=n.duration?n.duration:1e3*f,g=n.fileSize?n.fileSize:48*f/8*1024;if(m<1e3)o.Toast({message:"录音时间太短",type:i.TOAST_TYPE.NORMAL,duration:1500});else{const n={to:(null==(a=null==(t=null==C?void 0:C.value)?void 0:t.groupProfile)?void 0:a.groupID)||(null==(l=null==(r=null==C?void 0:C.value)?void 0:r.userProfile)?void 0:l.userID),conversationType:null==(s=null==C?void 0:C.value)?void 0:s.type,payload:{file:{duration:m,tempFilePath:p,fileSize:g}},needReadReceipt:u.isEnabledMessageReadReceiptGlobal()};null==(c=e.Qt)||c.sendAudioMessage(n)}R()}function P(){q({hasError:!0}),$()}return(o,t)=>e.e({a:e.o$1(b),b:e.p({file:e.unref(n.audioIcon$1),size:"23px",hotAreaSize:"3px"}),c:c.isEnableAudio},c.isEnableAudio?e.e({d:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(y)}`)),e:e.unref(T)},e.unref(T)?{f:e.t(e.unref(e.Wt).t(`TUIChat.${e.unref(I)}`))}:{},{g:e.o$1(S),h:e.o$1(_),i:e.o$1(((...n)=>e.unref(M)&&e.unref(M)(...n))),j:e.o$1(x)}):{},{k:e.unref(j)?1:""})}}),l=e._export_sfc(r,[["__scopeId","data-v-32f4d289"]]);wx.createComponent(l);

View File

@@ -1 +1 @@
<view class="{{['data-v-fc536242', 'message-input-audio', k && 'message-input-audio-open']}}"><icon wx:if="{{b}}" class="audio-message-icon data-v-fc536242" bindonClick="{{a}}" u-i="fc536242-0" bind:__l="__l" u-p="{{b}}"/><view wx:if="{{c}}" class="audio-input-touch-bar data-v-fc536242" bindtouchstart="{{g}}" bindlongpress="{{h}}" bindtouchmove="{{i}}" bindtouchend="{{j}}"><label class="data-v-fc536242">{{d}}</label><view wx:if="{{e}}" class="record-modal data-v-fc536242"><view class="red-mask data-v-fc536242"/><view class="float-element moving-slider data-v-fc536242"/><view class="float-element modal-title data-v-fc536242">{{f}}</view></view></view></view>
<view class="{{['data-v-32f4d289', 'message-input-audio', k && 'message-input-audio-open']}}"><icon wx:if="{{b}}" class="audio-message-icon data-v-32f4d289" bindonClick="{{a}}" u-i="32f4d289-0" bind:__l="__l" u-p="{{b}}"/><view wx:if="{{c}}" class="audio-input-touch-bar data-v-32f4d289" bindtouchstart="{{g}}" bindlongpress="{{h}}" bindtouchmove="{{i}}" bindtouchend="{{j}}"><label class="data-v-32f4d289">{{d}}</label><view wx:if="{{e}}" class="record-modal data-v-32f4d289"><view class="red-mask data-v-32f4d289"/><view class="float-element moving-slider data-v-32f4d289"/><view class="float-element modal-title data-v-32f4d289">{{f}}</view></view></view></view>

View File

@@ -1 +1 @@
body.data-v-fc536242,div.data-v-fc536242,ul.data-v-fc536242,ol.data-v-fc536242,dt.data-v-fc536242,dd.data-v-fc536242,li.data-v-fc536242,dl.data-v-fc536242,h1.data-v-fc536242,h2.data-v-fc536242,h3.data-v-fc536242,h4.data-v-fc536242,p.data-v-fc536242{margin:0;padding:0;font-style:normal}ol.data-v-fc536242,ul.data-v-fc536242,li.data-v-fc536242{list-style:none}img.data-v-fc536242{border:0;vertical-align:middle;pointer-events:none}body.data-v-fc536242{color:#000;background:#fff}.clear.data-v-fc536242{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-fc536242{color:#000;text-decoration:none;cursor:pointer}a.data-v-fc536242:hover{text-decoration:none}input.data-v-fc536242,textarea.data-v-fc536242{-webkit-user-select:auto;user-select:auto}input.data-v-fc536242:focus,input.data-v-fc536242:active,textarea.data-v-fc536242:focus,textarea.data-v-fc536242:active{outline:none}.chat-aside.data-v-fc536242{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-audio.data-v-fc536242{display:flex;flex-direction:row;align-items:center}.message-input-audio .audio-message-icon.data-v-fc536242{margin-right:3px}.message-input-audio .audio-input-touch-bar.data-v-fc536242{height:39px;flex:1;border-radius:10px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#fff}.message-input-audio .audio-input-touch-bar .record-modal.data-v-fc536242{height:300rpx;width:60vw;background-color:rgba(0,0,0,.8);position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9999;border-radius:24rpx;display:flex;flex-direction:column;overflow:hidden}.message-input-audio .audio-input-touch-bar .record-modal .red-mask.data-v-fc536242{position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(255,62,72,.5);opacity:0;transition:opacity 10ms linear;z-index:1}.message-input-audio .audio-input-touch-bar .record-modal .moving-slider.data-v-fc536242{margin:10vw;width:40rpx;height:16rpx;border-radius:4rpx;background-color:#006fff;animation:loading-fc536242 1s ease-in-out infinite alternate;z-index:2}.message-input-audio .audio-input-touch-bar .record-modal .float-element.data-v-fc536242{position:relative;z-index:2}@keyframes loading-fc536242{0%{transform:translate(0)}to{transform:translate(30vw);background-color:#f5634a;width:40px}}.message-input-audio .audio-input-touch-bar .modal-title.data-v-fc536242{text-align:center;color:#fff}.message-input-audio-open.data-v-fc536242{flex:1}
body.data-v-32f4d289,div.data-v-32f4d289,ul.data-v-32f4d289,ol.data-v-32f4d289,dt.data-v-32f4d289,dd.data-v-32f4d289,li.data-v-32f4d289,dl.data-v-32f4d289,h1.data-v-32f4d289,h2.data-v-32f4d289,h3.data-v-32f4d289,h4.data-v-32f4d289,p.data-v-32f4d289{margin:0;padding:0;font-style:normal}ol.data-v-32f4d289,ul.data-v-32f4d289,li.data-v-32f4d289{list-style:none}img.data-v-32f4d289{border:0;vertical-align:middle;pointer-events:none}body.data-v-32f4d289{color:#000;background:#fff}.clear.data-v-32f4d289{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-32f4d289{color:#000;text-decoration:none;cursor:pointer}a.data-v-32f4d289:hover{text-decoration:none}input.data-v-32f4d289,textarea.data-v-32f4d289{-webkit-user-select:auto;user-select:auto}input.data-v-32f4d289:focus,input.data-v-32f4d289:active,textarea.data-v-32f4d289:focus,textarea.data-v-32f4d289:active{outline:none}.chat-aside.data-v-32f4d289{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-audio.data-v-32f4d289{display:flex;flex-direction:row;align-items:center}.message-input-audio .audio-message-icon.data-v-32f4d289{margin-right:3px}.message-input-audio .audio-input-touch-bar.data-v-32f4d289{height:39px;flex:1;border-radius:10px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#fff}.message-input-audio .audio-input-touch-bar .record-modal.data-v-32f4d289{height:300rpx;width:60vw;background-color:rgba(0,0,0,.8);position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9999;border-radius:24rpx;display:flex;flex-direction:column;overflow:hidden}.message-input-audio .audio-input-touch-bar .record-modal .red-mask.data-v-32f4d289{position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(255,62,72,.5);opacity:0;transition:opacity 10ms linear;z-index:1}.message-input-audio .audio-input-touch-bar .record-modal .moving-slider.data-v-32f4d289{margin:10vw;width:40rpx;height:16rpx;border-radius:4rpx;background-color:#006fff;animation:loading-32f4d289 1s ease-in-out infinite alternate;z-index:2}.message-input-audio .audio-input-touch-bar .record-modal .float-element.data-v-32f4d289{position:relative;z-index:2}@keyframes loading-32f4d289{0%{transform:translate(0)}to{transform:translate(30vw);background-color:#f5634a;width:40px}}.message-input-audio .audio-input-touch-bar .modal-title.data-v-32f4d289{text-align:center;color:#fff}.message-input-audio-open.data-v-32f4d289{flex:1}

View File

@@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../utils/conversationDraft.js"),l=require("../emoji-config/index.js"),n=require("../../../utils/env.js"),a=require("../utils/sendMessage.js"),o=e.defineComponent({__name:"message-input-editor",props:{placeholder:{type:String,default:"this is placeholder"},replayOrReferenceMessage:{type:Object,default:()=>({}),required:!1},isMuted:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},isGroup:{type:Boolean,default:!1}},emits:["onTyping","onFocus","onAt"],setup(o,{expose:u,emit:i}){const r=o,s=i,d=e.ref("");e.ref();const v=e.ref(!0),c=e.ref(!0),f=new Map,p=e.ref(),m=e.ref(""),g=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:T}),e.Jt.watch(e.o.CHAT,{quoteMessage:b}),e.index.$on("insert-emoji",(e=>{var t;d.value+=null==(t=null==e?void 0:e.emoji)?void 0:t.name})),e.index.$on("send-message-in-emoji-picker",(()=>{h()}))})),e.onUnmounted((()=>{m.value&&t.DraftManager.setStore(m.value,d.value,d.value,g.value),e.index.$off("insertEmoji"),e.index.$off("send-message-in-emoji-picker"),e.Jt.unwatch(e.o.CONV,{currentConversation:T}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:b}),v.value=!0,p.value=null,m.value="",g.value=null,j()}));const h=()=>{const e=y();j(),a.sendMessages(e,p.value)},y=()=>{let e=d.value;e=l.transformTextWithEmojiNamesToKeys(e);const t=[];null==f||f.forEach(((l,n)=>{(null==e?void 0:e.includes("@"+l))&&t.push(n)}));const n={text:e};return(null==t?void 0:t.length)&&(n.atUserList=t),[{type:"text",payload:n}]},j=()=>{d.value="",c.value=!0,null==f||f.clear()},x=e=>{d.value=e},M=()=>{v.value=!0},C=e=>{var t;v.value=!1,s("onFocus",null==(t=null==e?void 0:e.detail)?void 0:t.height)},q=t=>{var l,n;const a=null==(l=null==t?void 0:t.detail)?void 0:l.value;(()=>{var e;c.value=!(null==(e=null==d?void 0:d.value)?void 0:e.length)})(),r.isGroup&&(a.endsWith("@")||a.endsWith("@\n"))&&(null==(n=e.i)||n.hideKeyboard(),s("onAt",!0))};function T(e){const l=m.value;p.value=e,m.value=null==e?void 0:e.conversationID,l!==m.value&&(l&&t.DraftManager.setStore(l,d.value,d.value,g.value),j(),m.value&&t.DraftManager.getStore(m.value,x))}function b(e){g.value=e}return e.watch((()=>[c.value,v.value]),((e,t)=>{e!==t&&s("onTyping",c.value,v.value)}),{immediate:!0,deep:!0}),u({insertAt:e=>{(null==f?void 0:f.has(null==e?void 0:e.id))||null==f||f.set(null==e?void 0:e.id,null==e?void 0:e.label),d.value+=null==e?void 0:e.label},resetEditor:j,setEditorContent:x,getEditorContent:y}),(t,l)=>e.e({a:r.isMuted},r.isMuted?{b:e.t(r.muteText)}:{},{c:r.placeholder,d:e.o$1(h),e:e.o$1([t=>e.isRef(d)?d.value=t.detail.value:null,q]),f:e.o$1(M),g:e.o$1(C),h:e.unref(d),i:e.unref(n.isPC)?"":1})}}),u=e._export_sfc(o,[["__scopeId","data-v-5853d315"]]);wx.createComponent(u);
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=require("../utils/conversationDraft.js"),l=require("../emoji-config/index.js"),n=require("../../../utils/env.js"),a=require("../utils/sendMessage.js"),o=e.defineComponent({__name:"message-input-editor",props:{placeholder:{type:String,default:"this is placeholder"},replayOrReferenceMessage:{type:Object,default:()=>({}),required:!1},isMuted:{type:Boolean,default:!0},muteText:{type:String,default:""},enableInput:{type:Boolean,default:!0},enableAt:{type:Boolean,default:!0},enableTyping:{type:Boolean,default:!0},isGroup:{type:Boolean,default:!1}},emits:["onTyping","onFocus","onAt"],setup(o,{expose:u,emit:i}){const r=o,s=i,d=e.ref("");e.ref();const v=e.ref(!0),c=e.ref(!0),f=new Map,p=e.ref(),m=e.ref(""),g=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:T}),e.Jt.watch(e.o.CHAT,{quoteMessage:b}),e.index.$on("insert-emoji",(e=>{var t;d.value+=null==(t=null==e?void 0:e.emoji)?void 0:t.name})),e.index.$on("send-message-in-emoji-picker",(()=>{h()}))})),e.onUnmounted((()=>{m.value&&t.DraftManager.setStore(m.value,d.value,d.value,g.value),e.index.$off("insertEmoji"),e.index.$off("send-message-in-emoji-picker"),e.Jt.unwatch(e.o.CONV,{currentConversation:T}),e.Jt.unwatch(e.o.CHAT,{quoteMessage:b}),v.value=!0,p.value=null,m.value="",g.value=null,j()}));const h=()=>{const e=y();j(),a.sendMessages(e,p.value)},y=()=>{let e=d.value;e=l.transformTextWithEmojiNamesToKeys(e);const t=[];null==f||f.forEach(((l,n)=>{(null==e?void 0:e.includes("@"+l))&&t.push(n)}));const n={text:e};return(null==t?void 0:t.length)&&(n.atUserList=t),[{type:"text",payload:n}]},j=()=>{d.value="",c.value=!0,null==f||f.clear()},x=e=>{d.value=e},M=()=>{v.value=!0},C=e=>{var t;v.value=!1,s("onFocus",null==(t=null==e?void 0:e.detail)?void 0:t.height)},q=t=>{var l,n;const a=null==(l=null==t?void 0:t.detail)?void 0:l.value;(()=>{var e;c.value=!(null==(e=null==d?void 0:d.value)?void 0:e.length)})(),r.isGroup&&(a.endsWith("@")||a.endsWith("@\n"))&&(null==(n=e.i)||n.hideKeyboard(),s("onAt",!0))};function T(e){const l=m.value;p.value=e,m.value=null==e?void 0:e.conversationID,l!==m.value&&(l&&t.DraftManager.setStore(l,d.value,d.value,g.value),j(),m.value&&t.DraftManager.getStore(m.value,x))}function b(e){g.value=e}return e.watch((()=>[c.value,v.value]),((e,t)=>{e!==t&&s("onTyping",c.value,v.value)}),{immediate:!0,deep:!0}),u({insertAt:e=>{(null==f?void 0:f.has(null==e?void 0:e.id))||null==f||f.set(null==e?void 0:e.id,null==e?void 0:e.label),d.value+=null==e?void 0:e.label},resetEditor:j,setEditorContent:x,getEditorContent:y}),(t,l)=>e.e({a:r.isMuted},r.isMuted?{b:e.t(r.muteText)}:{},{c:r.placeholder,d:e.o$1(h),e:e.o$1([t=>e.isRef(d)?d.value=t.detail.value:null,q]),f:e.o$1(M),g:e.o$1(C),h:e.unref(d),i:e.unref(n.isPC)?"":1})}}),u=e._export_sfc(o,[["__scopeId","data-v-4a88add0"]]);wx.createComponent(u);

View File

@@ -1 +1 @@
<view class="{{['data-v-5853d315', 'message-input-container', i && 'message-input-container-h5']}}"><view wx:if="{{a}}" class="message-input-mute data-v-5853d315">{{b}}</view><input id="editor" ref="inputRef" adjust-position="{{true}}" cursor-spacing="20" confirm-type="send" confirm-hold="{{true}}" maxlength="140" type="text" placeholder-class="input-placeholder" class="message-input-area data-v-5853d315" placeholder="{{c}}" auto-blur bindconfirm="{{d}}" bindinput="{{e}}" bindblur="{{f}}" bindfocus="{{g}}" value="{{h}}"></input></view>
<view class="{{['data-v-4a88add0', 'message-input-container', i && 'message-input-container-h5']}}"><view wx:if="{{a}}" class="message-input-mute data-v-4a88add0">{{b}}</view><input id="editor" ref="inputRef" adjust-position="{{true}}" cursor-spacing="20" confirm-type="send" confirm-hold="{{true}}" maxlength="140" type="text" placeholder-class="input-placeholder" class="message-input-area data-v-4a88add0" placeholder="{{c}}" auto-blur bindconfirm="{{d}}" bindinput="{{e}}" bindblur="{{f}}" bindfocus="{{g}}" value="{{h}}"></input></view>

View File

@@ -1 +1 @@
body.data-v-5853d315,div.data-v-5853d315,ul.data-v-5853d315,ol.data-v-5853d315,dt.data-v-5853d315,dd.data-v-5853d315,li.data-v-5853d315,dl.data-v-5853d315,h1.data-v-5853d315,h2.data-v-5853d315,h3.data-v-5853d315,h4.data-v-5853d315,p.data-v-5853d315{margin:0;padding:0;font-style:normal}ol.data-v-5853d315,ul.data-v-5853d315,li.data-v-5853d315{list-style:none}img.data-v-5853d315{border:0;vertical-align:middle;pointer-events:none}body.data-v-5853d315{color:#000;background:#fff}.clear.data-v-5853d315{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-5853d315{color:#000;text-decoration:none;cursor:pointer}a.data-v-5853d315:hover{text-decoration:none}input.data-v-5853d315,textarea.data-v-5853d315{-webkit-user-select:auto;user-select:auto}input.data-v-5853d315:focus,input.data-v-5853d315:active,textarea.data-v-5853d315:focus,textarea.data-v-5853d315:active{outline:none}.chat-aside.data-v-5853d315{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-container.data-v-5853d315{display:flex;flex-direction:column;flex:1;padding:3px 10px 10px;overflow:hidden}.message-input-container-h5.data-v-5853d315{flex:1;height:auto;background:#fff;border-radius:10px;padding:7px 0 7px 10px;font-size:16px!important;max-height:86px}.message-input-container .message-input-mute.data-v-5853d315{flex:1;display:flex;color:#999;font-size:14px;justify-content:center;align-items:center}.message-input-container .message-input-area.data-v-5853d315{flex:1;overflow-y:scroll;min-height:25px}
body.data-v-4a88add0,div.data-v-4a88add0,ul.data-v-4a88add0,ol.data-v-4a88add0,dt.data-v-4a88add0,dd.data-v-4a88add0,li.data-v-4a88add0,dl.data-v-4a88add0,h1.data-v-4a88add0,h2.data-v-4a88add0,h3.data-v-4a88add0,h4.data-v-4a88add0,p.data-v-4a88add0{margin:0;padding:0;font-style:normal}ol.data-v-4a88add0,ul.data-v-4a88add0,li.data-v-4a88add0{list-style:none}img.data-v-4a88add0{border:0;vertical-align:middle;pointer-events:none}body.data-v-4a88add0{color:#000;background:#fff}.clear.data-v-4a88add0{clear:both;height:1px;width:100%;overflow:hidden;margin-top:-1px}a.data-v-4a88add0{color:#000;text-decoration:none;cursor:pointer}a.data-v-4a88add0:hover{text-decoration:none}input.data-v-4a88add0,textarea.data-v-4a88add0{-webkit-user-select:auto;user-select:auto}input.data-v-4a88add0:focus,input.data-v-4a88add0:active,textarea.data-v-4a88add0:focus,textarea.data-v-4a88add0:active{outline:none}.chat-aside.data-v-4a88add0{position:absolute;top:50px;right:0;box-sizing:border-box;width:360px!important;border-radius:8px 0 0 8px;z-index:9999;max-height:calc(100% - 50px)}.message-input-container.data-v-4a88add0{display:flex;flex-direction:column;flex:1;padding:3px 10px 10px;overflow:hidden}.message-input-container-h5.data-v-4a88add0{flex:1;height:auto;background:#fff;border-radius:10px;padding:7px 0 7px 10px;font-size:16px!important;max-height:86px}.message-input-container .message-input-mute.data-v-4a88add0{flex:1;display:flex;color:#999;font-size:14px;justify-content:center;align-items:center}.message-input-container .message-input-area.data-v-4a88add0{flex:1;overflow-y:scroll;min-height:25px}

View File

@@ -1 +1 @@
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../../common/assets.js"),a=require("../../../../utils/env.js"),o=require("../../emoji-config/index.js");Math||s();const s=()=>"../../../common/Icon.js",n=e.defineComponent({__name:"index",props:{displayType:{default:"editor"}},setup(s){const n=s,r=e.qt.TYPES,u=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{quoteMessage:d})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{quoteMessage:d})}));const i=e.computed((()=>{var t,a;let s;switch(null==(t=u.value)?void 0:t.type){case r.MSG_TEXT:s=o.transformTextWithKeysToEmojiNames(null==(a=u.value.payload)?void 0:a.text);break;case r.MSG_IMAGE:s=e.Wt.t("TUIChat.图片");break;case r.MSG_AUDIO:s=e.Wt.t("TUIChat.语音");break;case r.MSG_VIDEO:s=e.Wt.t("TUIChat.视频");break;case r.MSG_FILE:s=e.Wt.t("TUIChat.文件");break;case r.MSG_CUSTOM:s=e.Wt.t("TUIChat.自定义");break;case r.MSG_FACE:s=e.Wt.t("TUIChat.表情");break;case r.MSG_MERGER:s=e.Wt.t("TUIChat.聊天记录");break;default:s=e.Wt.t("TUIChat.消息")}return s}));function c(){e.Jt.update(e.o.CHAT,"quoteMessage",{message:void 0,type:"quote"})}function d(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)?u.value=e.message:u.value=void 0}return(o,s)=>e.e({a:Boolean(e.unref(u))&&"audio"!==n.displayType},Boolean(e.unref(u))&&"audio"!==n.displayType?{b:e.t(e.unref(u).nick||e.unref(u).from),c:e.t(e.unref(i)),d:e.o$1(c),e:e.p({file:e.unref(t.closeIcon$2),width:"11px",height:"11px"}),f:e.unref(a.isUniFrameWork)?1:"",g:e.unref(a.isH5)?1:""}:{})}}),r=e._export_sfc(n,[["__scopeId","data-v-ca3e7582"]]);wx.createComponent(r);
"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../../common/assets.js"),a=require("../../../../utils/env.js"),o=require("../../emoji-config/index.js");Math||s();const s=()=>"../../../common/Icon.js",n=e.defineComponent({__name:"index",props:{displayType:{default:"editor"}},setup(s){const n=s,r=e.qt.TYPES,u=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{quoteMessage:d})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{quoteMessage:d})}));const i=e.computed((()=>{var t,a;let s;switch(null==(t=u.value)?void 0:t.type){case r.MSG_TEXT:s=o.transformTextWithKeysToEmojiNames(null==(a=u.value.payload)?void 0:a.text);break;case r.MSG_IMAGE:s=e.Wt.t("TUIChat.图片");break;case r.MSG_AUDIO:s=e.Wt.t("TUIChat.语音");break;case r.MSG_VIDEO:s=e.Wt.t("TUIChat.视频");break;case r.MSG_FILE:s=e.Wt.t("TUIChat.文件");break;case r.MSG_CUSTOM:s=e.Wt.t("TUIChat.自定义");break;case r.MSG_FACE:s=e.Wt.t("TUIChat.表情");break;case r.MSG_MERGER:s=e.Wt.t("TUIChat.聊天记录");break;default:s=e.Wt.t("TUIChat.消息")}return s}));function c(){e.Jt.update(e.o.CHAT,"quoteMessage",{message:void 0,type:"quote"})}function d(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)?u.value=e.message:u.value=void 0}return(o,s)=>e.e({a:Boolean(e.unref(u))&&"audio"!==n.displayType},Boolean(e.unref(u))&&"audio"!==n.displayType?{b:e.t(e.unref(u).nick||e.unref(u).from),c:e.t(e.unref(i)),d:e.o$1(c),e:e.p({file:e.unref(t.closeIcon$2),width:"11px",height:"11px"}),f:e.unref(a.isUniFrameWork)?1:"",g:e.unref(a.isH5)?1:""}:{})}}),r=e._export_sfc(n,[["__scopeId","data-v-5f71863a"]]);wx.createComponent(r);

View File

@@ -1 +1 @@
<view wx:if="{{a}}" class="{{['data-v-ca3e7582', 'input-quote-container', f && 'input-quote-container-uni', g && 'input-quote-container-h5']}}"><view class="input-quote-content data-v-ca3e7582"><view class="max-one-line data-v-ca3e7582">{{b}}: {{c}}</view><icon wx:if="{{e}}" class="input-quote-close-icon data-v-ca3e7582" bindonClick="{{d}}" u-i="ca3e7582-0" bind:__l="__l" u-p="{{e}}"/></view></view>
<view wx:if="{{a}}" class="{{['data-v-5f71863a', 'input-quote-container', f && 'input-quote-container-uni', g && 'input-quote-container-h5']}}"><view class="input-quote-content data-v-5f71863a"><view class="max-one-line data-v-5f71863a">{{b}}: {{c}}</view><icon wx:if="{{e}}" class="input-quote-close-icon data-v-5f71863a" bindonClick="{{d}}" u-i="5f71863a-0" bind:__l="__l" u-p="{{e}}"/></view></view>

View File

@@ -1 +1 @@
.input-quote-container-h5.data-v-ca3e7582,.input-quote-container-uni.data-v-ca3e7582,.input-quote-container.data-v-ca3e7582{margin:5px 100px 5px 8px;display:flex;flex:0 1 auto}.input-quote-container-h5 .input-quote-content.data-v-ca3e7582,.input-quote-container-uni .input-quote-content.data-v-ca3e7582,.input-quote-container .input-quote-content.data-v-ca3e7582{display:flex;flex:0 1 auto;background-color:#fafafa;border-radius:8px;padding:12px;font-size:12px;align-items:center;line-height:16px;max-width:100%;box-sizing:border-box;min-width:0}.input-quote-container-h5 .input-quote-content .max-one-line.data-v-ca3e7582,.input-quote-container-uni .input-quote-content .max-one-line.data-v-ca3e7582,.input-quote-container .input-quote-content .max-one-line.data-v-ca3e7582{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-quote-container-h5 .input-quote-close-icon.data-v-ca3e7582,.input-quote-container-uni .input-quote-close-icon.data-v-ca3e7582,.input-quote-container .input-quote-close-icon.data-v-ca3e7582{margin-left:5px;padding:5px}.input-quote-container-uni.data-v-ca3e7582{margin:5px 60px 0 30px}.input-quote-container-h5.data-v-ca3e7582{margin:5px 0 0}
.input-quote-container-h5.data-v-5f71863a,.input-quote-container-uni.data-v-5f71863a,.input-quote-container.data-v-5f71863a{margin:5px 100px 5px 8px;display:flex;flex:0 1 auto}.input-quote-container-h5 .input-quote-content.data-v-5f71863a,.input-quote-container-uni .input-quote-content.data-v-5f71863a,.input-quote-container .input-quote-content.data-v-5f71863a{display:flex;flex:0 1 auto;background-color:#fafafa;border-radius:8px;padding:12px;font-size:12px;align-items:center;line-height:16px;max-width:100%;box-sizing:border-box;min-width:0}.input-quote-container-h5 .input-quote-content .max-one-line.data-v-5f71863a,.input-quote-container-uni .input-quote-content .max-one-line.data-v-5f71863a,.input-quote-container .input-quote-content .max-one-line.data-v-5f71863a{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-quote-container-h5 .input-quote-close-icon.data-v-5f71863a,.input-quote-container-uni .input-quote-close-icon.data-v-5f71863a,.input-quote-container .input-quote-close-icon.data-v-5f71863a{margin-left:5px;padding:5px}.input-quote-container-uni.data-v-5f71863a{margin:5px 60px 0 30px}.input-quote-container-h5.data-v-5f71863a{margin:5px 0 0}