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