We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6a940 commit cdfaf3fCopy full SHA for cdfaf3f
src/FileUpload.vue
@@ -1,3 +1,11 @@
1
+<template>
2
+ <label class="file-uploads" :class="mode === 'html5' ? 'file-uploads-html5' : 'file-uploads-html4'">
3
+ <span>{{title}}</span>
4
+ <slot></slot>
5
+ <input-file></input-file>
6
+ </label>
7
+</template>
8
+
9
<style>
10
.file-uploads {
11
overflow: hidden;
@@ -140,22 +148,6 @@ export default {
140
148
this.files.splice(0, this.files.length);
141
149
},
142
150
143
- render (h) {
144
- return (
145
- <label class={{
146
- 'file-uploads': true,
147
- 'file-uploads-html5': this.mode == 'html5',
- 'file-uploads-html4': this.mode == 'html4'
- }} >
- <span>{this.title}</span>
151
- <input-file></input-file>
152
- </label>
153
- )
154
- },
155
-
156
157
158
159
watch: {
160
drop(value) {
161
this._drop(value);
0 commit comments