Giter VIP home page Giter VIP logo

Comments (3)

xiaocheng555 avatar xiaocheng555 commented on July 3, 2024

遇到:当树形数据有多层children嵌套时,各级加载展开后,数量达到上千行时,就会很卡顿了 image 看原因还是视窗内行数太多了,不知道有没有解决方案

树结构虚拟滚动只对一级节点有效,如果有多层children嵌套可能是渲染在页面的dom太多导致卡顿,可以看下面这个demo
https://xiaocheng555.github.io/el-table-virtual-scroll/#/VTreeDemo?code=VTreeDemo&codeTitle=%E6%A8%A1%E6%8B%9F%E6%A0%91%E7%BB%93%E6%9E%84%E6%87%92%E5%8A%A0%E8%BD%BD

from el-table-virtual-scroll.

yu530feng avatar yu530feng commented on July 3, 2024

是的,问题原因就出在这里:树结构虚拟滚动只计算一级节点渲染的数据 一级节点下有太多子节点了

from el-table-virtual-scroll.

xiaocheng555 avatar xiaocheng555 commented on July 3, 2024

是的,问题原因就出在这里:树结构虚拟滚动只计算一级节点渲染的数据 一级节点下有太多子节点了

image 模拟表格树,不用element-ui的树结构

from el-table-virtual-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.