mirror of
https://gitee.com/layui/layui.git
synced 2025-12-20 03:49:54 +08:00
table 修复一些问题以及加强和并列表头的宽度自适应
This commit is contained in:
@@ -644,7 +644,6 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
|
|||||||
if (options.cols.length > 1) {
|
if (options.cols.length > 1) {
|
||||||
for (var i = options.cols.length - 1; i >= 0; i--) {
|
for (var i = options.cols.length - 1; i >= 0; i--) {
|
||||||
// 自下向上处理合并表头的宽度
|
// 自下向上处理合并表头的宽度
|
||||||
debugger;
|
|
||||||
layui.each(that.layHeader.first().find('tr').eq(i).find('>th>div.laytable-cell-group'), function (i1, item1) {
|
layui.each(that.layHeader.first().find('tr').eq(i).find('>th>div.laytable-cell-group'), function (i1, item1) {
|
||||||
item1 = $(item1);
|
item1 = $(item1);
|
||||||
var thElem = item1.parent();
|
var thElem = item1.parent();
|
||||||
|
|||||||
Reference in New Issue
Block a user