test: update snapshots

This commit is contained in:
lhyt 2019-06-06 01:02:40 +08:00
parent 10d4a9f955
commit b2f0a97a2c
2 changed files with 958 additions and 50 deletions

View File

@ -285,7 +285,7 @@ exports[`renders ./components/layout/demo/fixed.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -309,7 +309,7 @@ exports[`renders ./components/layout/demo/fixed.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -333,7 +333,7 @@ exports[`renders ./components/layout/demo/fixed.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -357,7 +357,7 @@ exports[`renders ./components/layout/demo/fixed.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;visibility:hidden;position:absolute"
style="visibility:hidden;position:absolute"
>
<div
aria-expanded="false"
@ -1269,7 +1269,7 @@ exports[`renders ./components/layout/demo/top.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -1293,7 +1293,7 @@ exports[`renders ./components/layout/demo/top.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -1317,7 +1317,7 @@ exports[`renders ./components/layout/demo/top.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -1341,7 +1341,7 @@ exports[`renders ./components/layout/demo/top.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;visibility:hidden;position:absolute"
style="visibility:hidden;position:absolute"
>
<div
aria-expanded="false"
@ -1436,7 +1436,7 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -1460,7 +1460,7 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -1484,7 +1484,7 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -1508,7 +1508,7 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;visibility:hidden;position:absolute"
style="visibility:hidden;position:absolute"
>
<div
aria-expanded="false"
@ -1772,7 +1772,7 @@ exports[`renders ./components/layout/demo/top-side-2.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -1796,7 +1796,7 @@ exports[`renders ./components/layout/demo/top-side-2.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -1820,7 +1820,7 @@ exports[`renders ./components/layout/demo/top-side-2.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;display:none"
style="display:none"
>
<div
aria-expanded="false"
@ -1844,7 +1844,7 @@ exports[`renders ./components/layout/demo/top-side-2.md correctly 1`] = `
<li
class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu"
role="menuitem"
style="line-height:64px;visibility:hidden;position:absolute"
style="visibility:hidden;position:absolute"
>
<div
aria-expanded="false"

View File

@ -41,44 +41,952 @@ exports[`TimePicker not render clean icon when allowClear is false 1`] = `
`;
exports[`TimePicker prop locale should works 1`] = `
<span
class="ant-time-picker"
style=""
>
<input
class="ant-time-picker-input"
id=""
placeholder="Избери дата"
type="text"
value=""
/>
Array [
<span
class="ant-time-picker-icon"
class="ant-time-picker"
style=""
>
<i
aria-label="icon: clock-circle"
class="anticon anticon-clock-circle ant-time-picker-clock-icon"
<input
class="ant-time-picker-input"
id=""
placeholder="Избери дата"
type="text"
value=""
/>
<span
class="ant-time-picker-icon"
>
<svg
aria-hidden="true"
class=""
data-icon="clock-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
<i
aria-label="icon: clock-circle"
class="anticon anticon-clock-circle ant-time-picker-clock-icon"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
/>
<path
d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"
/>
</svg>
</i>
</span>
</span>
<svg
aria-hidden="true"
class=""
data-icon="clock-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
/>
<path
d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"
/>
</svg>
</i>
</span>
</span>,
<div>
<div
class="ant-time-picker-panel ant-time-picker-panel-column-3 ant-time-picker-panel-placement-bottomLeft slide-up-appear"
style="left: -999px; top: -1001px;"
>
<div
class="ant-time-picker-panel-inner"
>
<div
class="ant-time-picker-panel-input-wrap"
>
<input
class="ant-time-picker-panel-input"
placeholder="Избери дата"
value=""
/>
</div>
<div
class="ant-time-picker-panel-combobox"
>
<div
class="ant-time-picker-panel-select"
>
<ul>
<li
class="ant-time-picker-panel-select-option-selected"
role="button"
>
00
</li>
<li
class=""
role="button"
>
01
</li>
<li
class=""
role="button"
>
02
</li>
<li
class=""
role="button"
>
03
</li>
<li
class=""
role="button"
>
04
</li>
<li
class=""
role="button"
>
05
</li>
<li
class=""
role="button"
>
06
</li>
<li
class=""
role="button"
>
07
</li>
<li
class=""
role="button"
>
08
</li>
<li
class=""
role="button"
>
09
</li>
<li
class=""
role="button"
>
10
</li>
<li
class=""
role="button"
>
11
</li>
<li
class=""
role="button"
>
12
</li>
<li
class=""
role="button"
>
13
</li>
<li
class=""
role="button"
>
14
</li>
<li
class=""
role="button"
>
15
</li>
<li
class=""
role="button"
>
16
</li>
<li
class=""
role="button"
>
17
</li>
<li
class=""
role="button"
>
18
</li>
<li
class=""
role="button"
>
19
</li>
<li
class=""
role="button"
>
20
</li>
<li
class=""
role="button"
>
21
</li>
<li
class=""
role="button"
>
22
</li>
<li
class=""
role="button"
>
23
</li>
</ul>
</div>
<div
class="ant-time-picker-panel-select"
>
<ul>
<li
class=""
role="button"
>
00
</li>
<li
class=""
role="button"
>
01
</li>
<li
class=""
role="button"
>
02
</li>
<li
class=""
role="button"
>
03
</li>
<li
class=""
role="button"
>
04
</li>
<li
class=""
role="button"
>
05
</li>
<li
class=""
role="button"
>
06
</li>
<li
class=""
role="button"
>
07
</li>
<li
class=""
role="button"
>
08
</li>
<li
class=""
role="button"
>
09
</li>
<li
class=""
role="button"
>
10
</li>
<li
class=""
role="button"
>
11
</li>
<li
class=""
role="button"
>
12
</li>
<li
class=""
role="button"
>
13
</li>
<li
class=""
role="button"
>
14
</li>
<li
class=""
role="button"
>
15
</li>
<li
class=""
role="button"
>
16
</li>
<li
class=""
role="button"
>
17
</li>
<li
class=""
role="button"
>
18
</li>
<li
class=""
role="button"
>
19
</li>
<li
class=""
role="button"
>
20
</li>
<li
class=""
role="button"
>
21
</li>
<li
class=""
role="button"
>
22
</li>
<li
class=""
role="button"
>
23
</li>
<li
class=""
role="button"
>
24
</li>
<li
class=""
role="button"
>
25
</li>
<li
class=""
role="button"
>
26
</li>
<li
class=""
role="button"
>
27
</li>
<li
class=""
role="button"
>
28
</li>
<li
class=""
role="button"
>
29
</li>
<li
class=""
role="button"
>
30
</li>
<li
class=""
role="button"
>
31
</li>
<li
class=""
role="button"
>
32
</li>
<li
class=""
role="button"
>
33
</li>
<li
class=""
role="button"
>
34
</li>
<li
class=""
role="button"
>
35
</li>
<li
class=""
role="button"
>
36
</li>
<li
class=""
role="button"
>
37
</li>
<li
class=""
role="button"
>
38
</li>
<li
class=""
role="button"
>
39
</li>
<li
class=""
role="button"
>
40
</li>
<li
class=""
role="button"
>
41
</li>
<li
class=""
role="button"
>
42
</li>
<li
class=""
role="button"
>
43
</li>
<li
class=""
role="button"
>
44
</li>
<li
class=""
role="button"
>
45
</li>
<li
class=""
role="button"
>
46
</li>
<li
class=""
role="button"
>
47
</li>
<li
class=""
role="button"
>
48
</li>
<li
class=""
role="button"
>
49
</li>
<li
class="ant-time-picker-panel-select-option-selected"
role="button"
>
50
</li>
<li
class=""
role="button"
>
51
</li>
<li
class=""
role="button"
>
52
</li>
<li
class=""
role="button"
>
53
</li>
<li
class=""
role="button"
>
54
</li>
<li
class=""
role="button"
>
55
</li>
<li
class=""
role="button"
>
56
</li>
<li
class=""
role="button"
>
57
</li>
<li
class=""
role="button"
>
58
</li>
<li
class=""
role="button"
>
59
</li>
</ul>
</div>
<div
class="ant-time-picker-panel-select"
>
<ul>
<li
class=""
role="button"
>
00
</li>
<li
class=""
role="button"
>
01
</li>
<li
class=""
role="button"
>
02
</li>
<li
class=""
role="button"
>
03
</li>
<li
class=""
role="button"
>
04
</li>
<li
class=""
role="button"
>
05
</li>
<li
class=""
role="button"
>
06
</li>
<li
class=""
role="button"
>
07
</li>
<li
class=""
role="button"
>
08
</li>
<li
class=""
role="button"
>
09
</li>
<li
class=""
role="button"
>
10
</li>
<li
class=""
role="button"
>
11
</li>
<li
class=""
role="button"
>
12
</li>
<li
class=""
role="button"
>
13
</li>
<li
class=""
role="button"
>
14
</li>
<li
class=""
role="button"
>
15
</li>
<li
class=""
role="button"
>
16
</li>
<li
class=""
role="button"
>
17
</li>
<li
class=""
role="button"
>
18
</li>
<li
class=""
role="button"
>
19
</li>
<li
class=""
role="button"
>
20
</li>
<li
class=""
role="button"
>
21
</li>
<li
class=""
role="button"
>
22
</li>
<li
class=""
role="button"
>
23
</li>
<li
class=""
role="button"
>
24
</li>
<li
class=""
role="button"
>
25
</li>
<li
class="ant-time-picker-panel-select-option-selected"
role="button"
>
26
</li>
<li
class=""
role="button"
>
27
</li>
<li
class=""
role="button"
>
28
</li>
<li
class=""
role="button"
>
29
</li>
<li
class=""
role="button"
>
30
</li>
<li
class=""
role="button"
>
31
</li>
<li
class=""
role="button"
>
32
</li>
<li
class=""
role="button"
>
33
</li>
<li
class=""
role="button"
>
34
</li>
<li
class=""
role="button"
>
35
</li>
<li
class=""
role="button"
>
36
</li>
<li
class=""
role="button"
>
37
</li>
<li
class=""
role="button"
>
38
</li>
<li
class=""
role="button"
>
39
</li>
<li
class=""
role="button"
>
40
</li>
<li
class=""
role="button"
>
41
</li>
<li
class=""
role="button"
>
42
</li>
<li
class=""
role="button"
>
43
</li>
<li
class=""
role="button"
>
44
</li>
<li
class=""
role="button"
>
45
</li>
<li
class=""
role="button"
>
46
</li>
<li
class=""
role="button"
>
47
</li>
<li
class=""
role="button"
>
48
</li>
<li
class=""
role="button"
>
49
</li>
<li
class=""
role="button"
>
50
</li>
<li
class=""
role="button"
>
51
</li>
<li
class=""
role="button"
>
52
</li>
<li
class=""
role="button"
>
53
</li>
<li
class=""
role="button"
>
54
</li>
<li
class=""
role="button"
>
55
</li>
<li
class=""
role="button"
>
56
</li>
<li
class=""
role="button"
>
57
</li>
<li
class=""
role="button"
>
58
</li>
<li
class=""
role="button"
>
59
</li>
</ul>
</div>
</div>
</div>
</div>
</div>,
]
`;
exports[`TimePicker renders addon correctly 1`] = `