deps: upgrade rc-calendar

This commit is contained in:
Benjy Cui 2017-04-01 14:43:36 +08:00
parent e70bd5320d
commit 30f55b923a
5 changed files with 155 additions and 105 deletions

View File

@ -212,6 +212,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
class="ant-fullcalendar-tbody"
>
<tr
class=""
role="row"
>
<td
@ -342,6 +343,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -472,6 +474,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -602,7 +605,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
</td>
</tr>
<tr
class="ant-fullcalendar-current-week"
class="ant-fullcalendar-current-week ant-fullcalendar-active-week"
role="row"
>
<td
@ -733,6 +736,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -863,6 +867,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -1214,6 +1219,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
class="ant-fullcalendar-tbody"
>
<tr
class=""
role="row"
>
<td
@ -1344,6 +1350,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -1474,6 +1481,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -1604,7 +1612,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
</td>
</tr>
<tr
class="ant-fullcalendar-current-week"
class="ant-fullcalendar-current-week ant-fullcalendar-active-week"
role="row"
>
<td
@ -1735,6 +1743,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -1865,6 +1874,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2214,6 +2224,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
class="ant-fullcalendar-tbody"
>
<tr
class=""
role="row"
>
<td
@ -2372,6 +2383,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2572,6 +2584,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2779,7 +2792,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
</td>
</tr>
<tr
class="ant-fullcalendar-current-week"
class="ant-fullcalendar-current-week ant-fullcalendar-active-week"
role="row"
>
<td
@ -2938,6 +2951,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -3096,6 +3110,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -3528,6 +3543,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
class="ant-fullcalendar-tbody"
>
<tr
class=""
role="row"
>
<td
@ -3658,6 +3674,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -3788,6 +3805,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -3918,6 +3936,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -4048,6 +4067,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
</td>
</tr>
<tr
class="ant-fullcalendar-active-week"
role="row"
>
<td
@ -4178,6 +4198,7 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td

View File

