diff --git a/src/layer.js b/src/layer.js index e906069e..882aa3f6 100644 --- a/src/layer.js +++ b/src/layer.js @@ -995,10 +995,10 @@ layer.prompt = function(options, yes){ ,content: content ,skin: 'layui-layer-prompt' + skin('prompt') ,maxWidth: win.width() - ,success: function(layero){ + ,success: function(layero,index){ prompt = layero.find('.layui-layer-input'); prompt.focus(); - typeof success === 'function' && success(layero); + typeof success === 'function' && success(layero,index); } ,resize: false ,yes: function(index){