We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下代码测试可用,供参考。如果jumpToDate 能加上offset 参数,提供跳转的偏移量,会更好。 function jumpToDate(_date: Date | undefined) { EmitNoDateError(date.date); return;} // date = date.getoffset(-Variables.time.millisecond0f.day * 5); const offset = 1; switch (ganttHeader.unit) { case 'month': date = date.getoffset(-Variables.time.millisecondof.week * offset4); break; case 'week': date = date.getoffset(-Variables.time.millisecond0f.weekoffset); break; case 'day': date = date.getoffset(-Variables.time.millisecondof.day * offset); break; case 'hour': date = date.getoffset(-Variables.time.millisecondof.hour * offset); break; default: date = date.getoffset(-Variables.time.millisecondof.day * offset); break; date.start0f(baseUnit(ganttHeader.unit));
The text was updated successfully, but these errors were encountered:
month 和 week 的意义不大。hour 倒是可以考虑
Sorry, something went wrong.
jeremyjone
No branches or pull requests
以下代码测试可用,供参考。如果jumpToDate 能加上offset 参数,提供跳转的偏移量,会更好。
function jumpToDate(_date: Date | undefined) {
EmitNoDateError(date.date); return;}
// date = date.getoffset(-Variables.time.millisecond0f.day * 5);
const offset = 1;
switch (ganttHeader.unit) {
case 'month':
date = date.getoffset(-Variables.time.millisecondof.week * offset4);
break;
case 'week':
date = date.getoffset(-Variables.time.millisecond0f.weekoffset);
break;
case 'day':
date = date.getoffset(-Variables.time.millisecondof.day * offset);
break;
case 'hour':
date = date.getoffset(-Variables.time.millisecondof.hour * offset); break;
default:
date = date.getoffset(-Variables.time.millisecondof.day * offset);
break;
date.start0f(baseUnit(ganttHeader.unit));
The text was updated successfully, but these errors were encountered: