chat.vue 769 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <el-col :span="24" class="one" v-if="_id"> 聊天记录</el-col>
  6. <el-col :span="24" class="two" v-else>
  7. <p>您还未选中或发起聊天,快去跟好友聊一聊吧</p>
  8. </el-col>
  9. </el-col>
  10. </el-row>
  11. </div>
  12. </template>
  13. <script setup>
  14. const _id = inject('_id')
  15. const list = inject('list')
  16. </script>
  17. <style scoped lang="scss">
  18. .main {
  19. .one {
  20. height: 72vh;
  21. width: 100%;
  22. border-radius: 0 5px 5px 0;
  23. color: #a3a7ae;
  24. }
  25. .two {
  26. display: flex;
  27. align-items: center;
  28. justify-content: center;
  29. height: 70vh;
  30. width: 100%;
  31. border-radius: 0 5px 5px 0;
  32. color: #a3a7ae;
  33. font-size: 16px;
  34. }
  35. }
  36. </style>