@ -6,7 +6,7 @@ import { RangePicker } from '../';
describe('RangePicker', () => {
it('show month panel according to value', () => {
const birthday = moment('2000-01-01', 'YYYY-MM-DD');
const birthday = moment('2000-01-01', 'YYYY-MM-DD').locale('zh-cn');
const wrapper = mount(
<RangePicker
getCalendarContainer={trigger => trigger}
@ -21,7 +21,7 @@ describe('RangePicker', () => {
});
it('switch to corresponding month panel when click presetted ranges', () => {
const birthday = moment('2000-01-01', 'YYYY-MM-DD');
const birthday = moment('2000-01-01', 'YYYY-MM-DD').locale('zh-cn');
const wrapper = mount(
<RangePicker
ranges={{

View File

@ -65,7 +65,7 @@ exports[`RangePicker show month panel according to value 1`] = `
role="button"
title="选择月份"
>
1
</a>
</span>
</div>
@ -85,78 +85,78 @@ exports[`RangePicker show month panel according to value 1`] = `
<th
class="ant-calendar-column-header"
role="columnheader"
title="Sun"
title="周一"
>
<span
class="ant-calendar-column-header-inner"
>
Su
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Mon"
title="周二"
>
<span
class="ant-calendar-column-header-inner"
>
Mo
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Tue"
title="周三"
>
<span
class="ant-calendar-column-header-inner"
>
Tu
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Wed"
title="周四"
>
<span
class="ant-calendar-column-header-inner"
>
We
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Thu"
title="周五"
>
<span
class="ant-calendar-column-header-inner"
>
Th
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Fri"
title="周六"
>
<span
class="ant-calendar-column-header-inner"
>
Fr
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Sat"
title="周日"
>
<span
class="ant-calendar-column-header-inner"
>
Sa
</span>
</th>
</tr>
@ -165,21 +165,9 @@ exports[`RangePicker show month panel according to value 1`] = `
class="ant-calendar-tbody"
>
<tr
class="ant-calendar-active-week"
role="row"
>
<td
class="ant-calendar-cell ant-calendar-last-month-cell"
role="gridcell"
title="1999-12-26"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
26
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-last-month-cell"
role="gridcell"
@ -258,10 +246,6 @@ exports[`RangePicker show month panel according to value 1`] = `
1
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -275,6 +259,11 @@ exports[`RangePicker show month panel according to value 1`] = `
2
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -353,10 +342,6 @@ exports[`RangePicker show month panel according to value 1`] = `
8
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -370,6 +355,11 @@ exports[`RangePicker show month panel according to value 1`] = `
9
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -448,10 +438,6 @@ exports[`RangePicker show month panel according to value 1`] = `
15
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -465,6 +451,11 @@ exports[`RangePicker show month panel according to value 1`] = `
16
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -543,10 +534,6 @@ exports[`RangePicker show month panel according to value 1`] = `
22
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -560,6 +547,11 @@ exports[`RangePicker show month panel according to value 1`] = `
23
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -638,10 +630,6 @@ exports[`RangePicker show month panel according to value 1`] = `
29
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -655,6 +643,11 @@ exports[`RangePicker show month panel according to value 1`] = `
30
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -733,6 +726,19 @@ exports[`RangePicker show month panel according to value 1`] = `
5
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-next-month-btn-day"
role="gridcell"
title="2000-2-6"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
6
</div>
</td>
</tr>
</tbody>
</table>
@ -784,7 +790,7 @@ exports[`RangePicker show month panel according to value 1`] = `
role="button"
title="选择月份"
>
2
</a>
</span>
<a
@ -812,78 +818,78 @@ exports[`RangePicker show month panel according to value 1`] = `
<th
class="ant-calendar-column-header"
role="columnheader"
title="Sun"
title="周一"
>
<span
class="ant-calendar-column-header-inner"
>
Su
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Mon"
title="周二"
>
<span
class="ant-calendar-column-header-inner"
>
Mo
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Tue"
title="周三"
>
<span
class="ant-calendar-column-header-inner"
>
Tu
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Wed"
title="周四"
>
<span
class="ant-calendar-column-header-inner"
>
We
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Thu"
title="周五"
>
<span
class="ant-calendar-column-header-inner"
>
Th
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Fri"
title="周六"
>
<span
class="ant-calendar-column-header-inner"
>
Fr
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Sat"
title="周日"
>
<span
class="ant-calendar-column-header-inner"
>
Sa
</span>
</th>
</tr>
@ -892,21 +898,9 @@ exports[`RangePicker show month panel according to value 1`] = `
class="ant-calendar-tbody"
>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell ant-calendar-last-month-cell"
role="gridcell"
title="2000-1-30"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
30
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-last-month-cell"
role="gridcell"
@ -985,10 +979,6 @@ exports[`RangePicker show month panel according to value 1`] = `
5
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -1002,6 +992,11 @@ exports[`RangePicker show month panel according to value 1`] = `
6
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -1080,10 +1075,6 @@ exports[`RangePicker show month panel according to value 1`] = `
12
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -1097,6 +1088,11 @@ exports[`RangePicker show month panel according to value 1`] = `
13
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -1175,10 +1171,6 @@ exports[`RangePicker show month panel according to value 1`] = `
19
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -1192,6 +1184,11 @@ exports[`RangePicker show month panel according to value 1`] = `
20
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -1270,10 +1267,6 @@ exports[`RangePicker show month panel according to value 1`] = `
26
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -1287,6 +1280,11 @@ exports[`RangePicker show month panel according to value 1`] = `
27
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
@ -1365,10 +1363,6 @@ exports[`RangePicker show month panel according to value 1`] = `
4
</div>
</td>
</tr>
<tr
role="row"
>
<td
class="ant-calendar-cell ant-calendar-next-month-btn-day"
role="gridcell"
@ -1382,6 +1376,11 @@ exports[`RangePicker show month panel according to value 1`] = `
5
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell ant-calendar-next-month-btn-day"
role="gridcell"
@ -1460,6 +1459,19 @@ exports[`RangePicker show month panel according to value 1`] = `
11
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-next-month-btn-day"
role="gridcell"
title="2000-3-12"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
12
</div>
</td>
</tr>
</tbody>
</table>
@ -1558,7 +1570,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
role="button"
title="选择月份"
>
1
</a>
</span>
</div>
@ -1658,6 +1670,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
class="ant-calendar-tbody"
>
<tr
class="ant-calendar-active-week"
role="row"
>
<td
@ -1753,6 +1766,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -1848,6 +1862,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -1943,6 +1958,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2038,6 +2054,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2133,6 +2150,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2277,7 +2295,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
role="button"
title="选择月份"
>
2
</a>
</span>
<a
@ -2385,6 +2403,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
class="ant-calendar-tbody"
>
<tr
class=""
role="row"
>
<td
@ -2480,6 +2499,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2575,6 +2595,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2670,6 +2691,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2765,6 +2787,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -2860,6 +2883,7 @@ exports[`RangePicker switch to corresponding month panel when click presetted ra
</td>
</tr>
<tr
class=""
role="row"
>
<td

View File

@ -667,6 +667,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
class="ant-fullcalendar-tbody"
>
<tr
class=""
role="row"
>
<td
@ -797,6 +798,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -927,6 +929,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -1057,7 +1060,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
</td>
</tr>
<tr
class="ant-fullcalendar-current-week"
class="ant-fullcalendar-current-week ant-fullcalendar-active-week"
role="row"
>
<td
@ -1188,6 +1191,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td
@ -1318,6 +1322,7 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
</td>
</tr>
<tr
class=""
role="row"
>
<td

View File

@ -43,7 +43,7 @@
"object-assign": "~4.1.0",
"omit.js": "^0.1.0",
"rc-animate": "~2.3.0",
"rc-calendar": "~7.7.1",
"rc-calendar": "~7.8.0",
"rc-cascader": "~0.11.0",
"rc-checkbox": "~1.5.0",
"rc-collapse": "~1.6.4",