File tree 3 files changed +36
-3
lines changed
packages/ve-table/src/column-resizer
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)
7
7
- Style changes
8
8
- Dependencies Changes
9
9
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
+
10
22
V2.21.8
11
23
12
24
### Breaking Changes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-easytable" ,
3
- "version" : " 2.21.8 " ,
3
+ "version" : " 2.21.9 " ,
4
4
"main" : " libs/main.js" ,
5
5
"description" : " Vue table component" ,
6
6
"keywords" : [
136
136
"docVersions" : [
137
137
{
138
138
"value" : " /vue-easytable" ,
139
- "label" : " 2.21.8 "
139
+ "label" : " 2.21.9 "
140
140
},
141
141
{
142
142
"value" : " /vue-easytable/2.20.2" ,
Original file line number Diff line number Diff line change @@ -108,7 +108,12 @@ export default {
108
108
109
109
const col = this . colgroups . find ( ( x ) => x . key === column . key ) ;
110
110
111
- if ( col && col . _realTimeWidth ) {
111
+ // 表头分组,不支持分组表头列宽拖动
112
+ if ( ! col ) {
113
+ return false ;
114
+ }
115
+
116
+ if ( col . _realTimeWidth ) {
112
117
const target = event . target ;
113
118
const cellRect = target . getBoundingClientRect ( ) ;
114
119
const { height, left, top } = cellRect ;
@@ -123,6 +128,22 @@ export default {
123
128
} else {
124
129
console . warn ( "Resizer column needs set column width" ) ;
125
130
}
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
+ // }
126
147
}
127
148
} ,
128
149
You can’t perform that action at this time.
0 commit comments