Merge pull request #1 from docnoe/docnoe-patch-1

Adds slot for user to add custom html to input
master
Johannes Noe 9 years ago committed by GitHub
commit decbd7bc33

@ -1,3 +1,11 @@
<template>
<label class="file-uploads" :class="mode === 'html5' ? 'file-uploads-html5' : 'file-uploads-html4'">
<span>{{title}}</span>
<slot></slot>
<input-file></input-file>
</label>
</template>
<style>
.file-uploads {
overflow: hidden;
@ -140,22 +148,6 @@ export default {
this.files.splice(0, this.files.length);
},
render (h) {
return (
<label class={{
'file-uploads': true,
'file-uploads-html5': this.mode == 'html5',
'file-uploads-html4': this.mode == 'html4'
}} >
<span>{this.title}</span>
<input-file></input-file>
</label>
)
},
watch: {
drop(value) {
this._drop(value);

Loading…
Cancel
Save