修复 下拉刷新文字,文字大小问题

This commit is contained in:
张成
2025-11-30 20:19:06 +08:00
parent 6815eca84d
commit 42b05a6bc8
15 changed files with 48 additions and 31 deletions

View File

@@ -123,6 +123,8 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
// ScrollView 滚动处理
const handleScrollViewScroll = useCallback(
(e: any) => {
const currentScrollTop = e?.detail?.scrollTop || 0;
const lastScrollTop = lastScrollTopRef.current;
const currentTime = Date.now();
@@ -252,6 +254,8 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
};
const handleRefresh = async () => {
setRefreshing(true);
try {
await refreshMatches();
@@ -264,7 +268,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
} finally {
// 使用 requestAnimationFrame 替代 setTimeout(0),性能更好
requestAnimationFrame(() => {
setRefreshing(false);
setRefreshing(false);
});
}
};
@@ -426,7 +430,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
</View>
</View>
<ScrollView
<ScrollView refresherBackground="#FAFAFA"
ref={scrollViewRef}
scrollY
scrollTop={scrollTop}