update
This commit is contained in:
parent
08e4bf4191
commit
33f79e5ab8
@ -1007,7 +1007,7 @@ select.layui-table-edit{padding: 0 0 0 10px; border-color: #d2d2d2;}
|
|||||||
.layui-table-grid-down:hover{background-color: #fbfbfb;}
|
.layui-table-grid-down:hover{background-color: #fbfbfb;}
|
||||||
|
|
||||||
body .layui-table-tips .layui-layer-content{background: none; padding: 0; box-shadow: 0 1px 6px rgba(0,0,0,.12);}
|
body .layui-table-tips .layui-layer-content{background: none; padding: 0; box-shadow: 0 1px 6px rgba(0,0,0,.12);}
|
||||||
.layui-table-tips-main{margin: -44px 0 0 -1px; max-height: 150px; padding: 8px 15px; font-size: 14px; overflow-y: scroll; background-color: #fff; color: #5F5F5F;}
|
.layui-table-tips-main{margin: -49px 0 0 -1px; max-height: 150px; padding: 8px 15px; font-size: 14px; overflow-y: scroll; background-color: #fff; color: #5F5F5F;}
|
||||||
.layui-table-tips-c{position: absolute; right: -3px; top: -13px; width: 20px; height: 20px; padding: 3px; cursor: pointer; background-color: #5F5F5F; border-radius: 50%; color: #fff;}
|
.layui-table-tips-c{position: absolute; right: -3px; top: -13px; width: 20px; height: 20px; padding: 3px; cursor: pointer; background-color: #5F5F5F; border-radius: 50%; color: #fff;}
|
||||||
.layui-table-tips-c:hover{background-color: #777;}
|
.layui-table-tips-c:hover{background-color: #777;}
|
||||||
.layui-table-tips-c:before{position: relative; right: -2px;}
|
.layui-table-tips-c:before{position: relative; right: -2px;}
|
||||||
|
@ -1829,7 +1829,10 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
|
|||||||
|
|
||||||
if(hide){
|
if(hide){
|
||||||
othis.find('.layui-table-grid-down').remove();
|
othis.find('.layui-table-grid-down').remove();
|
||||||
} else if(elemCell.prop('scrollWidth') > elemCell.outerWidth() || elemCell.find("br").length > 0){
|
} else if((
|
||||||
|
elemCell.prop('scrollWidth') > elemCell.outerWidth() ||
|
||||||
|
elemCell.find("br").length > 0
|
||||||
|
) && !options.lineStyle){
|
||||||
if(elemCell.find('.'+ ELEM_GRID_DOWN)[0]) return;
|
if(elemCell.find('.'+ ELEM_GRID_DOWN)[0]) return;
|
||||||
othis.append('<div class="'+ ELEM_GRID_DOWN +'"><i class="layui-icon layui-icon-down"></i></div>');
|
othis.append('<div class="'+ ELEM_GRID_DOWN +'"><i class="layui-icon layui-icon-down"></i></div>');
|
||||||
}
|
}
|
||||||
@ -1842,7 +1845,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
|
|||||||
,elemCell = td.children(ELEM_CELL);
|
,elemCell = td.children(ELEM_CELL);
|
||||||
|
|
||||||
that.tipsIndex = layer.tips([
|
that.tipsIndex = layer.tips([
|
||||||
'<div class="layui-table-tips-main" style="margin-top: -'+ (elemCell.height() + 16) +'px;'+ function(){
|
'<div class="layui-table-tips-main" style="margin-top: -'+ (elemCell.height() + 23) +'px;'+ function(){
|
||||||
if(options.size === 'sm'){
|
if(options.size === 'sm'){
|
||||||
return 'padding: 4px 15px; font-size: 12px;';
|
return 'padding: 4px 15px; font-size: 12px;';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user