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