forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQUploaderBase.json
More file actions
140 lines (116 loc) · 2.71 KB
/
QUploaderBase.json
File metadata and controls
140 lines (116 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"mixins": [ "mixins/file" ],
"meta": {
"docsUrl": "https://v1.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"
},
"max-files": {
"addedIn": "v1.11.2"
}
},
"scopedSlots": {
"header": {
"desc": "Slot for custom header; Scope is the QUploader instance itself",
"__exemption": ["scope"]
},
"list": {
"desc": "Slot for custom list; Scope is the QUploader instance itself",
"__exemption": ["scope"]
}
},
"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": {
"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"]
}
}
}
}
}