code: function filterYear(arr, { disabledDateObj, minDate, maxDate }) {
    const minDateTime = new Date(minDate).getTime();
    const maxDateTime = new Date(maxDate).getTime();
    const yearRangeArr = getDateRangeArr(disabledDateObj, minDateTime, maxDateTime);
    const yearArr = [];
    yearRangeArr.forEach((item) => {
      let { start, end } = item;
      start = new Date(start);
      end = new Date(end);
      const yearStart = start.getFullYear();
      const monthStart = start.getMonth();
      const dayStart = start.getDate();
      const yearEnd = end.getFullYear();
      const monthEnd = end.getMonth();
      const dayEnd = new Date(end.getTime() + 86400000).getDate();
      if (monthStart === 0 && dayStart === 1) { // 判断临界时 是否去掉整年
        if (monthEnd === 11 && dayEnd === 1) {
          for (let i = yearStart; i <= yearEnd; i++) {
            yearArr.push(i);
          }
        } else {
          for (let i = yearStart; i < yearEnd; i++) {
            yearArr.push(i);
          }
        }
      }
      if (monthEnd === 11 && dayEnd === 1) {
        for (let i = yearStart + 1; i <= yearEnd; i++) {
          yearArr.push(i);
        }
      } else {
        for (let i = yearStart + 1; i < yearEnd; i++) {
          yearArr.push(i);
        }
      }
    });
    return arr.filter((item) => {
      const year = item.value;
      return yearArr.indexOf(year) === -1;
    });
  }
docs: 过滤年份
  @param { Array } arr
  @param { object } disabledDateObj
  @param { String } minDate