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

👑 [需求 | Feature] 内容区高度获取、表格使用固定高度 #11422

Open
jiankian opened this issue Jan 11, 2025 · 0 comments
Open

Comments

@jiankian
Copy link
Contributor

🥰 需求描述 | Requirements description

能不能增加内容区可用高度获取方法,用以固定内容区表格等高度。
如Naive Admin Plus/Pro 表格页面表格高度是固定的,页面滚动是滚动表格内的数据,而不是整页滚动,这样的浏览体验更好,整个表格滚动的体验太差了,每次翻页或者修改筛选条件还得滚动到底部或翻页按钮区域。

image

🧐 解决方案 | Solution

提供内容区可用高度的回调或者api方法,在布局组件中计算顶部菜单、页面内容区PageHeader等渲染的高度,最后得到可用的内容区高度。

🚑 其他信息 | Other information

参考:https://plus.naiveadmin.com/

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

No branches or pull requests

1 participant