From 314dcacdeecec4dff192b78bad5124b1b29a453d Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 20 二月 2025 15:07:36 +0800
Subject: [PATCH] fix: 页面
---
apps/taro/src/components/Layout/ContentScrollView.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/apps/taro/src/components/Layout/ContentScrollView.vue b/apps/taro/src/components/Layout/ContentScrollView.vue
index 1bb8a3e..7e7cc84 100644
--- a/apps/taro/src/components/Layout/ContentScrollView.vue
+++ b/apps/taro/src/components/Layout/ContentScrollView.vue
@@ -1,5 +1,9 @@
<template>
- <scroll-view class="content-scroll-view-wrapper" :class="{ hasPaddingTop }" :scroll-y="true">
+ <scroll-view
+ class="content-scroll-view-wrapper"
+ :class="{ hasPaddingTop, isNoWeb: !isWeb }"
+ :scroll-y="true"
+ >
<ContentView
:class="['content-scroll-view-wrapper-inner', props.allHeight ? 'all-height' : '']"
:paddingH="paddingH"
@@ -11,6 +15,7 @@
<script setup lang="ts">
import ContentView from './ContentView.vue';
+import { isWeb } from '@/utils/env';
defineOptions({
name: 'ContentScrollView',
@@ -34,7 +39,10 @@
.content-scroll-view-wrapper {
@include listScrollViewWithNoPadding;
- background-color: $body-background-color;
+
+ &.isNoWeb {
+ background-color: $body-background-color;
+ }
&.hasPaddingTop {
padding-top: 20px;
--
Gitblit v1.9.1