【发布时间】:2021-08-03 19:30:35
【问题描述】:
我有以下...
this.dropzone = new Dropzone(
this.$refs.dropzoneElement,
{
url: this.url,
acceptedFiles: "application/pdf",
},
);
this.dropzone.on("dragover", ()=>{
this.isHovered = true;
});
this.dropzone.on("success", (file)=>{
this.$emit("success", file);
});
this.dropzone.on("addedfile", (file)=>{
this.$emit("started", file);
this.isHovered = false;
});
悬停只会改变边框颜色。如果不允许文件类型,我想将边框颜色更改为红色。我在输入事件中找不到任何可以为我提供此信息的内容。有没有办法做到这一点?
【问题讨论】: