您当前的位置: 首页 > 

java持续实践

暂无认证

  • 1浏览

    0关注

    746博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

AntD DatePicker日期选择框 选择范围为某一年的1月1号到当天

java持续实践 发布时间:2021-01-26 16:04:04 ,浏览量:1

import { DatePicker, Space } from 'antd';

const { RangePicker } = DatePicker;
function disabledDate(current: any) {
    return (
      current
      // 日期范围, 限制为2021年1月1号,到当前的时间
      && (current > moment().subtract(0, 'days')
        || current             
关注
打赏
1658054974
查看更多评论
0.0398s