diff --git a/jero-web/src/components/jero/JTable.vue b/jero-web/src/components/jero/JTable.vue index 8428c4c0..ba6b5564 100644 --- a/jero-web/src/components/jero/JTable.vue +++ b/jero-web/src/components/jero/JTable.vue @@ -255,7 +255,7 @@ export default { return {children} } // 开始拖拽监听 - const onDrag = (x) => { + const onDragging = (x) => { const beforeWidth = col.width const scroll = cloneDeep(this.scroll) || {} draggingState[key] = 0 @@ -280,6 +280,10 @@ export default { const onDragstop = () => { draggingState[key] = thDom.getBoundingClientRect().width } + // 控制最小拖拽宽度 + const onDrag = (x) => { + return x >= (col.minWidth || this.columnMinWidth) + } return (