UI修改
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user