|
|
@ -307,6 +307,7 @@ const tabbarStyle = computed((): CSSProperties => { |
|
|
const contentStyle = computed((): CSSProperties => { |
|
|
const contentStyle = computed((): CSSProperties => { |
|
|
const fixed = headerFixed.value; |
|
|
const fixed = headerFixed.value; |
|
|
|
|
|
|
|
|
|
|
|
const { footerEnable, footerFixed, footerHeight } = props; |
|
|
return { |
|
|
return { |
|
|
marginTop: |
|
|
marginTop: |
|
|
fixed && |
|
|
fixed && |
|
|
@ -315,7 +316,7 @@ const contentStyle = computed((): CSSProperties => { |
|
|
(!isHeaderAuto.value || scrollY.value < headerWrapperHeight.value) |
|
|
(!isHeaderAuto.value || scrollY.value < headerWrapperHeight.value) |
|
|
? `${headerWrapperHeight.value}px` |
|
|
? `${headerWrapperHeight.value}px` |
|
|
: 0, |
|
|
: 0, |
|
|
paddingBottom: `${props.footerEnable ? props.footerHeight : 0}px`, |
|
|
paddingBottom: `${footerEnable && footerFixed ? footerHeight : 0}px`, |
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|