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(spin): fix loading not centered #7986

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Zuojiangtao
Copy link

修复spin组件loading未居中的样式bug

实际效果:
image

修复后效果:
image

@tangjinzhou
Copy link
Member

官网看着没问题啊

@Zuojiangtao
Copy link
Author

Zuojiangtao commented Jan 6, 2025

看了下,找到了问题,是设置默认的最大高度的导致的。

image

image

codesandbox示例

当spin组件包裹的高度超过400时就不居中了。

Copy link

github-actions bot commented Mar 7, 2025

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added Stale and removed Stale labels Mar 7, 2025
@Zuojiangtao
Copy link
Author

所以这个样式是就这样了吗?还是加一个可以控制的居中高度覆盖contentHeight @tangjinzhou
image

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.

2 participants