import React, { Component } from "react"; import { Spin } from "antd"; import Comment from "../../Comment"; import CommentBox from "../CommentBox"; import "./index.css"; class CommentList extends Component { constructor(props) { super(props); this.state = {}; } render() { const { list, page, loading, isNoMoreComment, sGetComment } = this.props.app; const spinning = Boolean(loading.sGetComment || loading.sCommentFavor); return (
{list.map(item => ( ))} {!isNoMoreComment && (
sGetComment({ page: page + 1 })} > 查看更多评论
)}
); } } CommentList.propTypes = {}; export default Comment(CommentList);