element ui upload picture usage_javascript_EUV-DevPress官方社区
actionRequired parameter, upload addressstring——headersSet upload request headerobject——multipleSupport multiple filesboolean——dataAdditional parameters attached when uploadingobject——nameUploaded file field namestring—filewith-credentialsSupport sending cookie credential informationboolean—falseshow-file-listWhether to display the list of uploaded filesboolean—truedragEnable drag uploadboolean—falseacceptAccept Uploaded file type (this parameter is invalid in thumbnail mode)string——on-previewClick the hook when clicking the uploaded file in the file listfunction(file)——on-removeHook when removing files from file listfunction(file, fileList)——on-successHook when the file is uploaded successfullyfunction(response, file, fileList)——on-errorHook when file upload failsfunction(err, file, fileList)——on-progressHook when uploading filesfunction(event, file, fileList)——on-changeThe hook when the file status changes will be called when adding a file, uploading successfully and uploading failedfunction(file, fileList)——before-uploadThe hook before uploading the file. The parameter is the uploaded file. If false is returned or Promise is returned and reject ed, the upload will be stopped.function(file)——before-removeDelete the hook before the file. The parameters are uploaded files and file list. If false is returned or Promise is returned and reject ed, the deletion will be stopped.function(file, fileList)——list-typeType of file liststringtext/picture/picture-cardtextauto-uploadWhether to upload the file immediately after selecting itboolean—truefile-listList of uploaded files, for example: [{name: ‘food.jpg’, url: ‘https://xxx.cdn.com/xxx.jpg ‘}]array—[]http-requestOverride the default upload behavior, and you can customize the implementation of uploadfunction——disabledDisableboolean—falselimitMaximum number of uploads allowednumber——on-exceedHook when the number of files exceeds the limitfunction(files, fileList)—-