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> <tr>
<th <th
class="ant-table-column-has-filters" class="ant-table-column-has-actions ant-table-column-has-filters"
> >
<span> <div
title="Sort"
>
Name Name
<i </div>
class="anticon anticon-filter ant-dropdown-trigger" <i
title="Filter menu" 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 <path
aria-hidden="true" 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"
class="" />
data-icon="filter" </svg>
fill="currentColor" </i>
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>
</th> </th>
<th <th
class="" class=""
> >
<span> <div
title="Sort"
>
Age Age
</span> </div>
</th> </th>
</tr> </tr>
</thead> </thead>

View File

@ -29,7 +29,7 @@ exports[`Table.filter override custom filter correctly 1`] = `
exports[`Table.filter renders custom content correctly 1`] = ` exports[`Table.filter renders custom content correctly 1`] = `
<div> <div>
<div <div
class="ant-dropdown ant-dropdown-placement-bottomLeft ant-dropdown-hidden" class="ant-dropdown ant-dropdown-placement-bottomRight ant-dropdown-hidden"
> >
<div> <div>
<div <div
@ -44,7 +44,7 @@ exports[`Table.filter renders custom content correctly 1`] = `
exports[`Table.filter renders custom filter icon correctly 1`] = ` exports[`Table.filter renders custom filter icon correctly 1`] = `
<span <span
class="ant-table-filter-icon ant-dropdown-trigger" class="ant-table-filter-icon ant-table-filter-selected ant-dropdown-trigger"
style="" style=""
title="Filter menu" title="Filter menu"
> >
@ -92,29 +92,31 @@ exports[`Table.filter renders filter correctly 1`] = `
> >
<tr> <tr>
<th <th
class="ant-table-column-has-filters" class="ant-table-column-has-actions ant-table-column-has-filters"
> >
<span> <div
title="Sort"
>
Name Name
<i </div>
class="anticon anticon-filter ant-dropdown-trigger" <i
title="Filter menu" 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 <path
aria-hidden="true" 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"
class="" />
data-icon="filter" </svg>
fill="currentColor" </i>
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>
</th> </th>
</tr> </tr>
</thead> </thead>
@ -126,7 +128,7 @@ exports[`Table.filter renders filter correctly 1`] = `
data-row-key="0" data-row-key="0"
> >
<td <td
class="ant-table-column-has-filters" class="ant-table-column-has-actions ant-table-column-has-filters"
> >
<span <span
class="ant-table-row-indent indent-level-0" class="ant-table-row-indent indent-level-0"
@ -140,7 +142,7 @@ exports[`Table.filter renders filter correctly 1`] = `
data-row-key="1" data-row-key="1"
> >
<td <td
class="ant-table-column-has-filters" class="ant-table-column-has-actions ant-table-column-has-filters"
> >
<span <span
class="ant-table-row-indent indent-level-0" class="ant-table-row-indent indent-level-0"
@ -154,7 +156,7 @@ exports[`Table.filter renders filter correctly 1`] = `
data-row-key="2" data-row-key="2"
> >
<td <td
class="ant-table-column-has-filters" class="ant-table-column-has-actions ant-table-column-has-filters"
> >
<span <span
class="ant-table-row-indent indent-level-0" class="ant-table-row-indent indent-level-0"
@ -168,7 +170,7 @@ exports[`Table.filter renders filter correctly 1`] = `
data-row-key="3" data-row-key="3"
> >
<td <td
class="ant-table-column-has-filters" class="ant-table-column-has-actions ant-table-column-has-filters"
> >
<span <span
class="ant-table-row-indent indent-level-0" 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`] = ` exports[`Table.filter renders menu correctly 1`] = `
<div> <div>
<div <div
class="ant-dropdown ant-dropdown-placement-bottomLeft ant-dropdown-hidden" class="ant-dropdown ant-dropdown-placement-bottomRight ant-dropdown-hidden"
> >
<div <div
class="ant-table-filter-dropdown" class="ant-table-filter-dropdown"
@ -285,7 +287,7 @@ exports[`Table.filter renders menu correctly 1`] = `
exports[`Table.filter renders radio filter correctly 1`] = ` exports[`Table.filter renders radio filter correctly 1`] = `
<div> <div>
<div <div
class="ant-dropdown ant-dropdown-placement-bottomLeft ant-dropdown-hidden" class="ant-dropdown ant-dropdown-placement-bottomRight ant-dropdown-hidden"
> >
<div <div
class="ant-table-filter-dropdown" class="ant-table-filter-dropdown"

View File

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

View File

@ -6,59 +6,52 @@ exports[`Table.sorter renders sorter icon correctly 1`] = `
> >
<tr> <tr>
<th <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 Name
<div <div
class="ant-table-column-sorter" class="ant-table-column-sorter"
> >
<span <i
class="ant-table-column-sorter-up off" class="anticon anticon-caret-up ant-table-column-sorter-up off"
title="↑"
> >
<i <svg
class="anticon anticon-caret-up" aria-hidden="true"
class=""
data-icon="caret-up"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
> >
<svg <path
aria-hidden="true" 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"
class="" />
data-icon="caret-up" </svg>
fill="currentColor" </i>
height="1em" <i
viewBox="0 0 1024 1024" class="anticon anticon-caret-down ant-table-column-sorter-down off"
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="↓"
> >
<i <svg
class="anticon anticon-caret-down" aria-hidden="true"
class=""
data-icon="caret-down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
> >
<svg <path
aria-hidden="true" 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"
class="" />
data-icon="caret-down" </svg>
fill="currentColor" </i>
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>
</div> </div>
</span> </div>
</th> </th>
</tr> </tr>
</thead> </thead>

View File

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

File diff suppressed because it is too large Load Diff

View File

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