TheLogo.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <script setup>
  2. import { storeToRefs } from 'pinia';
  3. import { useAppStore } from '@/stores/modules/appStore';
  4. import SvgIcon from '@/components/SvgIcon';
  5. import BasePopover from "@/components/BasePopover"
  6. const appStore = useAppStore();
  7. const { subMenuCollapse } = storeToRefs(appStore);
  8. const changeCollapse = () => appStore.toggleSubMenuCollapse();
  9. </script>
  10. <template>
  11. <div class="logo-main flex items-center justify-between py-[14px] px-[20px]">
  12. <div class="title flex items-center space-x-2">
  13. <div class="w-[28px] h-[28px]">
  14. <SvgIcon name="common-logo" size="28"></SvgIcon>
  15. </div>
  16. <span class="block w-[70px] font-[10px] text-center">人工智能运营体智慧决策助手</span>
  17. </div>
  18. <!-- 图标 -->
  19. <div class="icon-group flex items-center justify-center" @click="changeCollapse" v-show="!subMenuCollapse">
  20. <BasePopover placement="right" content="历史记录">
  21. <SvgIcon class="cursor-pointer" name="tool-arrow-history" size="20"></SvgIcon>
  22. </BasePopover>
  23. </div>
  24. </div>
  25. </template>
  26. <style scoped lang="scss">
  27. .logo-main {
  28. font-family: AlimamaShuHeiTi;
  29. .title {
  30. font-size: 10px;
  31. line-height: 12px;
  32. }
  33. .icon-group {
  34. width: 24px;
  35. height: 24px;
  36. border-radius: 6px;
  37. color: #4F5866;
  38. &:hover {
  39. color: #2454FF;
  40. background: #fff;
  41. }
  42. }
  43. }
  44. </style>