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
在3.x中,设置rangepicker的面板默认显示【上个月-本月】,可以用rangepicker的属性defaultPickerValue实现
<RangePicker
defaultPickerValue={[moment().subtract(1, "month"), moment()]}
format="YYYY-MM-DD HH:mm:00"
/>
而新版本这样设置无效,即使我把defaultPickerValue={[moment().subtract(2, "month"), moment()]}改为defaultPickerValue={moment().subtract(1, "month")}(注意前者是传了数组,后者是传了一个moment)依旧无效。
The text was updated successfully, but these errors were encountered:
解决了吗?
Sorry, something went wrong.
date.month is not a function
Successfully merging a pull request may close this issue.
What problem does this feature solve?
在3.x中,设置rangepicker的面板默认显示【上个月-本月】,可以用rangepicker的属性defaultPickerValue实现
<RangePicker
defaultPickerValue={[moment().subtract(1, "month"), moment()]}
format="YYYY-MM-DD HH:mm:00"
/>
而新版本这样设置无效,即使我把defaultPickerValue={[moment().subtract(2, "month"), moment()]}改为defaultPickerValue={moment().subtract(1, "month")}(注意前者是传了数组,后者是传了一个moment)依旧无效。
The text was updated successfully, but these errors were encountered: