Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(table): 修复虚拟列表maxHeight无法支持字符串问题(#2846) #2847

Merged
merged 6 commits into from
Jun 12, 2024

Conversation

aqiusen
Copy link

@aqiusen aqiusen commented May 29, 2024

closed: #2846

@aqiusen aqiusen changed the title fix(table): #2864修复虚拟列表maxHeight无法支持字符串问题 fix(table): 修复虚拟列表maxHeight无法支持字符串问题(#2846) Jun 4, 2024
@@ -87,7 +87,7 @@ export const TableBody = forwardRef<HTMLDivElement | null, TableBodyProps>(
style={{ height: 2, marginTop: -1, background: 'transparent', width: rowWidth }}
></div>
{isArrayNonEmpty(transitionData) ? (
<div style={{ width: '100%', position: 'sticky', left: 0 }}>
<div style={{ width: '100%', position: 'sticky', left: 0, maxHeight: maxHeight, overflow: 'auto' }}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

设置 overflow: 'auto' 后会出现双滚动条

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maxHeight 设置 calc() 时会出现双滚动条

@solarjoker solarjoker merged commit 9416cd0 into XiaoMi:master Jun 12, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table 虚拟列表下maxHeight只能设置数字,无法设置字符串或表达式
3 participants