知乎热榜 下拉刷新
This commit is contained in:
parent
13ed2cbe11
commit
a179c383e2
@ -32,8 +32,13 @@ onReady(() => {
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<uni-section title="知乎热榜" type="line">
|
<uni-section title="知乎热榜" type="line">
|
||||||
<scroll-view refresher-enabled :refresher-triggered="ctx.refresh.triggered" @refresherrefresh="fetchHotList">
|
<scroll-view style="max-height: 50vh"
|
||||||
<uni-list>
|
show-scrollbar
|
||||||
|
refresher-threshold="150"
|
||||||
|
scroll-y
|
||||||
|
refresher-enabled
|
||||||
|
:refresher-triggered="ctx.refresh.triggered"
|
||||||
|
@refresherrefresh="fetchHotList">
|
||||||
<uni-list-item v-for="item in ctx.data" :key="item.target.id" direction="column">
|
<uni-list-item v-for="item in ctx.data" :key="item.target.id" direction="column">
|
||||||
<template #header>
|
<template #header>
|
||||||
<view class="w-full overflow-hidden overflow-ellipsis whitespace-nowrap font-bold text-lg">
|
<view class="w-full overflow-hidden overflow-ellipsis whitespace-nowrap font-bold text-lg">
|
||||||
@ -47,7 +52,7 @@ onReady(() => {
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</uni-list-item>
|
</uni-list-item>
|
||||||
</uni-list>
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</uni-section>
|
</uni-section>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
Reference in New Issue
Block a user