Giter Site home page Giter Site logo

Comments (11)

xpyjs avatar xpyjs commented on May 14, 2024

文档已经可以了。

数据过多?您的数据量是多少?请重现问题

from gantt.

2657615334 avatar 2657615334 commented on May 14, 2024

就是我们项目需要每一行有两条数据(两个起止时间在一排上,可以重叠)。然后我就把右边父级给隐藏掉,然后把左边的两个子级给隐藏掉,然后用类名定位,将两个子级定位到父级的那一排上面,在滚轮不翻页的情况下展示正常,当滚轮往下滑动到达第二页时,数据就出现混乱

from gantt.

xpyjs avatar xpyjs commented on May 14, 2024

请重现问题

from gantt.

2657615334 avatar 2657615334 commented on May 14, 2024

xGantt.zip

from gantt.

2657615334 avatar 2657615334 commented on May 14, 2024

直接看看代码吧

from gantt.

xpyjs avatar xpyjs commented on May 14, 2024

提问请提供:

  • 最小问题复现代码
  • 问题具体描述

谢谢

from gantt.

2657615334 avatar 2657615334 commented on May 14, 2024

gt1
gt2
gt3
QQ截图20220623110844

from gantt.

2657615334 avatar 2657615334 commented on May 14, 2024

大部分是通过样式控制的

from gantt.

xpyjs avatar xpyjs commented on May 14, 2024

@2657615334 我看了一眼你的代码。

  • 首先,我非常不建议你这么写。

  • 其次,针对你提到的问题,没有数据不是渲染错误,而是你压根没有给数据。
    你所有能够渲染出的数据,都是 index 为单号的,而渲染不出数据,则 index 都是 x-x 格式的,这些内容的 planOrderInfo 字段,你压根没给数据,当然返回 NaN,并没有问题。

  • 最后,并不是你所说的滚动到下面就出问题,而是当渲染的顶部首条内容如果是单号 index,则不会出问题,如果为 x-x 格式的 index 都会出问题,问题在于你的数据不全,而不是组件有问题。如果你把 class 中的 display:none 去掉,会看到你想隐藏掉的行,都是 NaN

from gantt.

2657615334 avatar 2657615334 commented on May 14, 2024

这样写的目的就是,想让两个子级显示到一排上

from gantt.

jeremyjone avatar jeremyjone commented on May 14, 2024

做不到

from gantt.

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.