diff --git a/src/control/grid/grid/grid.tsx b/src/control/grid/grid/grid.tsx index 8f39ebaade72106aab231319b60a9fac401492d4..6610f8e3a9176eccb89627fd72aed8793494e2b5 100644 --- a/src/control/grid/grid/grid.tsx +++ b/src/control/grid/grid/grid.tsx @@ -57,7 +57,7 @@ export function renderColumn( renderColumns: IDEGridColumn[], index: number, ): VNode | null { - const { codeName: columnName, width } = model; + const { codeName: columnName } = model; const columnC = c.columns[columnName!]; const columnState = c.state.columnStates.find( item => item.key === columnName, @@ -69,6 +69,15 @@ export function renderColumn( (!c.hasAdaptiveColumn && index === renderColumns.length - 1); const widthName = widthFlexGrow ? 'min-width' : 'width'; + let { width } = model; + if ( + c.model.enableCustomized && + !c.state.hideHeader && + width && + index === renderColumns.length - 1 + ) { + width += 20; + } // 表格列自定义 return (