UNPKG

quick-admin-vue3-core

Version:

以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板

58 lines (57 loc) 2.11 kB
import { defineComponent as m, resolveComponent as d, createElementBlock as o, openBlock as a, normalizeClass as i, createBlock as s, Fragment as t, createVNode as p, createElementVNode as l, createTextVNode as g, toDisplayString as n } from "vue"; import f from "./CustomMsg-B2cbmggG.js"; import u from "./AudioMsg-BCaTLzeb.js"; import { _ as y } from "./VideoMsg.vue_vue_type_script_setup_true_lang-BIKuFDi0.js"; import T from "./ImgMsg-BQYM0H_M.js"; import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.js"; const I = { class: "msg-box" }, k = { key: 4, class: "err-tips" }, M = /* @__PURE__ */ m({ __name: "Index", props: { data: {}, userInfo: {}, position: {} }, setup(v) { return (e, E) => { const r = d("BaseAvatar"); return a(), o("div", { class: i(["message f-fs-fs", e.position]) }, [ e.data.msgType === "TIMCustomElem" ? (a(), s(f, { key: 0, data: e.data, position: e.position }, null, 8, ["data", "position"])) : (a(), o(t, { key: 1 }, [ p(r, { src: e.userInfo.avatar, gender: e.userInfo.gender, size: "40", class: "avatar f-0", circle: "" }, null, 8, ["src", "gender"]), l("div", I, [ e.data.msgType === "TIMTextElem" ? (a(), o(t, { key: 0 }, [ g(n(e.data.msgContent.Text), 1) ], 64)) : e.data.msgType === "TIMImageElem" ? (a(), s(T, { key: 1, data: e.data }, null, 8, ["data"])) : e.data.msgType === "TIMSoundElem" ? (a(), s(u, { key: 2, position: e.position, data: e.data }, null, 8, ["position", "data"])) : e.data.msgType === "TIMVideoFileElem" ? (a(), s(y, { key: 3, data: e.data }, null, 8, ["data"])) : (a(), o("span", k, "暂未处理此种类型" + n(e.data.msgType), 1)) ]) ], 64)) ], 2); }; } }), N = /* @__PURE__ */ c(M, [["__scopeId", "data-v-e9b687f0"]]); export { N as default };