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,10 +1711,13 @@ 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"
>
<div
title="Sort"
> >
<span>
Name Name
</div>
<i <i
class="anticon anticon-filter ant-dropdown-trigger" class="anticon anticon-filter ant-dropdown-trigger"
title="Filter menu" title="Filter menu"
@ -1729,18 +1732,19 @@ exports[`renders ./components/locale-provider/demo/all.md correctly 1`] = `
width="1em" width="1em"
> >
<path <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" 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> </svg>
</i> </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,10 +92,13 @@ 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"
>
<div
title="Sort"
> >
<span>
Name Name
</div>
<i <i
class="anticon anticon-filter ant-dropdown-trigger" class="anticon anticon-filter ant-dropdown-trigger"
title="Filter menu" title="Filter menu"
@ -110,11 +113,10 @@ exports[`Table.filter renders filter correctly 1`] = `
width="1em" width="1em"
> >
<path <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" 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> </svg>
</i> </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,19 +6,18 @@ 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"
>
<div
class="ant-table-column-sorters"
title="Sort"
> >
<span>
Name Name
<div <div
class="ant-table-column-sorter" class="ant-table-column-sorter"
>
<span
class="ant-table-column-sorter-up off"
title="↑"
> >
<i <i
class="anticon anticon-caret-up" class="anticon anticon-caret-up ant-table-column-sorter-up off"
> >
<svg <svg
aria-hidden="true" aria-hidden="true"
@ -34,13 +33,8 @@ exports[`Table.sorter renders sorter icon correctly 1`] = `
/> />
</svg> </svg>
</i> </i>
</span>
<span
class="ant-table-column-sorter-down off"
title="↓"
>
<i <i
class="anticon anticon-caret-down" class="anticon anticon-caret-down ant-table-column-sorter-down off"
> >
<svg <svg
aria-hidden="true" aria-hidden="true"
@ -56,9 +50,8 @@ exports[`Table.sorter renders sorter icon correctly 1`] = `
/> />
</svg> </svg>
</i> </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>