🐞 fix(空状态组件|滚动组件): 修复空状态图片白色背景问题

This commit is contained in:
xuan 2022-11-11 14:39:39 +08:00
parent 45c656e0ed
commit 667397bb9a
3 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,6 @@
.pic { .pic {
width: 522px; width: 522px;
height: 322px; height: 322px;
background: #fff;
// opacity: 0.3; // opacity: 0.3;
margin-bottom: 24px; margin-bottom: 24px;
} }

View File

@ -16,7 +16,7 @@ export default memo((pros: PropsObj) => {
return ( return (
<View className={styles.mainBox}> <View className={styles.mainBox}>
<Image className={styles.pic} mode='aspectFill' lazyLoad src={picUrl}></Image> <Image className={styles.pic} mode='aspectFill' lazyLoad src={picUrl}></Image>
<View className={styles.fonst}>{text}</View> <View className={styles.text}>{text}</View>
</View> </View>
) )
}) })

View File

@ -107,7 +107,7 @@ export default memo(
</View> </View>
)} )}
{statusMore == 0 && <LoadingCard />} {statusMore == 0 && <LoadingCard />}
{statusMore == 1 && emptySlot ? emptySlot : <Empty picUrl={SEARCH_EMPTY_IMAGE} text='暂无数据'/>} {statusMore == 1 && (emptySlot ? emptySlot : <Empty picUrl={SEARCH_EMPTY_IMAGE} text='暂无数据'/>)}
</> </>
) )
} }