修复 下拉刷新文字,文字大小问题
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
color: #000000;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
&.active {
|
||||
|
||||
@@ -150,7 +150,7 @@ const MyselfPageContent: React.FC = () => {
|
||||
// };
|
||||
|
||||
return (
|
||||
<ScrollView scrollY className={styles.myselfPage}>
|
||||
<ScrollView scrollY refresherBackground="#FAFAFA" className={styles.myselfPage}>
|
||||
<View
|
||||
className={styles.myselfPageContentMain}
|
||||
style={{ paddingTop: `${totalHeight}px` }}
|
||||
|
||||
Reference in New Issue
Block a user