default.vue 776 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <script lang="ts" setup>
  2. const { themeVars, theme } = useTheme()
  3. </script>
  4. <script lang="ts">
  5. export default {
  6. options: {
  7. addGlobalClass: true,
  8. virtualHost: true,
  9. styleIsolation: 'shared',
  10. },
  11. }
  12. </script>
  13. <template>
  14. <wd-config-provider :theme-vars="themeVars" :theme="theme" :custom-class="`page-wraper ${theme}`">
  15. <slot />
  16. <wd-notify />
  17. <wd-message-box />
  18. <wd-toast />
  19. <global-loading />
  20. <global-toast />
  21. <global-message />
  22. <!-- #ifdef MP-WEIXIN -->
  23. <privacy-popup />
  24. <!-- #endif -->
  25. </wd-config-provider>
  26. </template>
  27. <style lang="scss">
  28. .page-wraper {
  29. min-height: calc(100vh - var(--window-top));
  30. box-sizing: border-box;
  31. background: #f9f9f9;
  32. }
  33. .wot-theme-dark.page-wraper {
  34. background: #222;
  35. }
  36. </style>