优化页面
This commit is contained in:
@@ -0,0 +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);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"icon": "../../../common/Icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +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>
|
||||
@@ -0,0 +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}
|
||||
Reference in New Issue
Block a user