|
@@ -196,13 +196,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 宽度
|
|
|
- onWidth(newProp, oldProp, column) {
|
|
|
- console.log(column,'column');
|
|
|
+ onWidth({ column}) {
|
|
|
this.innerColumns = this.innerColumns.map(({ item, attr }) => ({
|
|
|
attr,
|
|
|
item: {
|
|
|
...item,
|
|
|
- width: item.key === column.property ? newProp : item.width,
|
|
|
+ width: item.key === column.property ? column.resizeWidth : item.width,
|
|
|
},
|
|
|
}));
|
|
|
if (this.$props.storageKey) {
|
|
@@ -355,6 +354,7 @@ export default {
|
|
|
:summary-method="getSummaries"
|
|
|
highlight-current-row
|
|
|
@row-click="onRowClick"
|
|
|
+ @header-dragend="onWidth"
|
|
|
@selection-change="onSelectionChange"
|
|
|
:header-row-style="{
|
|
|
color: '#515a6e' ,
|