This commit is contained in:
kron
2026-01-12 10:09:36 +08:00
parent 88fbc93d97
commit 121d0e36f3
7 changed files with 22 additions and 18 deletions

View File

@@ -41,6 +41,10 @@ const props = defineProps({
type: Boolean,
default: true,
},
showBottom: {
type: Boolean,
default: true,
},
});
const isIOS = uni.getDeviceInfo().osName === "ios";
const showHint = ref(false);
@@ -158,7 +162,7 @@ const goCalibration = async () => {
:show-scrollbar="false"
:style="{
height: `calc(100vh - ${capsuleHeight + (isHome ? 0 : 50)}px - ${
$slots.bottom ? (isIOS ? '85px' : '65px') : '0px'
$slots.bottom && showBottom ? (isIOS ? '85px' : '65px') : '0px'
})`,
}"
>
@@ -166,7 +170,7 @@ const goCalibration = async () => {
</scroll-view>
<view
class="bottom-part"
v-if="$slots.bottom"
v-if="$slots.bottom && showBottom"
:style="{ height: isIOS ? '75px' : '55px', paddingTop: '10px' }"
>
<slot name="bottom"></slot>