fix JTable拖拽问题
This commit is contained in:
@@ -325,8 +325,12 @@ export default {
|
||||
} else {
|
||||
this.selfScroll = scroll
|
||||
}
|
||||
// 解决拖拽重置其他单元格宽度的问题
|
||||
const colIndex = this.resultColumns.findIndex(tt => getKey(tt) === key)
|
||||
const nowResultColumns = cloneDeep(this.resultColumns)
|
||||
nowResultColumns.splice(colIndex, 1, col)
|
||||
// 修改列宽后,更新表格字段
|
||||
this.setResultColumns(columns)
|
||||
this.setResultColumns(nowResultColumns)
|
||||
}
|
||||
// 停止拖拽监听
|
||||
const onDragstop = () => {
|
||||
|
||||
Reference in New Issue
Block a user