import React, { Component } from 'react'; import './index.less'; import Assets from '@src/components/Assets'; import More from '../More'; import { formatDate } from '../../../../src/services/Tools'; import GIcon from '../Icon'; export default class Note extends Component { render() { const { data = { file: true }, teacher, theme = 'default', reply, actionList, onAction } = this.props; const { info } = this.props.user; return (
{onAction && actionList && } {onAction && reply && onAction('reply')} />}
{data.userId ? info.nickname : teacher.realname} {formatDate(data.createTime, 'YYYY-MM-DD HH:mm')}
{data.reply &&
{data.reply}
} {data.content}
); } }