Groundnet Scan

This commit is contained in:
portree_kid
2019-12-17 21:10:58 +01:00
parent b81348bdb8
commit 6adffb8878
29 changed files with 1744 additions and 1496 deletions
@@ -0,0 +1,40 @@
<template>
<label class="directory-select">
<div class="select-button">
...
</div>
<input type="file" @change="handleFileChange" webkitdirectory directory/>
</label>
</template>
<script>
export default {
props: {
value: File
},
methods: {
handleFileChange (e) {
this.$emit('input', e.target.files[0])
}
}
}
</script>
<style scoped>
.directory-select > .select-button {
padding: 0rem;
color: white;
background-color: #2EA169;
border-radius: .3rem;
text-align: center;
font-weight: bold;
}
.directory-select > input[type="file"] {
display: none;
}
</style>