Yuyang Liu преди 8 години
родител
ревизия
3a774939ef
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/date-picker/src/basic/date-table.vue

+ 1 - 1
packages/date-picker/src/basic/date-table.vue

@@ -231,7 +231,7 @@
         }
 
         if (selectionMode === 'day' && (cell.type === 'normal' || cell.type === 'today') &&
-          this.year === this.date.getFullYear() && this.month === this.date.getMonth() && monthDate === Number(cell.text)) {
+          Number(this.year) === this.date.getFullYear() && this.month === this.date.getMonth() && monthDate === Number(cell.text)) {
           classes.push('current');
         }