Files
tk-mini-program/unpackage/dist/build/mp-weixin/TUIKit/components/TUIChat/chat-header/index.js
pengxiaolong c5042d08c3 优化页面
2025-06-09 19:18:38 +08:00

2 lines
858 B
JavaScript

"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=e.defineComponent({__name:"index",props:["isGroup"],emits:["openGroupManagement"],setup(t,{emit:n}){const o=e.ref(),a=e.ref(!1),u=t=>{var n;null==(n=e.i)||n.setNavigationBarTitle({title:t||"云通信 IM"})};function r(e){var t;o.value=e,a.value||u(null==(t=null==o?void 0:o.value)?void 0:t.getShowName())}function i(t){var n;a.value=t,a.value?u(e.Wt.t("TUIChat.对方正在输入")):u(null==(n=o.value)?void 0:n.getShowName())}return e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:r}),e.Jt.watch(e.o.CHAT,{typingStatus:i})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:r}),e.Jt.unwatch(e.o.CHAT,{typingStatus:i})})),e.onLoad((()=>{var e;u(null==(e=o.value)?void 0:e.getShowName())})),(e,t)=>({})}});wx.createComponent(t);