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
|
|
|
|
class="ant-table ant-table-large ant-table-scroll-position-left"
|
|
|
|
>
|
|
|
|
<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
|
|
|
|
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>
|
|
|
|
<th
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Name
|
|
|
|
</span>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody
|
|
|
|
class="ant-table-tbody"
|
|
|
|
>
|
|
|
|
<tr
|
|
|
|
class="ant-table-row ant-table-row-level-0"
|
|
|
|
>
|
|
|
|
<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>
|
|
|
|
<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"
|
|
|
|
>
|
|
|
|
<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>
|
|
|
|
<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"
|
|
|
|
>
|
|
|
|
<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>
|
|
|
|
<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"
|
|
|
|
>
|
|
|
|
<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>
|
|
|
|
<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"
|
|
|
|
>
|
|
|
|
<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"
|
|
|
|
>
|
|
|
|
<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"
|
|
|
|
>
|
|
|
|
<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"
|
|
|
|
>
|
|
|
|
<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"
|
|
|
|
/>
|
|
|
|
</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"
|
|
|
|
/>
|
|
|
|
</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
|
|
|
tabindex="0"
|
|
|
|
>
|
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>
|
|
|
|
`;
|