Skip to content

Conversation

@Hoe605
Copy link

@Hoe605 Hoe605 commented Dec 27, 2025

描述

修复了当 n-data-table 的 scroll-x 属性设置为非数字字符串(如 '100%', 'max-content')时,右侧固定列无法正确显示阴影的问题。

变更

修改了 deriveActiveRightFixedColumn 中的计算逻辑:

…s string

fixes the issue by checking if the parsed `scrollX` is `NaN`. If it is, the logic falls back to using the `scrollElement.scrollWidth` from the DOM as the source of truth for the content width.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

【DataTable】scroll-x 百分比字符串会导致 right fixed 缺少列阴影

1 participant