Browse Source

修复table的tips问题 (#68)

pull/49/merge
Yii.Guxing 7 years ago committed by 贤心
parent
commit
5841f69e0f
  1. 2
      src/lay/modules/table.js

2
src/lay/modules/table.js

@ -841,7 +841,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form'], function(exports){
}
//如果出现省略,则可查看更多
if(elemCell.prop('scrollWidth') > elemCell.outerWidth()){
if(Math.round(elemCell.prop('scrollWidth')) > Math.round(elemCell.outerWidth())){
that.tipsIndex = layer.tips([
'<div class="layui-table-tips-main" style="margin-top: -'+ (elemCell.height() + 16) +'px;'+ function(){
if(config.size === 'sm'){

Loading…
Cancel
Save