修复 table 在 IE 下同时开启多行模式和单元格编辑时,输入框高度异常的问题 (#1387)

* 修复 table 在 IE 下同时开启多行模式和单元格编辑时,输入框高度异常的问题

* 删除不必要的逗号

* update table.js

* 优化 table 多行相关样式兼容 IE 时的小细节

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
pull/1391/head
morning-star 2023-10-07 17:07:15 +08:00 committed by GitHub
parent 29eeb40cf1
commit d9326f039b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -572,8 +572,13 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
'{'+ lineStyle +'}',
'.layui-table-cell{height: auto; max-height: '+ cellMaxHeight +'; white-space: normal; text-overflow: clip;}',
'> td:hover > .layui-table-cell{overflow: auto;}'
], function(i, val) {
text.push(trClassName + ' ' + val);
].concat(
device.ie ? [
'.layui-table-edit{height: '+ cellMaxHeight +';}',
'td[data-edit]:hover:after{height: '+ cellMaxHeight +';}'
] : []
), function(i, val) {
val && text.push(trClassName + ' ' + val);
});
})(options.lineStyle);