react antd DatePicker date selection box
how to set a date that can only be selected for a specified month, such as Smart Select May 2018 to select a date.
react antd DatePicker date selection box
how to set a date that can only be selected for a specified month, such as Smart Select May 2018 to select a date.
emmmm, doesn't understand what it means. Do you want to say a fixed month and then let the user choose a date?
"Intelligence", do you call this intelligence? If antd did that, it would be bug.
all you need is defaultValue = {moment (new Date ())}
specific api: https://ant.design/components.
disabledDate
disabledDateFun = (current) => {
return true; // truefalse
};
<DatePicker
disabledDate={this.disabledDateFun}
/>
Previous: How do iconfont icon fonts achieve rotation?
Next: The algorithm problem of generating random numbers according to the specified rules