Skip to content

Commit

Permalink
Merge pull request #91 from zjpzjp/patch-1
Browse files Browse the repository at this point in the history
加入文件 的 accpet 支持,用于点击上传按钮后 打开系统文件框时, 默认的文件筛选
  • Loading branch information
贤心 committed Apr 2, 2018
2 parents ea0c76e + 7528669 commit 477ab39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lay/modules/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ layui.define('layer' , function(exports){
var that = this
,options = that.config
,elemFile = that.elemFile = $([
'<input class="'+ ELEM_FILE +'" type="file" name="'+ options.field +'"'
'<input class="'+ ELEM_FILE +'" type="file" accept="'+ options.domAccept +'" name="'+ options.field +'"'
,(options.multiple ? ' multiple' : '')
,'>'
].join(''))
Expand Down

0 comments on commit 477ab39

Please sign in to comment.