mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
0ecb6ad45f
close #8635
792 lines
26 KiB
Plaintext
792 lines
26 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`DatePicker prop locale should works 1`] = `
|
|
<span
|
|
class="ant-calendar-picker"
|
|
>
|
|
<div
|
|
style=""
|
|
>
|
|
<input
|
|
class="ant-calendar-picker-input ant-input"
|
|
placeholder="Избери дата"
|
|
readonly=""
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-calendar-picker-icon"
|
|
/>
|
|
</div>
|
|
<div>
|
|
<div
|
|
class="ant-calendar-picker-container ant-calendar-picker-container-placement-bottomLeft slide-up-appear"
|
|
style="left: -999px; top: -1002px;"
|
|
>
|
|
<div
|
|
class="ant-calendar"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="ant-calendar-panel"
|
|
>
|
|
<div
|
|
class="ant-calendar-input-wrap"
|
|
>
|
|
<div
|
|
class="ant-calendar-date-input-wrap"
|
|
>
|
|
<input
|
|
class="ant-calendar-input "
|
|
placeholder="Избери дата"
|
|
value=""
|
|
/>
|
|
</div>
|
|
<a
|
|
class="ant-calendar-clear-btn"
|
|
role="button"
|
|
title="Изчистване"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="ant-calendar-date-panel"
|
|
>
|
|
<div
|
|
class="ant-calendar-header"
|
|
>
|
|
<div
|
|
style="position: relative;"
|
|
>
|
|
<a
|
|
class="ant-calendar-prev-year-btn"
|
|
role="button"
|
|
title="Последна година (Control + left)"
|
|
/>
|
|
<a
|
|
class="ant-calendar-prev-month-btn"
|
|
role="button"
|
|
title="Предишен месец (PageUp)"
|
|
/>
|
|
<span
|
|
class="ant-calendar-my-select"
|
|
>
|
|
<a
|
|
class="ant-calendar-month-select"
|
|
role="button"
|
|
title="Избор на месец"
|
|
>
|
|
Dec
|
|
</a>
|
|
<a
|
|
class="ant-calendar-year-select"
|
|
role="button"
|
|
title="Избор на година"
|
|
>
|
|
2017
|
|
</a>
|
|
</span>
|
|
<a
|
|
class="ant-calendar-next-month-btn"
|
|
title="Следващ месец (PageDown)"
|
|
/>
|
|
<a
|
|
class="ant-calendar-next-year-btn"
|
|
title="Следваща година (Control + right)"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-calendar-body"
|
|
>
|
|
<table
|
|
cellspacing="0"
|
|
class="ant-calendar-table"
|
|
role="grid"
|
|
>
|
|
<thead>
|
|
<tr
|
|
role="row"
|
|
>
|
|
<th
|
|
class="ant-calendar-column-header"
|
|
role="columnheader"
|
|
title="Sun"
|
|
>
|
|
<span
|
|
class="ant-calendar-column-header-inner"
|
|
>
|
|
Su
|
|
</span>
|
|
</th>
|
|
<th
|
|
class="ant-calendar-column-header"
|
|
role="columnheader"
|
|
title="Mon"
|
|
>
|
|
<span
|
|
class="ant-calendar-column-header-inner"
|
|
>
|
|
Mo
|
|
</span>
|
|
</th>
|
|
<th
|
|
class="ant-calendar-column-header"
|
|
role="columnheader"
|
|
title="Tue"
|
|
>
|
|
<span
|
|
class="ant-calendar-column-header-inner"
|
|
>
|
|
Tu
|
|
</span>
|
|
</th>
|
|
<th
|
|
class="ant-calendar-column-header"
|
|
role="columnheader"
|
|
title="Wed"
|
|
>
|
|
<span
|
|
class="ant-calendar-column-header-inner"
|
|
>
|
|
We
|
|
</span>
|
|
</th>
|
|
<th
|
|
class="ant-calendar-column-header"
|
|
role="columnheader"
|
|
title="Thu"
|
|
>
|
|
<span
|
|
class="ant-calendar-column-header-inner"
|
|
>
|
|
Th
|
|
</span>
|
|
</th>
|
|
<th
|
|
class="ant-calendar-column-header"
|
|
role="columnheader"
|
|
title="Fri"
|
|
>
|
|
<span
|
|
class="ant-calendar-column-header-inner"
|
|
>
|
|
Fr
|
|
</span>
|
|
</th>
|
|
<th
|
|
class="ant-calendar-column-header"
|
|
role="columnheader"
|
|
title="Sat"
|
|
>
|
|
<span
|
|
class="ant-calendar-column-header-inner"
|
|
>
|
|
Sa
|
|
</span>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody
|
|
class="ant-calendar-tbody"
|
|
>
|
|
<tr
|
|
class=""
|
|
role="row"
|
|
>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-last-month-cell"
|
|
role="gridcell"
|
|
title="November 26, 2017"
|
|
>
|
|
<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"
|
|
title="November 27, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
27
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-last-month-cell"
|
|
role="gridcell"
|
|
title="November 28, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
28
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-last-month-cell"
|
|
role="gridcell"
|
|
title="November 29, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
29
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-last-month-cell"
|
|
role="gridcell"
|
|
title="November 30, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
30
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 1, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
1
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 2, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
2
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr
|
|
class=""
|
|
role="row"
|
|
>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 3, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
3
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 4, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
4
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 5, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
5
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 6, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
6
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 7, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
7
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 8, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
8
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 9, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
9
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr
|
|
class=""
|
|
role="row"
|
|
>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 10, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
10
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 11, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
11
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 12, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
12
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 13, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
13
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 14, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
14
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 15, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
15
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 16, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
16
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr
|
|
class="ant-calendar-current-week ant-calendar-active-week"
|
|
role="row"
|
|
>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-today ant-calendar-selected-day"
|
|
role="gridcell"
|
|
title="December 17, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="true"
|
|
class="ant-calendar-date"
|
|
>
|
|
17
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 18, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
18
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 19, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
19
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 20, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
20
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 21, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
21
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 22, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
22
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 23, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
23
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr
|
|
class=""
|
|
role="row"
|
|
>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 24, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
24
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 25, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
25
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 26, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
26
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 27, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
27
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 28, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
28
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 29, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
29
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 30, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
30
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr
|
|
class=""
|
|
role="row"
|
|
>
|
|
<td
|
|
class="ant-calendar-cell"
|
|
role="gridcell"
|
|
title="December 31, 2017"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
31
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-next-month-btn-day"
|
|
role="gridcell"
|
|
title="January 1, 2018"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
1
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-next-month-btn-day"
|
|
role="gridcell"
|
|
title="January 2, 2018"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
2
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-next-month-btn-day"
|
|
role="gridcell"
|
|
title="January 3, 2018"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
3
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-next-month-btn-day"
|
|
role="gridcell"
|
|
title="January 4, 2018"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
4
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-next-month-btn-day"
|
|
role="gridcell"
|
|
title="January 5, 2018"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
5
|
|
</div>
|
|
</td>
|
|
<td
|
|
class="ant-calendar-cell ant-calendar-next-month-btn-day"
|
|
role="gridcell"
|
|
title="January 6, 2018"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-selected="false"
|
|
class="ant-calendar-date"
|
|
>
|
|
6
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div
|
|
class="ant-calendar-footer"
|
|
>
|
|
<span
|
|
class="ant-calendar-footer-btn"
|
|
>
|
|
<a
|
|
class="ant-calendar-today-btn "
|
|
role="button"
|
|
title="December 17, 2017"
|
|
>
|
|
Днес
|
|
</a>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
`;
|