HomeHeader.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="home-header">
  3. <div class="left">
  4. <div class="sys-icon" @click="linkToHome"></div>
  5. <div v-if="subTitle" class="sub_title">{{ subTitle }}</div>
  6. </div>
  7. <div class="right user-panel" v-if="false">
  8. <user-avatar />
  9. </div>
  10. </div>
  11. </template>
  12. <script setup>
  13. import UserAvatar from '@/views/components/UserNewAvatar.vue';
  14. import { linkToHome } from '@/utils/external-links';
  15. const props = defineProps({
  16. subTitle: {
  17. type: String,
  18. default: ''
  19. }
  20. })
  21. </script>
  22. <style scoped lang="scss">
  23. .home-header {
  24. width: 100%;
  25. cursor: pointer;
  26. height: 100%;
  27. padding: 0 40px 0 40px;
  28. display: flex;
  29. justify-content: space-between;
  30. .left {
  31. height: 100%;
  32. display: flex;
  33. justify-content: flex-start;
  34. align-items: center;
  35. .sys-icon {
  36. width: 260px;
  37. height: 32px;
  38. background: url('@/assets/images/home/home-logo.png') no-repeat;
  39. background-size: 100% 100%;
  40. margin-right: 11px;
  41. }
  42. >.sub_title {
  43. color: #2089F0;
  44. position: relative;
  45. padding-left: 11px;
  46. font-size: 22px;
  47. font-weight: bolder;
  48. &::before {
  49. position: absolute;
  50. left: 0px;
  51. top: 3px;
  52. bottom: 3px;
  53. margin: auto;
  54. content: "";
  55. display: block;
  56. background: #E5E6E6;
  57. width: 1px;
  58. }
  59. }
  60. }
  61. .right {
  62. height: 100%;
  63. width: 180px;
  64. }
  65. }
  66. </style>