index.vue 759 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--
  2. * @Author: wjc
  3. * @Date: 2024-06-18 11:40:55
  4. * @LastEditors: wjc
  5. * @LastEditTime: 2024-07-10 15:22:20
  6. * @Description:
  7. -->
  8. <template>
  9. <view class="m-page">
  10. <slot></slot>
  11. </view>
  12. </template>
  13. <script setup lang="ts">
  14. import { useAppStore } from '@/stores/modules/appStore'
  15. defineOptions({ name: 'MPage' })
  16. const appStore = useAppStore()
  17. withDefaults(
  18. defineProps<{
  19. bg?: boolean
  20. }>(),
  21. {
  22. bg: true,
  23. }
  24. )
  25. </script>
  26. <style scoped lang="scss">
  27. .m-page {
  28. @apply relative flex-1 h-full p-12px overflow-y-auto;
  29. background: linear-gradient(180deg, var(--color-primary-2) 0%, var(--bg-page) 100%);
  30. &:has(.m-tabbar) {
  31. :deep(.m-footer) {
  32. padding-bottom: 25px;
  33. }
  34. }
  35. }
  36. </style>