Upload
Container properties
All component configurations support Container properties at the first level.
Component properties
| Name | Type | Default | Supports Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | component's className | |
| style | object | component style | ||
| listType | 'picture-card' | 'text' | Default style provided by upload component | ||
| uploadTitle | string | text title of upload button | ||
| subTitle | string | Text subtitle of upload button | ||
| maxCount | number | Maximum number of uploaded files | ||
| maxCount | number | Maximum number of uploaded files | ||
| accept | string | mimetype accepted by uploading files | ||
| sizeLimit | number | Size limits for uploading files | ||
| multiple | bool | false | Whether multiple file uploads are supported | |
| buttonProps | object | false | Properties of upload button | |
| useOnlinePreview | bool | false | Preview using the online preview service, otherwise the behavior of calling the browser to open the link by default |
All the remaining componentsProps will be passed to the component root element(Upload)。
JS API
The interface obtained through formApi.getFieldApi() is as follows:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | The root DOM element of the component |