fix(data-table): fix right fixed column shadow missing when scroll-x is string #7390
+21
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
描述
修复了当 n-data-table 的 scroll-x 属性设置为非数字字符串(如 '100%', 'max-content')时,右侧固定列无法正确显示阴影的问题。
变更
修改了 deriveActiveRightFixedColumn 中的计算逻辑:
close 【DataTable】scroll-x 百分比字符串会导致 right fixed 缺少列阴影 #7374