From 5841f69e0f88362c3e3690392c743b75353fd0a2 Mon Sep 17 00:00:00 2001 From: "Yii.Guxing" Date: Fri, 29 Sep 2017 11:10:31 -0500 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtable=E7=9A=84tips=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#68)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lay/modules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lay/modules/table.js b/src/lay/modules/table.js index bc23d31..4ce759c 100644 --- a/src/lay/modules/table.js +++ b/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([ '