From c0126a58d048c782c13f1f74cff87cea6e89d4f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Sat, 14 Mar 2026 18:58:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/src/components/yuthon_report/receivable_report.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yuthon_report/static/src/components/yuthon_report/receivable_report.js b/yuthon_report/static/src/components/yuthon_report/receivable_report.js index e81b03ac5..51dd5dcd9 100644 --- a/yuthon_report/static/src/components/yuthon_report/receivable_report.js +++ b/yuthon_report/static/src/components/yuthon_report/receivable_report.js @@ -55,6 +55,11 @@ class ReceivableReport extends Component { const columns = this.config.columns || []; columns.forEach((col) => { col.cellRenderer = this.linkRender.bind(this); + // 对固定宽度列(如序号列)单独设置 minWidth,避免被 defaultColDef 覆盖 + if (col.width && col.flex === 0) { + col.minWidth = col.width; + col.maxWidth = col.width; + } }); this.gridOptions = {