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;