Skip to content

[Bug] 调用gantt图的updateTaskRecord方法修改任务的起始、终止时间,gantt 无变化 #4534

Closed

Description

@sujingclg

Version

1.20.1

Link to Minimal Reproduction

https://codesandbox.io/p/devbox/vtable-export-umd-forked-zj6847?workspaceId=ws_8ier6WcDEV7bdewukbnaS2

Steps to Reproduce

点击按钮,会调用updateTaskRecord方法修改最后一行的起始时间

Current Behavior

左边表格时间变了,右边任务条没有变化

Expected Behavior

右边的任务条也应相应调整

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Activity

  1. fangsmile commented on Oct 23, 2025

    @fangsmile
    Contributor

    收到,后续会排查解决。也可以帮助解决这个问题提pr给我们

  2. fangsmile commented on Sep 20, 2026

    @fangsmile
    Contributor

    复核结果:目前无法复现该问题。updateTaskRecord 在当前 develop 以及 Issue 标注的 @visactor/vtable-gantt 1.20.1 中,等待初始渲染完成后更新最后一行,任务条都会从 x=320, width=120 正确更新为 x=440, width=200。原 CodeSandbox 链接目前返回 404/私有,无法核对遗漏的配置或操作条件。因此已关闭仅增加测试的 PR #5323;请提供一个仍可访问的最小复现,或补充完整的 records、Gantt options 和按钮更新代码后再继续定位。

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions