Browse Source

Merge branch 'layui:2.x' into 2.x

pull/1309/head
sunxiaobin89 1 year ago committed by GitHub
parent
commit
5dec48122f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/modules/upload.js

3
src/modules/upload.js

@ -588,8 +588,11 @@ layui.define(['lay','layer'], function(exports){
that.elemFile.off('upload.change').on('upload.change', function(){
var files = this.files || [];
if(files.length === 0) return;
extendAttrs.call(this);
setChooseFile(files);
options.auto ? that.upload() : setChooseText(files); // 是否自动触发上传
});

Loading…
Cancel
Save