如何删除说明文字"在此处删除文件或点击上传。"什么时候上传文件?我已经在下面展示了一些屏幕截图。
.dropzone {
border: none !important;
border-radius: 5px;
padding: 0 !important;
background: white !important;
min-height: 200px !important;
width: 100%;
margin-bottom: 20px;
line-height: 200px;
vertical-align: middle;
color: #263238;
text-align: center !important;
}
$(document).bind('drop dragover', function (e) {
e.preventDefault();
});
Dropzone.autoDiscover = false;
var myvue = new Vue({
el: 'body',
ready: function () {
var dropzone = new Dropzone(document.body, {
url: "/api/import",
previewsContainer: ".dropzone",
clickable: ".dropzone",
init: function () {
this.on("success", function (file, response) {
console.log(file);
console.log(response);
});
},
paramName: "file", // The name that will be used to transfer the file
maxFilesize: 4, // MB
acceptedFiles: ".csv",
uploadMultiple: false,
maxFiles: 1,
headers: {
'X-CSRF-Token': $('meta[name="token"]').attr('content')
}
});
}
});