update table snapshot

This commit is contained in:
afc163 2018-09-17 19:08:01 +08:00 committed by 偏右
parent 8feb15ea72
commit 71316d6baa
8 changed files with 2223 additions and 1802 deletions

View File

@ -1711,36 +1711,40 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
>
<tr>
<th
class="ant-table-column-has-filters"
class="ant-table-column-has-actions ant-table-column-has-filters"
>
<span>
<div
title="Sort"
>
Name
<i
class="anticon anticon-filter ant-dropdown-trigger"
title="Filter menu"
</div>
<i
class="anticon anticon-filter ant-dropdown-trigger"
title="Filter menu"
>
<svg
aria-hidden="true"
class=""
data-icon="filter"
fill="currentColor"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<svg
aria-hidden="true"
class=""
data-icon="filter"
fill="currentColor"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"
/>
</svg>
</i>
</span>
<path
d="M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"
/>
</svg>
</i>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Age
</span>
</div>
</th>
</tr>
</thead>

View File

@ -29,7 +29,7 @@ exports[`Table.filter override custom filter correctly 1`] = `
exports[`Table.filter renders custom content correctly 1`] = `
<div>
<div
class="ant-dropdown ant-dropdown-placement-bottomLeft ant-dropdown-hidden"
class="ant-dropdown ant-dropdown-placement-bottomRight ant-dropdown-hidden"
>
<div>
<div
@ -44,7 +44,7 @@ exports[`Table.filter renders custom content correctly 1`] = `
exports[`Table.filter renders custom filter icon correctly 1`] = `
<span
class="ant-table-filter-icon ant-dropdown-trigger"
class="ant-table-filter-icon ant-table-filter-selected ant-dropdown-trigger"
style=""
title="Filter menu"
>
@ -92,29 +92,31 @@ exports[`Table.filter renders filter correctly 1`] = `
>
<tr>
<th
class="ant-table-column-has-filters"
class="ant-table-column-has-actions ant-table-column-has-filters"
>
<span>
<div
title="Sort"
>
Name
<i
class="anticon anticon-filter ant-dropdown-trigger"
title="Filter menu"
</div>
<i
class="anticon anticon-filter ant-dropdown-trigger"
title="Filter menu"
>
<svg
aria-hidden="true"
class=""
data-icon="filter"
fill="currentColor"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<svg
aria-hidden="true"
class=""
data-icon="filter"
fill="currentColor"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"
/>
</svg>
</i>
</span>
<path
d="M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"
/>
</svg>
</i>
</th>
</tr>
</thead>
@ -126,7 +128,7 @@ exports[`Table.filter renders filter correctly 1`] = `
data-row-key="0"
>
<td
class="ant-table-column-has-filters"
class="ant-table-column-has-actions ant-table-column-has-filters"
>
<span
class="ant-table-row-indent indent-level-0"
@ -140,7 +142,7 @@ exports[`Table.filter renders filter correctly 1`] = `
data-row-key="1"
>
<td
class="ant-table-column-has-filters"
class="ant-table-column-has-actions ant-table-column-has-filters"
>
<span
class="ant-table-row-indent indent-level-0"
@ -154,7 +156,7 @@ exports[`Table.filter renders filter correctly 1`] = `
data-row-key="2"
>
<td
class="ant-table-column-has-filters"
class="ant-table-column-has-actions ant-table-column-has-filters"
>
<span
class="ant-table-row-indent indent-level-0"
@ -168,7 +170,7 @@ exports[`Table.filter renders filter correctly 1`] = `
data-row-key="3"
>
<td
class="ant-table-column-has-filters"
class="ant-table-column-has-actions ant-table-column-has-filters"
>
<span
class="ant-table-row-indent indent-level-0"
@ -190,7 +192,7 @@ exports[`Table.filter renders filter correctly 1`] = `
exports[`Table.filter renders menu correctly 1`] = `
<div>
<div
class="ant-dropdown ant-dropdown-placement-bottomLeft ant-dropdown-hidden"
class="ant-dropdown ant-dropdown-placement-bottomRight ant-dropdown-hidden"
>
<div
class="ant-table-filter-dropdown"
@ -285,7 +287,7 @@ exports[`Table.filter renders menu correctly 1`] = `
exports[`Table.filter renders radio filter correctly 1`] = `
<div>
<div
class="ant-dropdown ant-dropdown-placement-bottomLeft ant-dropdown-hidden"
class="ant-dropdown ant-dropdown-placement-bottomRight ant-dropdown-hidden"
>
<div
class="ant-table-filter-dropdown"

View File

@ -32,9 +32,11 @@ exports[`Table.pagination renders pagination correctly 1`] = `
<th
class=""
>
<span>
<div
title="Sort"
>
Name
</span>
</div>
</th>
</tr>
</thead>

View File

