列宽调整

This commit is contained in:
geht
2026-06-30 17:45:15 +08:00
parent d55223a1c0
commit ec04a7e1ad
2 changed files with 8 additions and 1 deletions

View File

@@ -429,7 +429,6 @@
findItem.width = w;
setColumns(columns);
}
console.log('col',col);
col.width = w;
},
getFormProps: getFormProps as any,

View File

@@ -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;