Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

PairsList.vue 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template lang="pug">
  2. section.pairs-list
  3. article(v-if='pairs.length')
  4. template(v-for='pair in pairs')
  5. w-flex().align-center.flex-start
  6. router-link.pair.w-flex.align-center.flex-start(
  7. :to='`/profile/${pair.profile.pid}`')
  8. .dot--icon
  9. .avatar
  10. .idCard
  11. h3 {{ pair.profile.name }} {{ pair.profile.pid }}
  12. p registered nurse
  13. w-menu( left v-model='showMenu')
  14. template(#activator)
  15. w-button.mr3(@click='showMenu = !showMenu' icon="icon-dots-three-horizontal")
  16. w-flex()
  17. router-link(
  18. :to='`/chat/${pair.profile.pid}`')
  19. w-button.mx2(@click='showMenu = false' bg-color="success" tile icon="icon-chat") Chat
  20. w-button.mx2.icon-calendar(@click='showMenu = false' bg-color="info" tile icon="icon-calendar") Calendar
  21. w-button.mx2(@click='showMenu = false' bg-color="primary" icon="icon-cross")
  22. p(v-else) No {{ tabName }} profiles.
  23. </template>
  24. <script setup>
  25. import { ref } from 'vue'
  26. const props = defineProps({
  27. pairs: {
  28. type: [Object, Array],
  29. default: () => [{}],
  30. },
  31. tabName: {
  32. type: String,
  33. default: 'paired',
  34. },
  35. })
  36. const showMenu = ref(false)
  37. </script>
  38. <style lang="sass">
  39. .pairs-list
  40. color: #fff
  41. article
  42. font-family: 'Century Gothic'
  43. .dot--icon
  44. width:12px
  45. height:12px
  46. margin: 11px
  47. border-radius:50%
  48. background-color:#60C3FF
  49. .avatar
  50. width:40px
  51. height:40px
  52. margin: 11px
  53. border-radius: 6px
  54. background-color:#D5D5D5
  55. .idCard
  56. color: #fff
  57. margin: 11px
  58. h3
  59. font-size: 16px
  60. p
  61. font-size: 14px
  62. .w-menu--card
  63. background-color: #000000 !important
  64. </style>