修正IE低版本中,prompt弹窗对area参数无效的问题

pull/47/head
zhaojinghao 2017-03-09 12:37:43 +08:00 committed by GitHub
parent 7497645b95
commit 3d5408b4d3
1 changed files with 3 additions and 1 deletions

View File

@ -944,8 +944,9 @@ layer.prompt = function(options, yes){
if(typeof options === 'function') yes = options;
var area = 'auto';
if(options.area){
var area = options.area;
area = options.area;
style = 'style="width: '+ area[0] +'; height: '+ area[1] + ';"';
delete options.area;
}
@ -960,6 +961,7 @@ layer.prompt = function(options, yes){
type: 1
,btn: ['确定','取消']
,content: content
,area:area
,skin: 'layui-layer-prompt' + skin('prompt')
,maxWidth: win.width()
,success: function(layero){