index.vue 680 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class='lemon-contact-list'>
  3. <div class="lemon-contact-item"
  4. v-for="item in control.friends"
  5. :key="item.id"
  6. @click="control._changeMessageView(item)">
  7. {{item.diaplayName}}
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. name: 'ContactList',
  14. inject: ["control"],
  15. data () {
  16. return {
  17. };
  18. },
  19. computed: {},
  20. watch: {},
  21. methods: {
  22. },
  23. created () {
  24. },
  25. mounted () {
  26. },
  27. }
  28. </script>
  29. <style lang='scss'>
  30. @import '~styles/utils/index';
  31. @include b(contact-item) {
  32. padding: 10px 15px;
  33. cursor: pointer;
  34. &:hover {
  35. background: #000;
  36. }
  37. }
  38. </style>