|
@@ -21,7 +21,7 @@ const pageSize = ref(10)
|
|
|
const nomore = ref(false)
|
|
|
const topRef = ref()
|
|
|
const height = ref(0)
|
|
|
-const windowInfo = ref()
|
|
|
+const windowInfo = ref<UniNamespace.GetWindowInfoResult>()
|
|
|
const { data, run: setData } = useRequest(
|
|
|
() => props.request({ pageNo: pageNo.value, pageSize: pageSize.value, ...props.query }),
|
|
|
{ immediate: false },
|
|
@@ -79,7 +79,10 @@ defineExpose({
|
|
|
})
|
|
|
</script>
|
|
|
<template>
|
|
|
- <div class="flex-grow flex flex-col">
|
|
|
+ <div
|
|
|
+ class="flex-grow flex flex-col"
|
|
|
+ :style="{ paddingBottom: addUnit(windowInfo?.safeAreaInsets.bottom || 0) }"
|
|
|
+ >
|
|
|
<div class="relative" :style="{ height: addUnit(height) }">
|
|
|
<div
|
|
|
ref="topRef"
|