浏览代码

DatePicker: fix year label

qingwei.li 8 年之前
父节点
当前提交
a3303480eb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/date-picker/src/panel/date-range.vue

+ 2 - 2
packages/date-picker/src/panel/date-range.vue

@@ -149,11 +149,11 @@
       },
       },
 
 
       leftLabel() {
       leftLabel() {
-        return this.date.getFullYear() + ' ' + this.$t('datepicker.month') + ' ' + (this.date.getMonth() + 1) + ' ' + this.$t('datepicker.month');
+        return this.date.getFullYear() + ' ' + this.$t('datepicker.year') + ' ' + (this.date.getMonth() + 1) + ' ' + this.$t('datepicker.month');
       },
       },
 
 
       rightLabel() {
       rightLabel() {
-        return this.rightDate.getFullYear() + ' ' + this.$t('datepicker.month') + ' ' + (this.rightDate.getMonth() + 1) + ' ' + this.$t('datepicker.month');
+        return this.rightDate.getFullYear() + ' ' + this.$t('datepicker.year') + ' ' + (this.rightDate.getMonth() + 1) + ' ' + this.$t('datepicker.month');
       },
       },
 
 
       leftYear() {
       leftYear() {