2025-12-11 22:33:31 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="at_text_message_container bg_container">
|
2025-12-17 08:47:58 +08:00
|
|
|
<u-parse :content="getContent" :previewImg="false" :showImgMenu="false" selectable></u-parse>
|
2025-12-11 22:33:31 +08:00
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-12-17 08:47:58 +08:00
|
|
|
import {
|
|
|
|
|
parseBr
|
|
|
|
|
} from "@/util/common";
|
2025-12-11 22:33:31 +08:00
|
|
|
export default {
|
|
|
|
|
name: "AtTextMessageRender",
|
|
|
|
|
components: {},
|
|
|
|
|
props: {
|
|
|
|
|
message: Object,
|
|
|
|
|
conversationID:String,
|
|
|
|
|
},
|
2025-12-17 08:47:58 +08:00
|
|
|
computed: {
|
|
|
|
|
getContent() {
|
|
|
|
|
return parseBr(this.message.textElem?.content);
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-12-11 22:33:31 +08:00
|
|
|
data() {
|
|
|
|
|
return {};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped></style>
|