xpyjs / gantt

An easy-to-use Gantt component. 持续更新,中文文档
https://docs.xiaopangying.com/gantt/
MIT License
243 stars 41 forks source link

[BUG] elements disappear after scrolling and filtering #91

Closed tesla-cat closed 4 months ago

tesla-cat commented 4 months ago

problem solved

jeremyjone commented 4 months ago

code

tesla-cat commented 4 months ago

@jeremyjone

如何强行重新渲染? (我发现在很多情况下 数据发生改变后 不会重新渲染 需要滑动滚动条再滑回去才会重新正确渲染)

jeremyjone commented 4 months ago

你是直接将数据,比如叫 datalist,直接替换数据吗?这个我还真不确定,因为我在内部将所有数据重新编号,如果data没有改变,id就不会发生变化,也就会导致位置信息不会发生变化。我回头考虑一下。目前没有强制渲染,这个我需要考虑一下实现逻辑

tesla-cat commented 4 months ago

@jeremyjone 是的 我的 data 因为加了自带的 filtering 所以会变化