Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: preview code of form docs #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/components/Form.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ import { Form, Input } from 'beeshell';
<Form>
<Form.Item label="姓名" hasLine>
<Input value="" onChange={() => {}} />
<Text>描述信息<Text>
<Text>描述信息</Text>
</Form.Item>
<Form.Item label="邮箱" labelWidth={100} hasLine>
<Input value="" onChange={() => {})} />
<Input value="" onChange={() => {}} />
</Form.Item>
</Form>
```
Expand All @@ -66,4 +66,4 @@ import { Form, Input } from 'beeshell';
| label | string/ReactElement | false | '标题' | 表单项标签,可以是字符串或者 ReactElement |
| labelWidth | number | false | 90 | 表单项标签宽度 |
| hasLine | boolean | false | false | 在表单项下是否有横线 |
| children | ReactChild[]|ReactChild | false | null | 表单项子元素 |
| children | ReactChild[]|ReactChild | false | null | 表单项子元素 |