Skip to content

Commit

Permalink
docs(FileInput): 补全示例文档 #642 (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptr-z committed Mar 9, 2022
1 parent 27be03e commit 04439ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/react-file-input/README.md
Expand Up @@ -216,6 +216,9 @@ import { Form, Row, Col, Icon } from 'uiw';
ReactDOM.render(
<div>
<Form
onSubmit={({initial, current}) => {
console.log('current',current)
}}
fields={{
picture1: {
label: '图片墙',
Expand Down Expand Up @@ -264,6 +267,11 @@ ReactDOM.render(
<Row>
<Col>{fields.picture3}</Col>
</Row>
<Row gutter={10}>
<Col>
<Button disabled={!canSubmit()} type="primary" htmlType="submit">提交</Button>
</Col>
</Row>
<Row>
<Col>
<pre style={{ padding: '10px 0 0 10px' }}>
Expand Down

0 comments on commit 04439ff

Please sign in to comment.