列宽调整
This commit is contained in:
@@ -429,7 +429,6 @@
|
|||||||
findItem.width = w;
|
findItem.width = w;
|
||||||
setColumns(columns);
|
setColumns(columns);
|
||||||
}
|
}
|
||||||
console.log('col',col);
|
|
||||||
col.width = w;
|
col.width = w;
|
||||||
},
|
},
|
||||||
getFormProps: getFormProps as any,
|
getFormProps: getFormProps as any,
|
||||||
|
|||||||
@@ -15,6 +15,14 @@ import { CUS_SEL_COLUMN_KEY } from './useCustomSelection';
|
|||||||
function handleItem(item: BasicColumn, ellipsis: boolean) {
|
function handleItem(item: BasicColumn, ellipsis: boolean) {
|
||||||
const { key, dataIndex, children } = item;
|
const { key, dataIndex, children } = item;
|
||||||
item.align = item.align || DEFAULT_ALIGN;
|
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 (ellipsis) {
|
||||||
if (!key) {
|
if (!key) {
|
||||||
item.key = dataIndex;
|
item.key = dataIndex;
|
||||||
|
|||||||
Reference in New Issue
Block a user