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
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