fix(table): 优化单元格展开按钮的显示判断 (#1728)

pull/1734/head
morning-star 2024-03-28 23:37:25 +08:00 committed by GitHub
parent 54085a46d0
commit 98a5aac01e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2544,7 +2544,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
if(hide){
othis.find('.layui-table-grid-down').remove();
} else if((
elemCell.prop('scrollWidth') > elemCell.outerWidth() ||
elemCell.prop('scrollWidth') > elemCell.prop('clientWidth') ||
elemCell.find("br").length > 0
) && !options.lineStyle){
if(elemCell.find('.'+ ELEM_GRID_DOWN)[0]) return;