No Description

demo.jsx 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import React from "react";
  2. import PropTypes from "prop-types";
  3. import CommentCombine from "./index";
  4. import styles from "./index.less";
  5. export class CommentDemo extends React.Component {
  6. render() {
  7. return (
  8. <div className={styles.playgroundWrapper}>
  9. <CommentCombine
  10. locale={this.props.locale}
  11. currentUser={{
  12. avatar:
  13. "https://links123-images.oss-cn-hangzhou.aliyuncs.com/avatar/2020/7/9/c495ab20cba85676bc91f0ea504275bf.jpg",
  14. birthday: "1991-11-14",
  15. email: "foureyed@qq.com",
  16. gender: 1,
  17. id: 45,
  18. introduction:
  19. "的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试的测试",
  20. linker: "L10158",
  21. nickname: "Adam的测试",
  22. phone: "170****1235",
  23. phone_code: "86",
  24. reside: "江西上饶的",
  25. }}
  26. />
  27. </div>
  28. );
  29. }
  30. }
  31. CommentDemo.propTypes = {
  32. locale: PropTypes.oneOf(["zh", "en"]),
  33. };
  34. export default CommentDemo;