完成数据分页加载

This commit is contained in:
kron
2025-06-18 12:32:08 +08:00
parent 7413a8fdee
commit a040a60987
5 changed files with 230 additions and 145 deletions

View File

@@ -15,6 +15,10 @@ defineProps({
type: Function,
default: null,
},
overflow: {
type: String,
default: "auto",
},
});
const isIos = ref(true);
onMounted(() => {
@@ -29,7 +33,7 @@ onMounted(() => {
<Header :title="title" :onBack="onBack" />
<view
class="content"
:style="{ height: `calc(100vh - ${isIos ? 105 : 95}px)` }"
:style="{ height: `calc(100vh - ${isIos ? 98 : 95}px)`, overflow }"
>
<slot></slot>
</view>
@@ -40,11 +44,9 @@ onMounted(() => {
.content {
width: 100vw;
overflow-x: hidden;
overflow-y: auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding-bottom: 10px;
}
</style>