1、基本代码
<template>
<div id="drop-area" :class="dropActive ? 'drop-active' : ''">
</div>
</template>
<script>
export default {
name:'index',
data(){
return {
dropActive:false
}
},
methods:{
dropEvent(e) {
this.dropActive = false
e