ant-design/components/pagination/__tests__/__snapshots__/demo.test.js.snap

799 lines
13 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/pagination/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
class="ant-pagination "
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<li
class="ant-pagination-disabled ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-2"
title="2"
>
2016-11-22 14:28:05 +08:00
<a>
2
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-3"
title="3"
>
2016-11-22 14:28:05 +08:00
<a>
3
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-4"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
4
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-5"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
5
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
</ul>
`;
exports[`renders ./components/pagination/demo/changer.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
class="ant-pagination "
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<li
class=" ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-1"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-2"
title="2"
>
2016-11-22 14:28:05 +08:00
<a>
2
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-3 ant-pagination-item-active"
title="3"
>
2016-11-22 14:28:05 +08:00
<a>
3
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-4"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
4
</a>
</li>
<li
2016-12-26 18:24:00 +08:00
class="ant-pagination-item ant-pagination-item-5 ant-pagination-item-before-jump-next"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
5
</a>
</li>
<li
class="ant-pagination-jump-next"
title="向后 5 页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-50"
title="50"
>
2016-11-22 14:28:05 +08:00
<a>
50
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<div
class="ant-pagination-options"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-pagination-options-size-changer ant-select ant-select-enabled"
>
2016-11-22 14:28:05 +08:00
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection__rendered"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection-selected-value"
style="display:block;opacity:1;"
title="10 条/页"
>
2016-11-22 14:28:05 +08:00
10 条/页
</div>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<b />
</span>
</div>
</div>
</div>
</ul>
`;
exports[`renders ./components/pagination/demo/controlled.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
class="ant-pagination "
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<li
class=" ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-1"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-2"
title="2"
>
2016-11-22 14:28:05 +08:00
<a>
2
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-3 ant-pagination-item-active"
title="3"
>
2016-11-22 14:28:05 +08:00
<a>
3
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-4"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
4
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-5"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
5
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
</ul>
`;
exports[`renders ./components/pagination/demo/jump.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
class="ant-pagination "
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<li
class=" ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-1"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-2 ant-pagination-item-active"
title="2"
>
2016-11-22 14:28:05 +08:00
<a>
2
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-3"
title="3"
>
2016-11-22 14:28:05 +08:00
<a>
3
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-4"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
4
</a>
</li>
<li
2016-12-26 18:24:00 +08:00
class="ant-pagination-item ant-pagination-item-5 ant-pagination-item-before-jump-next"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
5
</a>
</li>
<li
class="ant-pagination-jump-next"
title="向后 5 页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-50"
title="50"
>
2016-11-22 14:28:05 +08:00
<a>
50
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<div
class="ant-pagination-options"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-pagination-options-quick-jumper"
>
2016-11-22 14:28:05 +08:00
跳至
<input
type="text"
value="2"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</ul>
`;
exports[`renders ./components/pagination/demo/mini.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<ul
class="ant-pagination mini"
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<li
class="ant-pagination-disabled ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-2"
title="2"
>
2016-11-22 14:28:05 +08:00
<a>
2
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-3"
title="3"
>
2016-11-22 14:28:05 +08:00
<a>
3
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-4"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
4
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-5"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
5
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
</ul>
<ul
class="ant-pagination mini"
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<li
class="ant-pagination-disabled ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-2"
title="2"
>
2016-11-22 14:28:05 +08:00
<a>
2
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-3"
title="3"
>
2016-11-22 14:28:05 +08:00
<a>
3
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-4"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
4
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-5"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
5
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<div
class="ant-pagination-options"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-sm ant-pagination-options-size-changer ant-select ant-select-enabled"
>
2016-11-22 14:28:05 +08:00
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
tabindex="0"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection__rendered"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-select-selection-selected-value"
style="display:block;opacity:1;"
title="10 条/页"
>
2016-11-22 14:28:05 +08:00
10 条/页
</div>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<b />
</span>
</div>
</div>
<div
class="ant-pagination-options-quick-jumper"
>
2016-11-22 14:28:05 +08:00
跳至
<input
type="text"
value="1"
/>
2016-11-22 14:28:05 +08:00
</div>
</div>
</ul>
<ul
class="ant-pagination mini"
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-pagination-total-text"
>
2016-11-22 14:28:05 +08:00
Total 50 items
</span>
<li
class="ant-pagination-disabled ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-2"
title="2"
>
2016-11-22 14:28:05 +08:00
<a>
2
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-3"
title="3"
>
2016-11-22 14:28:05 +08:00
<a>
3
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-4"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
4
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-5"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
5
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
</ul>
</div>
`;
exports[`renders ./components/pagination/demo/more.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
class="ant-pagination "
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<li
2017-02-18 18:12:38 +08:00
class=" ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
2017-02-18 18:12:38 +08:00
class="ant-pagination-item ant-pagination-item-1"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
2017-02-18 18:12:38 +08:00
class="ant-pagination-jump-prev"
title="向前 5 页"
>
2017-02-18 18:12:38 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-4 ant-pagination-item-after-jump-prev"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
2017-02-18 18:12:38 +08:00
4
2016-11-22 14:28:05 +08:00
</a>
</li>
<li
2017-02-18 18:12:38 +08:00
class="ant-pagination-item ant-pagination-item-5"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
2017-02-18 18:12:38 +08:00
5
2016-11-22 14:28:05 +08:00
</a>
</li>
<li
2017-02-18 18:12:38 +08:00
class="ant-pagination-item ant-pagination-item-6 ant-pagination-item-active"
title="6"
>
2016-11-22 14:28:05 +08:00
<a>
2017-02-18 18:12:38 +08:00
6
2016-11-22 14:28:05 +08:00
</a>
</li>
<li
2017-02-18 18:12:38 +08:00
class="ant-pagination-item ant-pagination-item-7"
title="7"
>
2016-11-22 14:28:05 +08:00
<a>
2017-02-18 18:12:38 +08:00
7
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-8 ant-pagination-item-before-jump-next"
title="8"
>
2017-02-18 18:12:38 +08:00
<a>
8
2016-11-22 14:28:05 +08:00
</a>
</li>
<li
class="ant-pagination-jump-next"
title="向后 5 页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-50"
title="50"
>
2016-11-22 14:28:05 +08:00
<a>
50
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
</ul>
`;
exports[`renders ./components/pagination/demo/simple.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
class="ant-pagination ant-pagination-simple "
>
2016-11-22 14:28:05 +08:00
<li
class=" ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
2017-01-08 16:59:34 +08:00
<li
2016-11-22 14:28:05 +08:00
class="ant-pagination-simple-pager"
title="2/5"
>
2016-11-22 14:28:05 +08:00
<input
type="text"
value="2"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-pagination-slash"
>
2016-11-22 14:28:05 +08:00
</span>
5
2017-01-08 16:59:34 +08:00
</li>
2016-11-22 14:28:05 +08:00
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
</ul>
`;
exports[`renders ./components/pagination/demo/total.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<ul
class="ant-pagination "
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-pagination-total-text"
>
2016-11-22 14:28:05 +08:00
Total 85 items
</span>
<li
class="ant-pagination-disabled ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-2"
title="2"
>
2016-11-22 14:28:05 +08:00
<a>
2
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-3"
title="3"
>
2016-11-22 14:28:05 +08:00
<a>
3
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-4"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
4
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-5"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
5
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
</ul>
<br />
<ul
class="ant-pagination "
unselectable="unselectable"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-pagination-total-text"
>
2016-11-22 14:28:05 +08:00
1-20 of 85 items
</span>
<li
class="ant-pagination-disabled ant-pagination-prev"
title="上一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
<li
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
title="1"
>
2016-11-22 14:28:05 +08:00
<a>
1
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-2"
title="2"
>
2016-11-22 14:28:05 +08:00
<a>
2
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-3"
title="3"
>
2016-11-22 14:28:05 +08:00
<a>
3
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-4"
title="4"
>
2016-11-22 14:28:05 +08:00
<a>
4
</a>
</li>
<li
class="ant-pagination-item ant-pagination-item-5"
title="5"
>
2016-11-22 14:28:05 +08:00
<a>
5
</a>
</li>
<li
class=" ant-pagination-next"
title="下一页"
>
2016-11-22 14:28:05 +08:00
<a />
</li>
</ul>
</div>
`;