TicketItem.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="TicketItem">
  3. <div class="bullet"
  4. :style="{background: ticket.status_info.color}" />
  5. <div class="title ellipsis">
  6. {{ ticket.title }}
  7. </div>
  8. <div class="status ellipsis"
  9. :style="{color: ticket.status_info.color}">
  10. {{ ticket.status_info.label }}
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. import { Ticket } from 'src/models/Ticket.js'
  16. export default {
  17. name: 'TicketItem',
  18. props: {
  19. ticket: {
  20. type: Ticket,
  21. default: new Ticket()
  22. }
  23. }
  24. }
  25. </script>
  26. <style scoped lang="scss">
  27. .TicketItem {
  28. border-bottom: solid 1px #EDEDED;
  29. padding: 16px 0;
  30. display: flex;
  31. flex-flow: row;
  32. justify-content: flex-start;
  33. align-items: center;
  34. .bullet {
  35. position: relative;
  36. width: 10px;
  37. height: 10px;
  38. margin-right: 8px;
  39. border-radius: 100%;
  40. &:before {
  41. position: absolute;
  42. content: ' ';
  43. left: 0;
  44. top: 0;
  45. width: 10px;
  46. height: 10px;
  47. //background: $primary;
  48. border-radius: 100%;
  49. }
  50. }
  51. .title {
  52. width: calc( 100% - 118px);
  53. color: #747474;
  54. font-size: 14px;
  55. font-weight: 500;
  56. line-height: 140%;
  57. }
  58. .status {
  59. width: 100px;
  60. }
  61. }
  62. </style>