From 16bf1499c7ef342aabb5501527d4aeecc792a2f1 Mon Sep 17 00:00:00 2001 From: danshihao Date: Tue, 21 Mar 2023 09:08:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=2066426=E3=80=91JTable=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=8B=96=E6=8B=BD=E5=B0=8F=E4=BA=8E=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E5=90=8E=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/jero/JTable.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 (