Commit 0894faf2 by Sixong.Zhu

add text

parent a8f11618
Showing with 14 additions and 1 deletions
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
v-else-if="fileFailed2Load" v-else-if="fileFailed2Load"
title="[语音加载失败]" title="[语音加载失败]"
></i> ></i>
<text-message v-model="value" v-if="backend" />
</div> </div>
</template> </template>
...@@ -27,12 +29,16 @@ ...@@ -27,12 +29,16 @@
import { Component, Ref } from "vue-property-decorator"; import { Component, Ref } from "vue-property-decorator";
import BaseMessage from "./index"; import BaseMessage from "./index";
import VoiceIcon from "./voice.vue"; import VoiceIcon from "./voice.vue";
import TextMessage from "./text-message.vue";
import Chat from "@/customer-service/xim";
@Component({ components: { VoiceIcon } }) @Component({ components: { VoiceIcon, TextMessage } })
export default class Index extends BaseMessage { export default class Index extends BaseMessage {
@Ref("audio") @Ref("audio")
private readonly audioRef!: HTMLAudioElement; private readonly audioRef!: HTMLAudioElement;
private readonly backend = Chat.isBackend();
private playing = false; private playing = false;
private get duration() { private get duration() {
...@@ -95,6 +101,13 @@ ...@@ -95,6 +101,13 @@
font-size: 16px; font-size: 16px;
} }
} }
.inline-text {
position: absolute;
bottom: 0;
left: 40px;
}
.my-message { .my-message {
.voice-message { .voice-message {
> div { > div {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment