File tree Expand file tree Collapse file tree 3 files changed +36
-3
lines changed 
packages/ve-table/src/column-resizer Expand file tree Collapse file tree 3 files changed +36
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,18 @@ Vx.x.x(TPL)
77-    Style changes
88-    Dependencies Changes
99
10+ V2.21.9
11+ 
12+ ### Bug Fixes  
13+ 
14+ -    Fix the bug that the console warns "Resizer column needs set column width" when the column width dragging function is grouped in the header
15+ 
16+ --- 
17+ 
18+ ### Bug Fixes  
19+ 
20+ -    修复列宽拖动功能在表头分组时,控制台警告提示“Resizer column needs set column width”的问题
21+ 
1022V2.21.8
1123
1224### Breaking Changes  
Original file line number Diff line number Diff line change 11{
22    "name" : " vue-easytable"  ,
3-     "version" : " 2.21.8 "  ,
3+     "version" : " 2.21.9 "  ,
44    "main" : " libs/main.js"  ,
55    "description" : " Vue table component"  ,
66    "keywords" : [
136136    "docVersions" : [
137137        {
138138            "value" : " /vue-easytable"  ,
139-             "label" : " 2.21.8 " 
139+             "label" : " 2.21.9 " 
140140        },
141141        {
142142            "value" : " /vue-easytable/2.20.2"  ,
Original file line number Diff line number Diff line change @@ -108,7 +108,12 @@ export default {
108108
109109                const  col  =  this . colgroups . find ( ( x )  =>  x . key  ===  column . key ) ; 
110110
111-                 if  ( col  &&  col . _realTimeWidth )  { 
111+                 // 表头分组,不支持分组表头列宽拖动 
112+                 if  ( ! col )  { 
113+                     return  false ; 
114+                 } 
115+ 
116+                 if  ( col . _realTimeWidth )  { 
112117                    const  target  =  event . target ; 
113118                    const  cellRect  =  target . getBoundingClientRect ( ) ; 
114119                    const  {  height,  left,  top }  =  cellRect ; 
@@ -123,6 +128,22 @@ export default {
123128                }  else  { 
124129                    console . warn ( "Resizer column needs set column width" ) ; 
125130                } 
131+ 
132+                 // if (col && col._realTimeWidth) { 
133+                 //     const target = event.target; 
134+                 //     const cellRect = target.getBoundingClientRect(); 
135+                 //     const { height, left, top } = cellRect; 
136+ 
137+                 //     this.columnResizerRect.left = 
138+                 //         left + col._realTimeWidth - tableContainerLeft; 
139+                 //     this.columnResizerRect.top = top - tableContainerTop; 
140+                 //     this.columnResizerRect.height = height; 
141+ 
142+                 //     this.currentResizingColumn = col; 
143+                 //     this.columnResizerStartX = left + col._realTimeWidth; 
144+                 // } else { 
145+                 //     console.warn("Resizer column needs set column width"); 
146+                 // } 
126147            } 
127148        } , 
128149
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments