• 请不要在回答技术问题时复制粘贴 AI 生成的内容
giter
V2EX  ›  程序员

Element Plus 的表格组件如何手动实现虚拟滚动?

  •  
  •   giter · Dec 23, 2023 · 1366 views
    This topic created in 900 days ago, the information mentioned may be changed or developed.

    目前用滚动事件监听的方式粗陋地实现了一版,但不完美(仅能固定 DOM 挂载数量,但无法随意从顶部滚动到当前页数据底部),想参考下更优方案。因项目里的表格不适宜大改,因此没有采用官网的 table-v2 组件,所以只能手写方法去实现了。

    有写过类似功能的朋友欢迎贡献你的想法 https://i.imgur.com/io2SM1h.png

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6003 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 06:14 · PVG 14:14 · LAX 23:14 · JFK 02:14
    ♥ Do have faith in what you're doing.