下拉刷新空状态处理
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user