You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
499 B
23 lines
499 B
<template>
|
|
<input
|
|
type="file"
|
|
:name="$parent.name"
|
|
:id="$parent.id || $parent.name"
|
|
:accept="$parent.accept"
|
|
@change="change"
|
|
:webkitdirectory="$parent.directory && $parent.mode === 'html5'"
|
|
:directory="$parent.directory && $parent.mode === 'html5'"
|
|
:multiple="$parent.multiple && $parent.mode === 'html5'"
|
|
/>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
methods: {
|
|
change(e) {
|
|
this.$destroy()
|
|
this.$parent.addInputFile(e.target)
|
|
}
|
|
}
|
|
}
|
|
</script>
|