mirror of https://github.com/layui/layer
add .layui-layer-prompt > .layui-layer-note
parent
eceeaaea7b
commit
493cc4a639
|
@ -931,7 +931,9 @@ layer.prompt = function(options, yes){
|
|||
style = 'style="width: '+ area[0] +'; height: '+ area[1] + ';"';
|
||||
delete options.area;
|
||||
}
|
||||
var prompt, content = options.formType == 2 ? '<textarea class="layui-layer-input"' + style +'>' + (options.value||'') +'</textarea>' : function(){
|
||||
|
||||
var prompt, content = options.note ? '<div class="layui-layer-note">'+options.note+'</div>' : '';
|
||||
content += options.formType == 2 ? '<textarea class="layui-layer-input"' + style +'>' + (options.value||'') +'</textarea>' : function(){
|
||||
return '<input type="'+ (options.formType == 1 ? 'password' : 'text') +'" class="layui-layer-input" value="'+ (options.value||'') +'">';
|
||||
}();
|
||||
|
||||
|
|
|
@ -142,6 +142,7 @@ html #layuicss-skinlayercss{display: none; position: absolute; width: 1989px;}
|
|||
.layui-layer-iconext{background:url(icon-ext.png) no-repeat;}
|
||||
|
||||
/* prompt模式 */
|
||||
.layui-layer-prompt .layui-layer-note { margin-top: -12px; margin-bottom: 6px; }
|
||||
.layui-layer-prompt .layui-layer-input{display:block; width:220px; height:30px; margin:0 auto; line-height:30px; padding: 0 5px; border: 1px solid #ccc; box-shadow: 1px 1px 5px rgba(0,0,0,.1) inset; color:#333;}
|
||||
.layui-layer-prompt textarea.layui-layer-input{width:300px; height:100px; line-height:20px;}
|
||||
.layui-layer-prompt .layui-layer-content{padding: 20px;}
|
||||
|
|
Loading…
Reference in New Issue