refactor: default layout
This commit is contained in:
parent
2d8652a69d
commit
e78403152a
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user