refactor: default layout

This commit is contained in:
菲鸽 2024-03-03 13:28:32 +08:00
parent 2d8652a69d
commit e78403152a

View File

@ -1,23 +1,22 @@
<template> <template>
<view class="default-layout"> <view class="default-layout">
<slot /> <slot />
<view class="text-gray-400 m-auto mt-12">[default layout]</view>
</view> </view>
</template> </template>
<style lang="scss"> <style lang="scss">
.default-layout { page {
display: flex;
flex-direction: column;
// #ifdef MP-WEIXIN
height: 100%; height: 100%;
overflow: auto;
}
// #endif body {
// #ifndef MP-WEIXIN height: 100%;
min-height: 100%; overflow: auto;
}
// #endif .default-layout {
overflow: hidden; height: 100%;
overflow: auto;
} }
</style> </style>