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
解决n-date-picker 组件的 :default-time属性 可以被 shortcuts 设置覆盖
rangeShortcuts: { 近7天: () => { const cur = new Date().getTime(); return [cur - 7 * 24 * 60 * 60 * 1000, cur]; }, 近3天: () => { const cur = new Date().getTime(); return [cur - 3 * 24 * 60 * 60 * 1000, cur]; }, 近1天: () => { const cur = new Date().getTime(); return [cur - 24 * 60 * 60 * 1000, cur]; }, 近2小时: () => { const cur = new Date().getTime(); return [cur - 2 * 60 * 60 * 1000, cur]; } },
The text was updated successfully, but these errors were encountered:
49b0c69
No branches or pull requests
This function solves the problem (这个功能解决的问题)
解决n-date-picker 组件的 :default-time属性 可以被 shortcuts 设置覆盖
Expected API (期望的 API)
rangeShortcuts: {
近7天: () => {
const cur = new Date().getTime();
return [cur - 7 * 24 * 60 * 60 * 1000, cur];
},
近3天: () => {
const cur = new Date().getTime();
return [cur - 3 * 24 * 60 * 60 * 1000, cur];
},
近1天: () => {
const cur = new Date().getTime();
return [cur - 24 * 60 * 60 * 1000, cur];
},
近2小时: () => {
const cur = new Date().getTime();
return [cur - 2 * 60 * 60 * 1000, cur];
}
},
The text was updated successfully, but these errors were encountered: