mirror of https://github.com/layui/layer
Merge 828adf7f0b
into 7baa8a04a9
commit
fabea57866
|
@ -1044,8 +1044,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;
|
||||
}
|
||||
|
@ -1060,6 +1061,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){
|
||||
|
|
Loading…
Reference in New Issue