增加layout层的底部内边距设置

This commit is contained in:
TOP糯米 2023-03-01 18:33:26 +08:00
parent 9a5ee57992
commit 9e66e6646a
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<view class="page-layout" :style="{ backgroundColor: backgroundColor, minHeight: minHeight }">
<view class="page-layout" :style="{ backgroundColor: backgroundColor, minHeight: minHeight, paddingBottom: layoutPb + 'px' }">
<view
class="page-header"
:class="[textColor]"
@ -42,6 +42,7 @@ export default {
pt: 0,
},
bodyPt: 0,
bodyPb: 0,
};
},
components: {},
@ -74,6 +75,10 @@ export default {
type: String,
default: "dark",
},
layoutPb: {
type: Number,
default: 0,
},
hasPaddingTop: {
type: Boolean,
default: true,