mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 15:46:10 +08:00
673 lines
12 KiB
Plaintext
673 lines
12 KiB
Plaintext
|
exports[`test renders ./components/pagination/demo/basic.md correctly 1`] = `
|
|||
|
<ul
|
|||
|
class="ant-pagination "
|
|||
|
unselectable="unselectable">
|
|||
|
<li
|
|||
|
class="ant-pagination-disabled ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
`;
|
|||
|
|
|||
|
exports[`test renders ./components/pagination/demo/changer.md correctly 1`] = `
|
|||
|
<ul
|
|||
|
class="ant-pagination "
|
|||
|
unselectable="unselectable">
|
|||
|
<li
|
|||
|
class=" ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3 ant-pagination-item-active"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-jump-next"
|
|||
|
title="向后 5 页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-50"
|
|||
|
title="50">
|
|||
|
<a>
|
|||
|
50
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<div
|
|||
|
class="ant-pagination-options">
|
|||
|
<div
|
|||
|
class="ant-pagination-options-size-changer ant-select ant-select-enabled">
|
|||
|
<div
|
|||
|
aria-autocomplete="list"
|
|||
|
aria-expanded="false"
|
|||
|
aria-haspopup="true"
|
|||
|
class="ant-select-selection
|
|||
|
ant-select-selection--single"
|
|||
|
role="combobox"
|
|||
|
tabindex="0">
|
|||
|
<div
|
|||
|
class="ant-select-selection__rendered">
|
|||
|
<div
|
|||
|
class="ant-select-selection-selected-value"
|
|||
|
style="display:block;opacity:1;"
|
|||
|
title="10 条/页">
|
|||
|
10 条/页
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<span
|
|||
|
class="ant-select-arrow"
|
|||
|
style="user-select:none;-webkit-user-select:none;"
|
|||
|
unselectable="unselectable">
|
|||
|
<b />
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</ul>
|
|||
|
`;
|
|||
|
|
|||
|
exports[`test renders ./components/pagination/demo/controlled.md correctly 1`] = `
|
|||
|
<ul
|
|||
|
class="ant-pagination "
|
|||
|
unselectable="unselectable">
|
|||
|
<li
|
|||
|
class=" ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3 ant-pagination-item-active"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
`;
|
|||
|
|
|||
|
exports[`test renders ./components/pagination/demo/jump.md correctly 1`] = `
|
|||
|
<ul
|
|||
|
class="ant-pagination "
|
|||
|
unselectable="unselectable">
|
|||
|
<li
|
|||
|
class=" ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2 ant-pagination-item-active"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-jump-next"
|
|||
|
title="向后 5 页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-50"
|
|||
|
title="50">
|
|||
|
<a>
|
|||
|
50
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<div
|
|||
|
class="ant-pagination-options">
|
|||
|
<div
|
|||
|
class="ant-pagination-options-quick-jumper">
|
|||
|
跳至
|
|||
|
<input
|
|||
|
type="text"
|
|||
|
value="2" />
|
|||
|
页
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</ul>
|
|||
|
`;
|
|||
|
|
|||
|
exports[`test renders ./components/pagination/demo/mini.md correctly 1`] = `
|
|||
|
<div>
|
|||
|
<ul
|
|||
|
class="ant-pagination mini"
|
|||
|
unselectable="unselectable">
|
|||
|
<li
|
|||
|
class="ant-pagination-disabled ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
<br />
|
|||
|
<ul
|
|||
|
class="ant-pagination mini"
|
|||
|
unselectable="unselectable">
|
|||
|
<li
|
|||
|
class="ant-pagination-disabled ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<div
|
|||
|
class="ant-pagination-options">
|
|||
|
<div
|
|||
|
class="ant-select-sm ant-pagination-options-size-changer ant-select ant-select-enabled">
|
|||
|
<div
|
|||
|
aria-autocomplete="list"
|
|||
|
aria-expanded="false"
|
|||
|
aria-haspopup="true"
|
|||
|
class="ant-select-selection
|
|||
|
ant-select-selection--single"
|
|||
|
role="combobox"
|
|||
|
tabindex="0">
|
|||
|
<div
|
|||
|
class="ant-select-selection__rendered">
|
|||
|
<div
|
|||
|
class="ant-select-selection-selected-value"
|
|||
|
style="display:block;opacity:1;"
|
|||
|
title="10 条/页">
|
|||
|
10 条/页
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<span
|
|||
|
class="ant-select-arrow"
|
|||
|
style="user-select:none;-webkit-user-select:none;"
|
|||
|
unselectable="unselectable">
|
|||
|
<b />
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div
|
|||
|
class="ant-pagination-options-quick-jumper">
|
|||
|
跳至
|
|||
|
<input
|
|||
|
type="text"
|
|||
|
value="1" />
|
|||
|
页
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</ul>
|
|||
|
<br />
|
|||
|
<ul
|
|||
|
class="ant-pagination mini"
|
|||
|
unselectable="unselectable">
|
|||
|
<span
|
|||
|
class="ant-pagination-total-text">
|
|||
|
Total 50 items
|
|||
|
</span>
|
|||
|
<li
|
|||
|
class="ant-pagination-disabled ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
`;
|
|||
|
|
|||
|
exports[`test renders ./components/pagination/demo/more.md correctly 1`] = `
|
|||
|
<ul
|
|||
|
class="ant-pagination "
|
|||
|
unselectable="unselectable">
|
|||
|
<li
|
|||
|
class="ant-pagination-disabled ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-jump-next"
|
|||
|
title="向后 5 页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-50"
|
|||
|
title="50">
|
|||
|
<a>
|
|||
|
50
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
`;
|
|||
|
|
|||
|
exports[`test renders ./components/pagination/demo/simple.md correctly 1`] = `
|
|||
|
<ul
|
|||
|
class="ant-pagination ant-pagination-simple ">
|
|||
|
<li
|
|||
|
class=" ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<div
|
|||
|
class="ant-pagination-simple-pager"
|
|||
|
title="2/5">
|
|||
|
<input
|
|||
|
type="text"
|
|||
|
value="2" />
|
|||
|
<span
|
|||
|
class="ant-pagination-slash">
|
|||
|
/
|
|||
|
</span>
|
|||
|
5
|
|||
|
</div>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
`;
|
|||
|
|
|||
|
exports[`test renders ./components/pagination/demo/total.md correctly 1`] = `
|
|||
|
<div>
|
|||
|
<ul
|
|||
|
class="ant-pagination "
|
|||
|
unselectable="unselectable">
|
|||
|
<span
|
|||
|
class="ant-pagination-total-text">
|
|||
|
Total 85 items
|
|||
|
</span>
|
|||
|
<li
|
|||
|
class="ant-pagination-disabled ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
<br />
|
|||
|
<ul
|
|||
|
class="ant-pagination "
|
|||
|
unselectable="unselectable">
|
|||
|
<span
|
|||
|
class="ant-pagination-total-text">
|
|||
|
1-20 of 85 items
|
|||
|
</span>
|
|||
|
<li
|
|||
|
class="ant-pagination-disabled ant-pagination-prev"
|
|||
|
title="上一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
|
|||
|
title="1">
|
|||
|
<a>
|
|||
|
1
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-2"
|
|||
|
title="2">
|
|||
|
<a>
|
|||
|
2
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-3"
|
|||
|
title="3">
|
|||
|
<a>
|
|||
|
3
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-4"
|
|||
|
title="4">
|
|||
|
<a>
|
|||
|
4
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class="ant-pagination-item ant-pagination-item-5"
|
|||
|
title="5">
|
|||
|
<a>
|
|||
|
5
|
|||
|
</a>
|
|||
|
</li>
|
|||
|
<li
|
|||
|
class=" ant-pagination-next"
|
|||
|
title="下一页">
|
|||
|
<a />
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
`;
|