[update] 解决标准表格调整列宽会触发排序的问题
This commit is contained in:
@@ -256,7 +256,8 @@ export default {
|
||||
cell: this.initDrag(this.columns)
|
||||
}
|
||||
},
|
||||
selfScroll: {}
|
||||
selfScroll: {},
|
||||
resizing: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -457,6 +458,7 @@ export default {
|
||||
}
|
||||
// 开始拖拽监听
|
||||
const onDragging = (x) => {
|
||||
this.resizing = true
|
||||
const beforeWidth = col.width
|
||||
const scroll = cloneDeep(this.scroll) || {}
|
||||
draggingState[key] = 0
|
||||
@@ -484,6 +486,9 @@ export default {
|
||||
// 停止拖拽监听
|
||||
const onDragstop = () => {
|
||||
draggingState[key] = thDom.getBoundingClientRect().width
|
||||
setTimeout(() => {
|
||||
this.resizing = false
|
||||
}, 200)
|
||||
}
|
||||
// 控制最小拖拽宽度
|
||||
const onDrag = (x) => {
|
||||
|
||||
Reference in New Issue
Block a user