mirror of https://github.com/layui/layui
修复layer closeBtn2的样式问题,修复拖拽功能对鼠标右键功能的影响,去除prompt弹出空值无法确认的限制
parent
3f49bc9fc2
commit
cc26b59498
|
@ -59,7 +59,8 @@ html #layuicss-layer{display: none; position: absolute; width: 1989px;}
|
|||
.layui-layer-setwin .layui-layer-maxmin:after{z-index: 0; margin: -5px 0 0 -1px;}
|
||||
.layui-layer-setwin .layui-layer-close{cursor: pointer;}
|
||||
.layui-layer-setwin .layui-layer-close:hover{opacity:0.7;}
|
||||
.layui-layer-setwin .layui-layer-close2{position:absolute; right: -13px; top: -13px; padding: 3px; margin-left:0; color: #777; *right:-18px; _display:none;}
|
||||
.layui-layer-setwin .layui-layer-close2{position:absolute; right: -28px; top: -28px; color: #fff; background-color: #787878; padding: 3px; border: 3px solid; width: 18px; height: 18px; font-size: 18px; font-weight: bolder; border-radius: 50%; margin-left: 0; *right:-18px; _display:none;}
|
||||
.layui-layer-setwin .layui-layer-close2:hover{opacity: unset; background-color: #3888f6;}
|
||||
|
||||
/* 按钮栏 */
|
||||
.layui-layer-btn{text-align: right; padding: 0 15px 12px; pointer-events: auto; user-select: none; -webkit-user-select: none;}
|
||||
|
|
|
@ -668,6 +668,7 @@ Class.pt.move = function(){
|
|||
|
||||
//按下拖动元素
|
||||
moveElem.on('mousedown', function(e){
|
||||
if (e.button) {return;} // 不是左键不处理
|
||||
var othis = $(this)
|
||||
,dict = {};
|
||||
|
||||
|
@ -1236,9 +1237,7 @@ layer.prompt = function(options, yes){
|
|||
,resize: false
|
||||
,yes: function(index){
|
||||
var value = prompt.val();
|
||||
if(value === ''){
|
||||
prompt.focus();
|
||||
} else if(value.length > (options.maxlength||500)) {
|
||||
if(value.length > (options.maxlength||500)) {
|
||||
layer.tips('最多输入'+ (options.maxlength || 500) +'个字数', prompt, {tips: 1});
|
||||
} else {
|
||||
yes && yes(value, index, prompt);
|
||||
|
|
Loading…
Reference in New Issue