guide.vue 628 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div class="main">
  3. </div>
  4. </template>
  5. <script setup>
  6. import { useFullscreen } from "@vueuse/core";
  7. const { isFullscreen, enter, exit, toggle } = useFullscreen();
  8. console.log("isFullscreen", isFullscreen);
  9. </script>
  10. <style>
  11. .main {
  12. --main-left-background: #e2caa3;
  13. --main-right-background: #910000;
  14. }
  15. </style>
  16. <style scoped>
  17. .main {
  18. width: 100%;
  19. height: 100%;
  20. display: flex;
  21. flex-direction: row;
  22. }
  23. .left {
  24. flex: 0 0 70%;
  25. background-color: var(--main-left-background);
  26. }
  27. .right {
  28. flex: 0 0 30%;
  29. background-color: var(--main-right-background);
  30. }
  31. </style>