From 91f00f1df35a964d69f48b9f71b484e2d4ef357e Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 11 六月 2025 16:52:57 +0800 Subject: [PATCH] fix: v1.4 --- apps/taro/src/components/Layout/PageLayout.vue | 47 ++++++++++++++--------------------------------- 1 files changed, 14 insertions(+), 33 deletions(-) diff --git a/apps/taro/src/components/Layout/PageLayout.vue b/apps/taro/src/components/Layout/PageLayout.vue index 84a15dd..d2f5272 100644 --- a/apps/taro/src/components/Layout/PageLayout.vue +++ b/apps/taro/src/components/Layout/PageLayout.vue @@ -5,16 +5,6 @@ <CommonNavigationBar v-bind="_commonNavigationBarProps" /> </slot> - <slot name="bg"> - <div - v-if="hasLinearBg" - class="page-layout-linear-bg" - :style="{ - height: '100%', - }" - ></div> - </slot> - <div class="page-layout-scroll-view-wrapper" :style="{ height: scrollViewHeight }"> <slot :scrollViewHeight="scrollViewHeight" v-if="isAuth"></slot> <!-- <template v-if="isAuth"> @@ -48,35 +38,14 @@ import { isWeb, isInAlipay, isInWeChat } from '@/utils/env'; //@ts-ignore import { setPageTitle } from '@/utils'; +import { pageLayoutProps } from './layout'; defineOptions({ name: 'PageLayout', inheritAttrs: false, }); -const props = defineProps({ - ...commonNavigationBarProps, - needAuth: { - type: Boolean, - default: true, - }, - useView: { - type: Boolean, - default: false, - }, - hasLinearBg: { - type: Boolean, - default: false, - }, - linearBgHeight: { - type: Number, - default: 388, - }, - hasBgColor: { - type: Boolean, - default: false, - }, -}); +const props = defineProps(pageLayoutProps); setPageTitle(props.title); @@ -122,6 +91,18 @@ <style lang="scss"> @import '@/styles/common.scss'; +.page-layout-container { + height: 100%; + position: relative; + + .page-layout-wrapper { + width: 100%; + height: 100%; + position: absolute; + z-index: 100; + } +} + .page-layout-wrapper { /* background-color: $body-background-color; */ -- Gitblit v1.9.1