2017-03-17 18:56:30 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-11-18 23:46:24 +08:00
|
|
|
exports[`Table.rowSelection fix selection column on the left 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-table-wrapper"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-spin-nested-loading"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-spin-container"
|
|
|
|
>
|
|
|
|
<div
|
2018-06-27 18:57:04 +08:00
|
|
|
class="ant-table ant-table-default ant-table-scroll-position-left"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-table-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-table-scroll"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-table-body"
|
|
|
|
>
|
|
|
|
<table
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<colgroup>
|
|
|
|
<col />
|
|
|
|
<col />
|
|
|
|
</colgroup>
|
|
|
|
<thead
|
|
|
|
class="ant-table-thead"
|
|
|
|
>
|
|
|
|
<tr>
|
|
|
|
<th
|
2018-06-08 16:32:04 +08:00
|
|
|
class="ant-table-fixed-columns-in-body ant-table-selection-column"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<div
|
|
|
|
class="ant-table-selection"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</th>
|
|
|
|
<th
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Name
|
|
|
|
</span>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody
|
|
|
|
class="ant-table-tbody"
|
|
|
|
>
|
|
|
|
<tr
|
|
|
|
class="ant-table-row ant-table-row-level-0"
|
2018-08-09 16:07:57 +08:00
|
|
|
data-row-key="0"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<td
|
2018-06-08 16:32:04 +08:00
|
|
|
class="ant-table-fixed-columns-in-body ant-table-selection-column"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-table-row-indent indent-level-0"
|
|
|
|
style="padding-left:0px"
|
|
|
|
/>
|
|
|
|
Jack
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr
|
|
|
|
class="ant-table-row ant-table-row-level-0"
|
2018-08-09 16:07:57 +08:00
|
|
|
data-row-key="1"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<td
|
2018-06-08 16:32:04 +08:00
|
|
|
class="ant-table-fixed-columns-in-body ant-table-selection-column"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-table-row-indent indent-level-0"
|
|
|
|
style="padding-left:0px"
|
|
|
|
/>
|
|
|
|
Lucy
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr
|
|
|
|
class="ant-table-row ant-table-row-level-0"
|
2018-08-09 16:07:57 +08:00
|
|
|
data-row-key="2"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<td
|
2018-06-08 16:32:04 +08:00
|
|
|
class="ant-table-fixed-columns-in-body ant-table-selection-column"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-table-row-indent indent-level-0"
|
|
|
|
style="padding-left:0px"
|
|
|
|
/>
|
|
|
|
Tom
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr
|
|
|
|
class="ant-table-row ant-table-row-level-0"
|
2018-08-09 16:07:57 +08:00
|
|
|
data-row-key="3"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<td
|
2018-06-08 16:32:04 +08:00
|
|
|
class="ant-table-fixed-columns-in-body ant-table-selection-column"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-table-row-indent indent-level-0"
|
|
|
|
style="padding-left:0px"
|
|
|
|
/>
|
|
|
|
Jerry
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-table-fixed-left"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-table-body-outer"
|
|
|
|
style="-webkit-transform:translate3d (0, 0, 0)"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-table-body-inner"
|
|
|
|
>
|
|
|
|
<table
|
|
|
|
class="ant-table-fixed"
|
|
|
|
>
|
|
|
|
<colgroup>
|
|
|
|
<col />
|
|
|
|
</colgroup>
|
|
|
|
<thead
|
|
|
|
class="ant-table-thead"
|
|
|
|
>
|
|
|
|
<tr>
|
|
|
|
<th
|
|
|
|
class="ant-table-selection-column"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<div
|
|
|
|
class="ant-table-selection"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody
|
|
|
|
class="ant-table-tbody"
|
|
|
|
>
|
|
|
|
<tr
|
|
|
|
class="ant-table-row ant-table-row-level-0"
|
2018-08-09 16:07:57 +08:00
|
|
|
data-row-key="0"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<td
|
|
|
|
class="ant-table-selection-column"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr
|
|
|
|
class="ant-table-row ant-table-row-level-0"
|
2018-08-09 16:07:57 +08:00
|
|
|
data-row-key="1"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<td
|
|
|
|
class="ant-table-selection-column"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr
|
|
|
|
class="ant-table-row ant-table-row-level-0"
|
2018-08-09 16:07:57 +08:00
|
|
|
data-row-key="2"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<td
|
|
|
|
class="ant-table-selection-column"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr
|
|
|
|
class="ant-table-row ant-table-row-level-0"
|
2018-08-09 16:07:57 +08:00
|
|
|
data-row-key="3"
|
2017-11-18 23:46:24 +08:00
|
|
|
>
|
|
|
|
<td
|
|
|
|
class="ant-table-selection-column"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<label
|
|
|
|
class="ant-checkbox-wrapper"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="ant-checkbox-input"
|
|
|
|
type="checkbox"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="ant-checkbox-inner"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<ul
|
|
|
|
class="ant-pagination ant-table-pagination"
|
|
|
|
unselectable="unselectable"
|
|
|
|
>
|
|
|
|
<li
|
|
|
|
aria-disabled="true"
|
|
|
|
class="ant-pagination-disabled ant-pagination-prev"
|
|
|
|
title="Previous Page"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
class="ant-pagination-item-link"
|
2018-08-21 17:14:35 +08:00
|
|
|
>
|
|
|
|
<i
|
|
|
|
class="anticon anticon-left"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class=""
|
|
|
|
data-icon="left"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
|
|
|
viewBox="0 0 1024 1024"
|
|
|
|
width="1em"
|
2018-08-27 20:40:11 +08:00
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
2018-08-21 17:14:35 +08:00
|
|
|
>
|
|
|
|
<path
|
2018-08-24 18:36:08 +08:00
|
|
|
d="M724.4 895.7c-9.6 0-19.3-3.2-27.4-9.6L273.2 545.2c-10.3-8.3-16.3-20.8-16.3-34.1 0-13.2 6-25.8 16.3-34l422-339.1c18.8-15.1 46.3-12.1 61.4 6.7 15.1 18.8 12.1 46.3-6.7 61.4l-379.6 305L751.8 818c18.8 15.1 21.8 42.6 6.7 61.4-8.7 10.7-21.3 16.3-34.1 16.3z"
|
2018-08-21 17:14:35 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
|
|
|
</a>
|
2017-11-18 23:46:24 +08:00
|
|
|
</li>
|
|
|
|
<li
|
|
|
|
class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active"
|
|
|
|
tabindex="0"
|
|
|
|
title="1"
|
|
|
|
>
|
|
|
|
<a>
|
|
|
|
1
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li
|
|
|
|
aria-disabled="true"
|
|
|
|
class="ant-pagination-disabled ant-pagination-next"
|
|
|
|
title="Next Page"
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
class="ant-pagination-item-link"
|
2018-08-21 17:14:35 +08:00
|
|
|
>
|
|
|
|
<i
|
|
|
|
class="anticon anticon-right"
|
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class=""
|
|
|
|
data-icon="right"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
|
|
|
viewBox="0 0 1024 1024"
|
|
|
|
width="1em"
|
2018-08-27 20:40:11 +08:00
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
2018-08-21 17:14:35 +08:00
|
|
|
>
|
|
|
|
<path
|
2018-08-24 18:36:08 +08:00
|
|
|
d="M300.6 895.7c9.6 0 19.3-3.2 27.4-9.6l423.8-340.9c10.3-8.3 16.3-20.8 16.3-34.1 0-13.2-6-25.8-16.3-34L329.8 138c-18.8-15.1-46.3-12.1-61.4 6.7-15.1 18.8-12.1 46.3 6.7 61.4l379.6 305.1L273.2 818c-18.8 15.1-21.8 42.6-6.7 61.4 8.7 10.7 21.3 16.3 34.1 16.3z"
|
2018-08-21 17:14:35 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
|
|
|
</a>
|
2017-11-18 23:46:24 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2017-03-24 11:44:36 +08:00
|
|
|
exports[`Table.rowSelection render with default selection correctly 1`] = `
|
2017-02-23 19:29:47 +08:00
|
|
|
<div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-dropdown ant-dropdown-placement-bottomLeft ant-dropdown-hidden"
|
|
|
|
>
|
2017-02-23 19:29:47 +08:00
|
|
|
<ul
|
2017-11-11 00:07:03 +08:00
|
|
|
class="ant-dropdown-menu ant-table-selection-menu ant-dropdown-menu-light ant-dropdown-menu-root ant-dropdown-menu-vertical"
|
2017-02-23 19:29:47 +08:00
|
|
|
role="menu"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-02-23 19:29:47 +08:00
|
|
|
<li
|
|
|
|
class="ant-dropdown-menu-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
role="menuitem"
|
|
|
|
>
|
2017-02-23 19:29:47 +08:00
|
|
|
<div>
|
2017-09-26 23:12:47 +08:00
|
|
|
Select current page
|
2017-02-23 19:29:47 +08:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li
|
|
|
|
class="ant-dropdown-menu-item"
|
2017-03-17 18:56:30 +08:00
|
|
|
role="menuitem"
|
|
|
|
>
|
2017-02-23 19:29:47 +08:00
|
|
|
<div>
|
2017-09-26 23:12:47 +08:00
|
|
|
Invert current page
|
2017-02-23 19:29:47 +08:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|