mirror of
https://github.com/directus/directus.git
synced 2026-01-30 19:37:55 -05:00
* move component docs to documentation * update app docs tables for components * update docs * Add components to docs sidebar * fix generated tables * fix tables * rename transitions * update tables * update nested components * update tables * update tables * update tables * update v-table table * add basic documentation to each component * remove all stories of storybook * add missing documentation * undate tables * update tables * update docs sidebar * update app docs * remove unused references * add general readme * update docs * make reference titiles smaller * add reference tag * improve docs * update order of tabs in sidebar * remove all readmes and stories from interfaces/displays * Cleanup menu * Remove storybook Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
26 lines
962 B
Markdown
26 lines
962 B
Markdown
# Upload
|
|
|
|
Allows you to easily make files uploadable using this component.
|
|
|
|
```html
|
|
<v-upload @input="onUpload"></v-upload>
|
|
```
|
|
|
|
## Reference
|
|
|
|
#### Props
|
|
|
|
| Prop | Description | Default | Type |
|
|
| -------------- | ------------------------------------------- | ----------- | --------- |
|
|
| `multiple` | Allow to upload multiple files | `false` | `Boolean` |
|
|
| `preset` | Preset values of the uploaded file | `() => ({)` | `Object` |
|
|
| `file-id` | The id of the uploaded file | `null` | `String` |
|
|
| `from-url` | Allow uploading files from an url | `false` | `Boolean` |
|
|
| `from-library` | Allow selecting files from the file library | `false` | `Boolean` |
|
|
|
|
#### Events
|
|
|
|
| Event | Description | Value |
|
|
| ------- | ----------------------------- | ----- |
|
|
| `input` | When files have been uploaded | |
|