This commit is contained in:
Z
2019-09-10 14:16:09 -05:00
parent ee287d8314
commit 04a3e15f9c
6 changed files with 43 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<div>
<input ref="excel-upload-input" class="excel-upload-input" type="file" accept=".xlsx, .xls" @change="handleClick">
<div class="drop" @drop="handleDrop" @dragover="handleDragover" @dragenter="handleDragover">
Drop excel file here or
Drop file here or
<el-button :loading="loading" style="margin-left:16px;" size="mini" type="primary" @click="handleUpload">
Browse
</el-button>
@@ -113,6 +113,7 @@ export default {
},
isExcel(file) {
return /\.(xlsx|xls|csv)$/.test(file.name)
// return true
}
}
}