index.js 623 B

12345678910111213141516171819202122232425
  1. import React from 'react';
  2. import './index.less';
  3. import Module from '../Module';
  4. import Tabs from '../Tabs';
  5. import OtherAnswer from '../OtherAnswer';
  6. function QAList(props) {
  7. const { style, data = [] } = props;
  8. return (
  9. <Module style={style} className="qa-list">
  10. <Tabs
  11. type="division"
  12. theme="theme"
  13. space={2.5}
  14. width={100}
  15. tabs={[{ key: 'qx', name: '解析详情' }, { key: 'chinese', name: '中文语意' }]}
  16. />
  17. {data.map(item => {
  18. return <OtherAnswer data={item} />;
  19. })}
  20. </Module>
  21. );
  22. }
  23. QAList.propTypes = {};
  24. export default QAList;