index.vue 866 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!--
  2. * @Author: WangJiaCheng
  3. * @Date: 2021-05-06 17:52:07
  4. * @LastEditors: wjc
  5. * @LastEditTime: 2021-09-24 11:00:02
  6. * @Description:
  7. -->
  8. <template>
  9. <el-header class="layout-header">
  10. <logo
  11. title="绘开发"
  12. />
  13. <span>
  14. <span class="name">wjc</span><el-avatar icon="el-icon-user-solid" />
  15. </span>
  16. </el-header>
  17. </template>
  18. <script>
  19. import Logo from './Logo'
  20. export default {
  21. name: 'DeafultHeader',
  22. components: {
  23. Logo
  24. }
  25. }
  26. </script>
  27. <style lang="less">
  28. .layout-header {
  29. display: flex;
  30. justify-content: space-between;
  31. z-index: 102;
  32. margin-bottom: 2px;
  33. width: 100%;
  34. background-color: #fff;
  35. box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  36. color: #333;
  37. line-height: 60px;
  38. text-align: right;
  39. .name {
  40. margin-right: 8px;
  41. }
  42. span {
  43. vertical-align: middle;
  44. }
  45. }
  46. </style>