优化编辑页placeholder样式、没有往期球局时,隐藏往期球局
This commit is contained in:
@@ -247,27 +247,31 @@ const MyselfPageContent: React.FC = () => {
|
||||
</ScrollView>
|
||||
</View>
|
||||
|
||||
<View className={styles.endedGameText}>往期球局</View>
|
||||
<View className={styles.gameListSection}>
|
||||
<ScrollView scrollY>
|
||||
<ListContainer
|
||||
data={ended_game_records}
|
||||
recommendList={[]}
|
||||
loading={loading}
|
||||
error={null}
|
||||
errorImg="ICON_LIST_EMPTY_CARD"
|
||||
isShowNoData={ended_game_records.length === 0}
|
||||
loadMoreMatches={() => {}}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
||||
listLoadErrorWrapperHeight="fit-content"
|
||||
listLoadErrorWidth="320px"
|
||||
listLoadErrorHeight="152px"
|
||||
listLoadErrorScale="1.2"
|
||||
defaultShowNum={3}
|
||||
/>
|
||||
</ScrollView>
|
||||
</View>
|
||||
{ended_game_records.length ? (
|
||||
<>
|
||||
<View className={styles.endedGameText}>往期球局</View>
|
||||
<View className={styles.gameListSection}>
|
||||
<ScrollView scrollY>
|
||||
<ListContainer
|
||||
data={ended_game_records}
|
||||
recommendList={[]}
|
||||
loading={loading}
|
||||
error={null}
|
||||
errorImg="ICON_LIST_EMPTY_CARD"
|
||||
isShowNoData={ended_game_records.length === 0}
|
||||
loadMoreMatches={() => {}}
|
||||
collapse={true}
|
||||
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
||||
listLoadErrorWrapperHeight="fit-content"
|
||||
listLoadErrorWidth="320px"
|
||||
listLoadErrorHeight="152px"
|
||||
listLoadErrorScale="1.2"
|
||||
defaultShowNum={3}
|
||||
/>
|
||||
</ScrollView>
|
||||
</View>
|
||||
</>
|
||||
) : null}
|
||||
</View>
|
||||
</ScrollView>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user