From a2f7316b69812c7fe6a07e0b8790c8e3d6f6d285 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Fri, 4 Nov 2016 18:14:50 +0800 Subject: [PATCH] DatePicker: disabled year or month, fixed #758 --- .../date-picker/src/basic/month-table.vue | 40 +++++++++++++------ packages/date-picker/src/basic/year-table.vue | 39 +++++++++++++----- packages/date-picker/src/panel/date.vue | 8 +++- .../src/date-picker/date-table.css | 1 - .../src/date-picker/month-table.css | 7 ++++ .../src/date-picker/year-table.css | 12 ++++-- 6 files changed, 78 insertions(+), 29 deletions(-) diff --git a/packages/date-picker/src/basic/month-table.vue b/packages/date-picker/src/basic/month-table.vue index 087f021d..787a9ad7 100644 --- a/packages/date-picker/src/basic/month-table.vue +++ b/packages/date-picker/src/basic/month-table.vue @@ -2,44 +2,44 @@ - - - - - - - - - - - - @@ -49,18 +49,34 @@
+ {{ $t('el.datepicker.months.jan') }} + {{ $t('el.datepicker.months.feb') }} + {{ $t('el.datepicker.months.mar') }} + {{ $t('el.datepicker.months.apr') }}
+ {{ $t('el.datepicker.months.may') }} + {{ $t('el.datepicker.months.jun') }} + {{ $t('el.datepicker.months.jul') }} + {{ $t('el.datepicker.months.aug') }}
+ {{ $t('el.datepicker.months.sep') }} + {{ $t('el.datepicker.months.oct') }} + {{ $t('el.datepicker.months.nov') }} + {{ $t('el.datepicker.months.dec') }}