list_footer.tsx 724 B

123456789101112131415161718192021
  1. import { View,Text,Image } from "@tarojs/components";
  2. import './list_footer.scss'
  3. export default function ListFooter(props:{noMore?:boolean,loading?:boolean}){
  4. return <View className="list_footer">
  5. {/* {
  6. props.noMore&&<Text className="no_more g02">没有更多了</Text>
  7. } */}
  8. {
  9. props.loading && <Image src={require('@assets/_health/loading.png')} className="list_footer_loading"/>
  10. }
  11. {
  12. props.loading && <View>
  13. <Text className="h30">正在加载...</Text>
  14. </View>
  15. }
  16. {
  17. props.noMore&& <Image src={require('@assets/_health/no_more.png')} style={{width:68,height:4}}/>
  18. }
  19. </View>
  20. }