index.js 625 B

1234567891011121314151617181920
  1. import React, { Component } from 'react';
  2. import './index.less';
  3. import Icon from '../Icon';
  4. import Open from '../Open';
  5. export default class OtherAnswer extends Component {
  6. render() {
  7. const { data } = this.props;
  8. return (
  9. <div className="other-answer">
  10. <div className="small-tag">提问</div>
  11. <div className="title">{data.content}</div>
  12. <div className="small-tag">回答</div>
  13. <Open height={80} up={<Icon name="up" />} down={<Icon name="down" />}>
  14. <div className="desc" dangerouslySetInnerHTML={{ __html: data.answer }} />
  15. </Open>
  16. </div>
  17. );
  18. }
  19. }