Browse Source

chore(components): Adjust styling for PageWrapper

main
刘凯 1 year ago
parent
commit
6dcc1575f2
  1. 14
      src/components/Page/src/PageWrapper.vue

14
src/components/Page/src/PageWrapper.vue

@ -127,8 +127,12 @@ watch(
<template>
<div ref="wrapperRef" :class="getClass">
<PageHeader
v-if="getShowHeader" v-bind="omit($attrs, 'class')" ref="headerRef" :style="getHeaderStyle"
style="margin: 1rem; border-radius: 1rem;" :ghost="ghost" :title="title"
v-if="getShowHeader"
v-bind="omit($attrs, 'class')"
ref="headerRef"
:style="getHeaderStyle"
:ghost="ghost"
:title="title"
>
<template #default>
<template v-if="content">
@ -164,18 +168,16 @@ watch(
.@{prefix-cls}-content {
margin: 1rem;
border-radius: 1rem;
}
.ant-page-header {
&:empty {
margin: 1rem;
border-radius: 1rem;
padding: 0;
}
}
&-content-bg {
background-color: var(--component-background);
background-color: @component-background;
}
&--dense {