pull/47/merge
zhaojinghao 2024-09-26 02:05:12 +00:00 committed by GitHub
commit fabea57866
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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){