下拉刷新空状态处理

This commit is contained in:
李瑞
2025-09-30 18:04:35 +08:00
parent e740d37b6d
commit bacef525ae
3 changed files with 5 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 5px; gap: 5px;
padding-bottom: 34px; padding-bottom: 80px;
// min-height: 100vh; // min-height: 100vh;
.recommendTextWrapper { .recommendTextWrapper {

View File

@@ -142,10 +142,12 @@
.hidden { .hidden {
opacity: 0; opacity: 0;
transform: translateY(-5px); transform: translateY(-5px);
pointer-events: none;
} }
/* 可见状态 */ /* 可见状态 */
.visible { .visible {
opacity: 1; opacity: 1;
transform: translateY(0); transform: translateY(0);
pointer-events: auto;
} }

View File

@@ -463,12 +463,14 @@ export const useListStore = create<TennisStore>()((set, get) => ({
searchPageState: { searchPageState: {
...searchPageStateDefaultValue ...searchPageStateDefaultValue
}, },
loading: true,
}); });
} else { } else {
set({ set({
listPageState: { listPageState: {
...listPageStateDefaultValue ...listPageStateDefaultValue
}, },
loading: true,
}); });
} }
if (!isSearchData) { if (!isSearchData) {