| | |
| | | <!-- <div class="close" @click="closeHandle">x</div> --> |
| | | <slot :files="files" :file-list="fileList" :started="started"> |
| | | <uploader-unsupport></uploader-unsupport> |
| | | <uploader-drop> |
| | | <!-- <p>拖动文件到该区域上传</p> --> |
| | | <UploaderDrop> |
| | | <p>拖动文件到该区域上传</p> |
| | | |
| | | <uploader-btn >选择文件</uploader-btn> |
| | | <uploader-btn :directory="true" >选择文件夹</uploader-btn> |
| | | </uploader-drop> |
| | | </UploaderDrop> |
| | | <uploader-list></uploader-list> |
| | | </slot> |
| | | </div> |
| | |
| | | uploader.on('fileRemoved', this.fileRemoved) |
| | | uploader.on('filesSubmitted', this.filesSubmitted) |
| | | }, |
| | | |
| | | mounted() { |
| | | }, |
| | | destroyed() { |
| | | //this.unBindUploader(); |
| | | const uploader = this.uploader |
| | | uploader.off('catchAll', this.allEvent) |
| | | uploader.off(FILE_ADDED_EVENT, this.fileAdded) |
| | |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | |
| | | </style> |