完成数据分页加载
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user