From bd7dd96c732ded6854d47bf77f65e5c64d3d15e2 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 21 五月 2025 13:24:09 +0800 Subject: [PATCH] fix: 修改ui --- apps/taro/src/components/Layout/PageLayout.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/apps/taro/src/components/Layout/PageLayout.vue b/apps/taro/src/components/Layout/PageLayout.vue index 02fa48e..84a15dd 100644 --- a/apps/taro/src/components/Layout/PageLayout.vue +++ b/apps/taro/src/components/Layout/PageLayout.vue @@ -1,6 +1,6 @@ <template> <Portal.Host> - <div :class="['page-layout-wrapper', { isWeb: isWeb }]" v-bind="$attrs"> + <div :class="['page-layout-wrapper', { isWeb: isWeb, hasBgColor }]" v-bind="$attrs"> <slot v-if="_showNavigationBar" name="navigationBar"> <CommonNavigationBar v-bind="_commonNavigationBarProps" /> </slot> @@ -72,6 +72,10 @@ type: Number, default: 388, }, + hasBgColor: { + type: Boolean, + default: false, + }, }); setPageTitle(props.title); @@ -121,6 +125,10 @@ .page-layout-wrapper { /* background-color: $body-background-color; */ + &.hasBgColor { + background-color: $body-background-color; + } + .page-layout-scroll-view-wrapper { display: flex; flex-direction: column; -- Gitblit v1.9.1