--- order: 3 title: zh-CN: 回复框 en-US: Reply Editor --- ## zh-CN 评论编辑器组件提供了相同样式的封装以支持自定义评论编辑器。 ## en-US Comment can be used as an editor, so the user can customize the contents of the component. ```tsx import { Avatar, Button, Comment, Form, Input, List } from 'antd'; import moment from 'moment'; import React, { useState } from 'react'; const { TextArea } = Input; interface CommentItem { author: string; avatar: string; content: React.ReactNode; datetime: string; } interface EditorProps { onChange: (e: React.ChangeEvent) => void; onSubmit: () => void; submitting: boolean; value: string; } const CommentList = ({ comments }: { comments: CommentItem[] }) => ( 1 ? 'replies' : 'reply'}`} itemLayout="horizontal" renderItem={props => } /> ); const Editor = ({ onChange, onSubmit, submitting, value }: EditorProps) => ( <>