甘特图 API模板task_date页面内容task_date Description 定义用于 lightbox 中"Time period"部分标签的日期格式 task_date: (date: Date) => string;Parameters date - (required) Date - 要格式化的日期值 Returns text - (string) - 将在 gantt 中显示的 html 内容 Examplegantt.templates.task_date= function(date){ return gantt.date.date_to_str(gantt.config.task_date)(date);};Related API task_date Related Guides Lightbox 的模板 Need help?Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.