From ec04a7e1adeb27a84ba5ad94827144d0401d6fec Mon Sep 17 00:00:00 2001 From: geht <2947093423@qq.com> Date: Tue, 30 Jun 2026 17:45:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E5=AE=BD=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3/src/components/Table/src/BasicTable.vue | 1 - .../src/components/Table/src/hooks/useColumns.ts | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/jeecgboot-vue3/src/components/Table/src/BasicTable.vue b/jeecgboot-vue3/src/components/Table/src/BasicTable.vue index 3a109e0f..e669cd8d 100644 --- a/jeecgboot-vue3/src/components/Table/src/BasicTable.vue +++ b/jeecgboot-vue3/src/components/Table/src/BasicTable.vue @@ -429,7 +429,6 @@ findItem.width = w; setColumns(columns); } - console.log('col',col); col.width = w; }, getFormProps: getFormProps as any, diff --git a/jeecgboot-vue3/src/components/Table/src/hooks/useColumns.ts b/jeecgboot-vue3/src/components/Table/src/hooks/useColumns.ts index 8efd46aa..0c8eb526 100644 --- a/jeecgboot-vue3/src/components/Table/src/hooks/useColumns.ts +++ b/jeecgboot-vue3/src/components/Table/src/hooks/useColumns.ts @@ -15,6 +15,14 @@ import { CUS_SEL_COLUMN_KEY } from './useCustomSelection'; function handleItem(item: BasicColumn, ellipsis: boolean) { const { key, dataIndex, children } = item; item.align = item.align || DEFAULT_ALIGN; + //update-begin---author:系统 ---date:2026-06-30 for:【需求】全局默认开启列宽手动拖拽----------- + // 序号列、操作列、自定义多选列等功能列以及分组父列不参与列宽拖拽;尊重列上已显式设置的 resizable + const isFunctionalColumn = item.flag === INDEX_COLUMN_FLAG || item.flag === ACTION_COLUMN_FLAG || key === CUS_SEL_COLUMN_KEY; + const isGroupColumn = !!(children && children.length); + if (!isFunctionalColumn && !isGroupColumn && !isBoolean(item.resizable)) { + item.resizable = true; + } + //update-end---author:系统 ---date:2026-06-30 for:【需求】全局默认开启列宽手动拖拽----------- if (ellipsis) { if (!key) { item.key = dataIndex;