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

st组件,虚拟滚动和统计一起使用,统计失效 #2189

Open
Juicpt opened this issue Jan 26, 2022 · 2 comments
Open

st组件,虚拟滚动和统计一起使用,统计失效 #2189

Juicpt opened this issue Jan 26, 2022 · 2 comments

Comments

@Juicpt
Copy link

Juicpt commented Jan 26, 2022

Reproduction link

https://stackblitz.com/edit/angular-yqkxui

Steps to reproduce

在st组件里同时使用虚拟滚动和统计

What is expected?

虚拟滚动和统计同时生效

What is actually happening?

统计功能失效了

Environment Info
ng-alain 13.1.0
Browser chrome 97.0.4692.99
@alain-bot
Copy link

alain-bot bot commented Jan 26, 2022

Translation of this issue:

ST components, virtual scrolling and statistics are used together, statistical failure

reproduction link

https://stackblitz.com/edit/angular-yqkxui

steps to reproduce

Use virtual scrolling and statistics at the same time in the ST component

What is expected?

Virtual scrolling and statistics

What is actually happens?

Statistical function invalid

ENVIRONMENT INFO
NG-aLAIN 13.1.0
Browser Chrome 97.0.4692.99

@cipchk
Copy link
Member

cipchk commented Jan 28, 2022

受限于 nz-table ,当存在虚拟滚动时,的确无法使用。需要这里可以使用 footer 来解决,但这又会因为 nz-table 提供的 nzFooter 是单一空白行,因此难于实现虚拟滚动的情况下做样式处理。

可以去 NG-ZORRO 的 ISSUES 推动虚拟滚动下,支持自定义 <tr> 行。不过这本身 就是非常难于实现,或者说实现成本 有点高,要总是把自定义 计算在内。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants