Skip to content

An error is reported when using view_modes #608

@mivvm

Description

@mivvm

view_modes = [
{
name: "Hour",
step: "8h",
padding: "2d",
date_format: "YYYY-MM-DD",
upper_text: (date) => {
const hours = date.getHours();
if (hours === 0) {
const month = date.getMonth() + 1;
const day = date.getDate();
return ${month}月${day}日;
}
return "";
},
lower_text: "HH",
},
]
The Gantt chart scrolls vertically first and then horizontally, with the top layer being disordered, and there is an error reported on the console.

https://codesandbox.io/p/sandbox/pm2g2j

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions