具体日期之前不可选
https://www.jianshu.com/p/fd78f735cd9f
onOk参数格式转化
https://blog.csdn.net/u010856177/article/details/89388219
去掉showTime的时间选择
需求:按下确定后日期修改才会生效
问题:显示组件中的确定按钮需要打开showTime,但它自带时间选择,这是不需要的_(:з」∠)_
解决:
①找到库的全局样式修改位置:./theme
②给需要修改的页面的DatePicker组件增加一个dropdownClassName,比如
dropdownClassName='none-show-time'
③在页面上找到“选择时间”的组名
在antd_theme.css中修改
.none-show-time .ant-calendar-time .ant-calendar-footer .ant-calendar-time-picker-btn{ display: none!important; }
④好叻!ο(=•ω<=)ρ⌒☆