mirror of https://github.com/layui/layer
修正IE低版本中,prompt弹窗对area参数无效的问题
parent
7497645b95
commit
3d5408b4d3
|
@ -944,8 +944,9 @@ layer.prompt = function(options, yes){
|
||||||
|
|
||||||
if(typeof options === 'function') yes = options;
|
if(typeof options === 'function') yes = options;
|
||||||
|
|
||||||
|
var area = 'auto';
|
||||||
if(options.area){
|
if(options.area){
|
||||||
var area = options.area;
|
area = options.area;
|
||||||
style = 'style="width: '+ area[0] +'; height: '+ area[1] + ';"';
|
style = 'style="width: '+ area[0] +'; height: '+ area[1] + ';"';
|
||||||
delete options.area;
|
delete options.area;
|
||||||
}
|
}
|
||||||
|
@ -960,6 +961,7 @@ layer.prompt = function(options, yes){
|
||||||
type: 1
|
type: 1
|
||||||
,btn: ['确定','取消']
|
,btn: ['确定','取消']
|
||||||
,content: content
|
,content: content
|
||||||
|
,area:area
|
||||||
,skin: 'layui-layer-prompt' + skin('prompt')
|
,skin: 'layui-layer-prompt' + skin('prompt')
|
||||||
,maxWidth: win.width()
|
,maxWidth: win.width()
|
||||||
,success: function(layero){
|
,success: function(layero){
|
||||||
|
|
Loading…
Reference in New Issue