MaximizeQuit.vue 728 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="le-maximize-quit" @click="maximizeQuit">
  3. <LeIcon class="icon_quit" iconClass="icon-back"></LeIcon>
  4. </div>
  5. </template>
  6. <script setup lang="ts">
  7. import useStore from '@/store'
  8. const { setting } = useStore()
  9. const maximizeQuit = () => {
  10. setting.contentMaximize = false
  11. }
  12. </script>
  13. <style scoped lang="scss">
  14. .#{$prefix}maximize-quit {
  15. position: fixed;
  16. top: -30px;
  17. right: -30px;
  18. z-index: 999;
  19. width: 60px;
  20. height: 60px;
  21. cursor: pointer;
  22. background-color: var(--el-color-info-light-5);
  23. border-radius: 50%;
  24. opacity: 0.9;
  25. &:hover {
  26. background-color: var(--el-color-info-light-3);
  27. }
  28. .icon_quit {
  29. position: relative;
  30. top: 60%;
  31. left: 16%;
  32. font-size: 18px;
  33. color: #fff;
  34. }
  35. }
  36. </style>