style: fix padding and background color

This commit is contained in:
陈凯龙 2022-04-07 10:18:47 +08:00
parent 18c6bd8686
commit f8c9d54687
3 changed files with 17 additions and 19 deletions

View File

@ -24,7 +24,7 @@ onMounted(() => {
</script>
<template>
<div :class="[`${prefixCls}-container`, 'relative']" ref="contentDetailWrap">
<div :class="[`${prefixCls}-container`, 'relative bg-[#fff]']" ref="contentDetailWrap">
<Sticky :offset="offset">
<div
:class="[

View File

@ -14,7 +14,6 @@ defineProps({
</script>
<template>
<div style="padding: var(--app-content-padding)">
<ElCard :class="[prefixCls, 'mb-20px']" shadow="never">
<template v-if="title" #header>
<div class="flex items-center">
@ -31,5 +30,4 @@ defineProps({
<slot></slot>
</div>
</ElCard>
</div>
</template>

View File

@ -22,7 +22,7 @@ const getCaches = computed((): string[] => {
<template>
<section
:class="[
'w-[100%] bg-[var(--app-contnet-bg-color)]',
'p-[var(--app-content-padding)] w-[100%] bg-[var(--app-contnet-bg-color)]',
{
'!min-h-[calc(100%-var(--app-footer-height))]':
fixedHeader && (layout === 'classic' || layout === 'topLeft') && footer,