index.vue 651 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="nav">
  3. <div class="left_box">
  4. <Logo></Logo>
  5. <Title></Title>
  6. </div>
  7. <div>
  8. <UserIcon></UserIcon>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import Logo from "./Logo";
  14. import Title from "./Title";
  15. import UserIcon from "./UserIcon";
  16. export default {
  17. name: "SideBar",
  18. components: { Logo, Title, UserIcon },
  19. data() {
  20. return {};
  21. },
  22. mounted() {},
  23. methods: {},
  24. };
  25. </script>
  26. <style lang="scss" scoped>
  27. .nav {
  28. width: 100vw;
  29. height: 5rem;
  30. background-color: #fff;
  31. display: flex;
  32. margin-bottom: 2rem;
  33. justify-content: space-between;
  34. .left_box {
  35. display: flex;
  36. }
  37. }
  38. </style>