diff --git a/common/changes/@visactor/vtable/fix-release_chartAxis_occor_error_2025-12-17-09-07.json b/common/changes/@visactor/vtable/fix-release_chartAxis_occor_error_2025-12-17-09-07.json new file mode 100644 index 0000000000..9d5a1d6a9a --- /dev/null +++ b/common/changes/@visactor/vtable/fix-release_chartAxis_occor_error_2025-12-17-09-07.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "refactor: when no axis compute col width logic\n\n", + "type": "none", + "packageName": "@visactor/vtable" + } + ], + "packageName": "@visactor/vtable", + "email": "892739385@qq.com" +} \ No newline at end of file diff --git a/packages/vtable/src/scenegraph/layout/compute-col-width.ts b/packages/vtable/src/scenegraph/layout/compute-col-width.ts index a98738b338..3640dc03af 100644 --- a/packages/vtable/src/scenegraph/layout/compute-col-width.ts +++ b/packages/vtable/src/scenegraph/layout/compute-col-width.ts @@ -295,7 +295,8 @@ function computeAutoColWidth( } else if ( layout.isLeftBottomCorner(col, row) || layout.isRightTopCorner(col, row) || - layout.isRightBottomCorner(col, row) + layout.isRightBottomCorner(col, row) || + layout.isAxisCell(col, row) ) { // 透视图三角为无效单元格,不参与宽度计算 continue;