@ -6,59 +6,52 @@ exports[`Table.sorter renders sorter icon correctly 1`] = `
>
<tr>
<th
class="ant-table-column-has-filters"
class="ant-table-column-has-actions ant-table-column-has-sorters"
>
<span>
<div
class="ant-table-column-sorters"
title="Sort"
>
Name
<div
class="ant-table-column-sorter"
>
<span
class="ant-table-column-sorter-up off"
title="↑"
<i
class="anticon anticon-caret-up ant-table-column-sorter-up off"
>
<i
class="anticon anticon-caret-up"
<svg
aria-hidden="true"
class=""
data-icon="caret-up"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<svg
aria-hidden="true"
class=""
data-icon="caret-up"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
d="M76.3 632.8l405.1-489.1a42.53 42.53 0 0 1 63.4 0l403.1 489.1c24.4 27.4 5 70.8-31.7 70.8H107.9c-36.6 0-56.1-43.4-31.6-70.8z"
/>
</svg>
</i>
</span>
<span
class="ant-table-column-sorter-down off"
title="↓"
<path
d="M76.3 632.8l405.1-489.1a42.53 42.53 0 0 1 63.4 0l403.1 489.1c24.4 27.4 5 70.8-31.7 70.8H107.9c-36.6 0-56.1-43.4-31.6-70.8z"
/>
</svg>
</i>
<i
class="anticon anticon-caret-down ant-table-column-sorter-down off"
>
<i
class="anticon anticon-caret-down"
<svg
aria-hidden="true"
class=""
data-icon="caret-down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<svg
aria-hidden="true"
class=""
data-icon="caret-down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
d="M76.3 392.3l403.1 489.1a42.53 42.53 0 0 0 63.4 0l405.1-489.1c24.4-27.4 5-70.8-31.7-70.8H108.1c-36.8 0-56.3 43.4-31.8 70.8z"
/>
</svg>
</i>
</span>
<path
d="M76.3 392.3l403.1 489.1a42.53 42.53 0 0 0 63.4 0l405.1-489.1c24.4-27.4 5-70.8-31.7-70.8H108.1c-36.8 0-56.3 43.4-31.8 70.8z"
/>
</svg>
</i>
</div>
</span>
</div>
</th>
</tr>
</thead>

View File

@ -35,33 +35,41 @@ exports[`Table renders JSX correctly 1`] = `
class=""
colspan="2"
>
<span>
<div
title="Sort"
>
Name
</span>
</div>
</th>
<th
class=""
rowspan="2"
>
<span>
<div
title="Sort"
>
Age
</span>
</div>
</th>
</tr>
<tr>
<th
class=""
>
<span>
<div
title="Sort"
>
First Name
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Last Name
</span>
</div>
</th>
</tr>
</thead>

File diff suppressed because it is too large Load Diff

View File

@ -39,58 +39,74 @@ exports[`Table renders empty table 1`] = `
<th
class=""
>
<span>
<div
title="Sort"
>
Column 1
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 2
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 3
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 4
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 5
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 6
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 7
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 8
</span>
</div>
</th>
</tr>
</thead>
@ -150,58 +166,74 @@ exports[`Table renders empty table with custom emptyText 1`] = `
<th
class=""
>
<span>
<div
title="Sort"
>
Column 1
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 2
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 3
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 4
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 5
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 6
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 7
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 8
</span>
</div>
</th>
</tr>
</thead>
@ -273,79 +305,101 @@ exports[`Table renders empty table with fixed columns 1`] = `
<th
class="ant-table-fixed-columns-in-body"
>
<span>
<div
title="Sort"
>
Full Name
</span>
</div>
</th>
<th
class="ant-table-fixed-columns-in-body"
>
<span>
<div
title="Sort"
>
Age
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 1
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 2
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 3
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 4
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 5
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 6
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 7
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 8
</span>
</div>
</th>
<th
class="ant-table-fixed-columns-in-body"
>
<span>
<div
title="Sort"
>
Action
</span>
</div>
</th>
</tr>
</thead>
@ -388,16 +442,20 @@ exports[`Table renders empty table with fixed columns 1`] = `
<th
class=""
>
<span>
<div
title="Sort"
>
Full Name
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Age
</span>
</div>
</th>
</tr>
</thead>
@ -433,9 +491,11 @@ exports[`Table renders empty table with fixed columns 1`] = `
<th
class=""
>
<span>
<div
title="Sort"
>
Action
</span>
</div>
</th>
</tr>
</thead>
@ -506,58 +566,74 @@ exports[`Table renders empty table without emptyText when loading 1`] = `
<th
class=""
>
<span>
<div
title="Sort"
>
Column 1
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 2
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 3
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 4
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 5
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 6
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 7
</span>
</div>
</th>
<th
class=""
>
<span>
<div
title="Sort"
>
Column 8
</span>
</div>
</th>
</tr>
</thead>