import React,{ Component } from "react"; import { getImageUrl, markdownToHTML, WordsBtn } from 'educoder'; import { Tooltip } from 'antd' const _origin = '' class Graduationtaskitem extends Component{ constructor(props){ super(props); } parseCommentContent = (oldContent) => { return markdownToHTML(oldContent); } renderChildenComments = () => { } render(){ let { item }=this.props; const _content = item.content && this.parseCommentContent(item.content) return(
用户头像
{item.username}({item.comment_role}) {item.time} {/* 分数 */} {item.score >= 0 && {item.score}分} { !item.is_invalid && item.delete && this.props.onDelete(item)}> } {/* 回复 */} { item.is_invalid ? 失效 : ''}
{!!_content &&
} {!_content && {"暂未写评语"}}
{(item && item.children && item.children.length) ?
: ''} {this.renderChildenComments(item)} { item.isAllChildrenLoaded != true && item.children && this.props.isChildCommentPagination == true && item.children.length >= 5?
{this.props.loadMoreChildComments && this.props.loadMoreChildComments(item)}}>
: ''}
{/*mr10 */}

{/* 第二排右侧按钮区域 */}

) } } export default Graduationtaskitem;