mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
🌱 improve comment demo
This commit is contained in:
parent
073cbdb6d2
commit
8be45e5c33
@ -1,8 +1,8 @@
|
||||
---
|
||||
order: 3
|
||||
title:
|
||||
zh-CN: 编辑模式
|
||||
en-US: Editor mode
|
||||
zh-CN: 回复框
|
||||
en-US: Reply Editor
|
||||
---
|
||||
|
||||
## zh-CN
|
||||
@ -19,7 +19,6 @@ import {
|
||||
} from 'antd';
|
||||
import moment from 'moment';
|
||||
|
||||
const FormItem = Form.Item;
|
||||
const TextArea = Input.TextArea;
|
||||
|
||||
const CommentList = ({ comments }) => (
|
||||
@ -35,12 +34,11 @@ const Editor = ({
|
||||
onChange, onSubmit, submitting, value,
|
||||
}) => (
|
||||
<div>
|
||||
<FormItem>
|
||||
<Form.Item>
|
||||
<TextArea rows={4} onChange={onChange} value={value} />
|
||||
</FormItem>
|
||||
<FormItem>
|
||||
</Form.Item>
|
||||
<Form.Item>
|
||||
<Button
|
||||
disabled={submitting}
|
||||
htmlType="submit"
|
||||
loading={submitting}
|
||||
onClick={onSubmit}
|
||||
@ -48,7 +46,7 @@ const Editor = ({
|
||||
>
|
||||
Add Comment
|
||||
</Button>
|
||||
</FormItem>
|
||||
</Form.Item>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user