fix: 加了layout后,要把page样式挪到layout根元素上

This commit is contained in:
Burt 2024-01-22 10:31:57 +08:00
parent c9fa715f75
commit cb332d447e
3 changed files with 20 additions and 31 deletions

View File

@ -1,3 +1,22 @@
<template>
<slot />
<view class="default-layout">
<slot />
</view>
</template>
<style lang="scss">
.default-layout {
display: flex;
flex-direction: column;
// #ifdef MP-WEIXIN
height: 100%;
// #endif
// #ifndef MP-WEIXIN
min-height: 100%;
// #endif
overflow: hidden;
}
</style>

View File

@ -94,21 +94,6 @@ const onRefresherRefresh = async () => {
</script>
<style lang="scss">
page {
display: flex;
flex-direction: column;
// #ifdef MP-WEIXIN
height: 100%;
// #endif
// #ifndef MP-WEIXIN
min-height: 100%;
// #endif
overflow: hidden;
}
.scroll-view-bg {
// .top-section
background-color: #23c09c;

View File

@ -100,21 +100,6 @@ const onRefresherRefresh = async () => {
</script>
<style lang="scss">
page {
display: flex;
flex-direction: column;
// #ifdef MP-WEIXIN
height: 100%;
// #endif
// #ifndef MP-WEIXIN
min-height: 100%;
// #endif
overflow: hidden;
}
.scroll-view-bg {
// .top-section
background-color: #23c09c;