You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
631 B
Vue
28 lines
631 B
Vue
<script setup>
|
|
import ChatPreview from "@/components/ChatPreview.vue";
|
|
import ChatMsg from "@/components/ChatMsg.vue";
|
|
</script>
|
|
|
|
<template>
|
|
<div id="background">
|
|
<li :key="chat.id" v-for="chat in $options.demo_chats.history">
|
|
<ChatPreview
|
|
:chat-name="chat.name"
|
|
:chat-last-message="chat.last_message"
|
|
:chat-seen="chat.seen"
|
|
:chat-date="chat.date"
|
|
:chat-new-messages="chat.new_messages"
|
|
/>
|
|
</li>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import demo_chats_json from "../assets/demo_chats.json";
|
|
export default {
|
|
demo_chats: demo_chats_json,
|
|
};
|
|
</script>
|
|
|
|
<style scoped></style>
|