mirror of
https://gitee.com/layui/layui.git
synced 2025-12-26 14:15:47 +08:00
Merge branch 'layui:2.x' into 2.x
This commit is contained in:
@@ -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); // 是否自动触发上传
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user