zhengyiming
2 天以前 bd7dd96c732ded6854d47bf77f65e5c64d3d15e2
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>
@@ -10,7 +10,7 @@
          v-if="hasLinearBg"
          class="page-layout-linear-bg"
          :style="{
            height: Taro.pxTransform(props.linearBgHeight),
            height: '100%',
          }"
        ></div>
      </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;
@@ -136,13 +144,7 @@
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(
      180deg,
      boleGetCssVar('color', 'primary') 0%,
      #5a86f6 56%,
      #f9f9fb 100%
    );
    filter: blur(0px);
    background: linear-gradient(180deg, #7cd0ff 0%, rgba(255, 255, 255, 0) 43%, #ffffff 100%);
    border-radius: 0px 0px 20px 20px;
  }