quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
157 lines (131 loc) • 3.23 kB
JSON
{
"mixins": [ "composables/private/use-file", "components/uploader/xhr-uploader-plugin" ],
"meta": {
"docsUrl": "https://v2.quasar.dev/vue-components/uploader"
},
"props": {
"label": {
"type": "String",
"desc": "Label for the uploader",
"examples": ["Upload photo here"],
"category": "content"
},
"color": {
"extends": "color"
},
"text-color": {
"extends": "text-color"
},
"dark": {
"extends": "dark"
},
"square": {
"extends": "square"
},
"flat": {
"extends": "flat"
},
"bordered": {
"extends": "bordered"
},
"no-thumbnails": {
"type": "Boolean",
"desc": "Don't display thumbnails for image files",
"category": "content"
},
"auto-upload": {
"type": "Boolean",
"desc": "Upload files immediately when added",
"category": "behavior"
},
"hide-upload-btn": {
"type": "Boolean",
"desc": "Don't show the upload button",
"category": "behavior"
},
"disable": {
"extends": "disable"
},
"readonly": {
"extends": "readonly"
}
},
"slots": {
"header": {
"desc": "Slot for custom header; Scope is the QUploader instance itself",
"scope": {
"...self": {
"type": "Component",
"tsType": "QUploader",
"desc": "QUploader instance"
}
}
},
"list": {
"desc": "Slot for custom list; Scope is the QUploader instance itself",
"scope": {
"...self": {
"type": "Component",
"tsType": "QUploader",
"desc": "QUploader instance"
}
}
}
},
"events": {
"added": {
"desc": "Emitted when files are added into the list",
"params": {
"files": {
"type": "Array",
"desc": "Array of files that were added",
"__exemption": ["examples"]
}
}
},
"removed": {
"desc": "Emitted when files are removed from the list",
"params": {
"files": {
"type": "Array",
"desc": "Array of files that were removed",
"__exemption": ["examples"]
}
}
},
"start": {
"desc": "Started working"
},
"finish": {
"desc": "Finished working (regardless of success or fail)"
}
},
"methods": {
"upload": {
"desc": "Start uploading (same as clicking the upload button)"
},
"abort": {
"desc": "Abort upload of all files (same as clicking the abort button)"
},
"reset": {
"desc": "Resets uploader to default; Empties queue, aborts current uploads"
},
"removeUploadedFiles": {
"desc": "Removes already uploaded files from the list"
},
"removeQueuedFiles": {
"desc": "Remove files that are waiting for upload to start (same as clicking the left clear button)"
},
"removeFile": {
"desc": "Remove specified file from the queue",
"params": {
"file": {
"type": "Object",
"desc": "File to remove (instance of File)",
"required": true,
"__exemption": ["examples"]
}
}
}
}
}