修复子列有隐藏的情况下出现列宽不正确的问题
This commit is contained in:
		
							parent
							
								
									a69102637b
								
							
						
					
					
						commit
						9d689b3b89
					
				@ -1914,6 +1914,7 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
 | 
			
		||||
      // 找到它的子列所在cols的下标
 | 
			
		||||
      var i2 = i1 + (parseInt(item2.rowspan) || 1);
 | 
			
		||||
      layui.each(cols[i2], function (i22, item22) {
 | 
			
		||||
        if (item22.hide) return;
 | 
			
		||||
        //如果子列已经被标注为{PARENT_COL_INDEX},或者子列累计 colspan 数等于父列定义的 colspan,则跳出当前子列循环
 | 
			
		||||
        if (item22.PARENT_COL_INDEX || (childIndex >= 1 && childIndex == (item2.colspan || 1))) return;
 | 
			
		||||
        item22.PARENT_COL_INDEX = index;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user