mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
fix: Table should not warn DefaultProps (#39571)
* fix: Table should not warn DefaultProps * chore: update table snapshot * fix: table test fail * Revert "chore: update table snapshot" This reverts commit 1afc95b5bda83c109999ff83f505676b4c623202. * chore: update table snapshot
This commit is contained in:
parent
120db80c25
commit
359eaa697b
@ -26612,6 +26612,7 @@ exports[`ConfigProvider components Table configProvider 1`] = `
|
||||
<th
|
||||
aria-label="this column's title is Name,this column is sortable"
|
||||
class="config-table-cell config-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -26917,6 +26918,7 @@ exports[`ConfigProvider components Table configProvider componentDisabled 1`] =
|
||||
<th
|
||||
aria-label="this column's title is Name,this column is sortable"
|
||||
class="config-table-cell config-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -27224,6 +27226,7 @@ exports[`ConfigProvider components Table configProvider componentSize large 1`]
|
||||
<th
|
||||
aria-label="this column's title is Name,this column is sortable"
|
||||
class="config-table-cell config-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -27529,6 +27532,7 @@ exports[`ConfigProvider components Table configProvider componentSize middle 1`]
|
||||
<th
|
||||
aria-label="this column's title is Name,this column is sortable"
|
||||
class="config-table-cell config-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -27834,6 +27838,7 @@ exports[`ConfigProvider components Table configProvider virtual and dropdownMatc
|
||||
<th
|
||||
aria-label="this column's title is Name,this column is sortable"
|
||||
class="ant-table-cell ant-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -28139,6 +28144,7 @@ exports[`ConfigProvider components Table normal 1`] = `
|
||||
<th
|
||||
aria-label="this column's title is Name,this column is sortable"
|
||||
class="ant-table-cell ant-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -28444,6 +28450,7 @@ exports[`ConfigProvider components Table prefixCls 1`] = `
|
||||
<th
|
||||
aria-label="this column's title is Name,this column is sortable"
|
||||
class="prefix-Table-cell prefix-Table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
|
@ -1468,16 +1468,19 @@ exports[`renders ./components/descriptions/demo/text.tsx extend context correctl
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
姓名
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
年龄
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
住址
|
||||
</th>
|
||||
|
@ -1468,16 +1468,19 @@ exports[`renders ./components/descriptions/demo/text.tsx correctly 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
姓名
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
年龄
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
住址
|
||||
</th>
|
||||
|
@ -1039,11 +1039,13 @@ exports[`renders ./components/empty/demo/config-provider.tsx extend context corr
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
|
@ -588,11 +588,13 @@ exports[`renders ./components/empty/demo/config-provider.tsx correctly 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
|
@ -6774,6 +6774,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -6812,6 +6813,7 @@ exports[`Locale Provider should display the text as ar 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -11881,6 +11883,7 @@ exports[`Locale Provider should display the text as az 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -11919,6 +11922,7 @@ exports[`Locale Provider should display the text as az 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -16988,6 +16992,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -17026,6 +17031,7 @@ exports[`Locale Provider should display the text as bg 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -22095,6 +22101,7 @@ exports[`Locale Provider should display the text as bn-bd 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -22133,6 +22140,7 @@ exports[`Locale Provider should display the text as bn-bd 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -27202,6 +27210,7 @@ exports[`Locale Provider should display the text as by 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -27240,6 +27249,7 @@ exports[`Locale Provider should display the text as by 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -32309,6 +32319,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -32347,6 +32358,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -37416,6 +37428,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -37454,6 +37467,7 @@ exports[`Locale Provider should display the text as cs 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -42523,6 +42537,7 @@ exports[`Locale Provider should display the text as da 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -42561,6 +42576,7 @@ exports[`Locale Provider should display the text as da 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -47630,6 +47646,7 @@ exports[`Locale Provider should display the text as de 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -47668,6 +47685,7 @@ exports[`Locale Provider should display the text as de 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -52737,6 +52755,7 @@ exports[`Locale Provider should display the text as el 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -52775,6 +52794,7 @@ exports[`Locale Provider should display the text as el 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -57844,6 +57864,7 @@ exports[`Locale Provider should display the text as en 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -57882,6 +57903,7 @@ exports[`Locale Provider should display the text as en 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -62951,6 +62973,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -62989,6 +63012,7 @@ exports[`Locale Provider should display the text as en-gb 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -68058,6 +68082,7 @@ exports[`Locale Provider should display the text as es 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -68096,6 +68121,7 @@ exports[`Locale Provider should display the text as es 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -73165,6 +73191,7 @@ exports[`Locale Provider should display the text as et 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -73203,6 +73230,7 @@ exports[`Locale Provider should display the text as et 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -78272,6 +78300,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -78310,6 +78339,7 @@ exports[`Locale Provider should display the text as fa 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -83379,6 +83409,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -83417,6 +83448,7 @@ exports[`Locale Provider should display the text as fi 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -88486,6 +88518,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -88524,6 +88557,7 @@ exports[`Locale Provider should display the text as fr 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -93593,6 +93627,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -93631,6 +93666,7 @@ exports[`Locale Provider should display the text as fr 2`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -98700,6 +98736,7 @@ exports[`Locale Provider should display the text as fr 3`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -98738,6 +98775,7 @@ exports[`Locale Provider should display the text as fr 3`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -103807,6 +103845,7 @@ exports[`Locale Provider should display the text as ga 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -103845,6 +103884,7 @@ exports[`Locale Provider should display the text as ga 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -108914,6 +108954,7 @@ exports[`Locale Provider should display the text as gl 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -108952,6 +108993,7 @@ exports[`Locale Provider should display the text as gl 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -114021,6 +114063,7 @@ exports[`Locale Provider should display the text as he 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -114059,6 +114102,7 @@ exports[`Locale Provider should display the text as he 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -119128,6 +119172,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -119166,6 +119211,7 @@ exports[`Locale Provider should display the text as hi 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -124235,6 +124281,7 @@ exports[`Locale Provider should display the text as hr 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -124273,6 +124320,7 @@ exports[`Locale Provider should display the text as hr 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -129342,6 +129390,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -129380,6 +129429,7 @@ exports[`Locale Provider should display the text as hu 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -134449,6 +134499,7 @@ exports[`Locale Provider should display the text as hy-am 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -134487,6 +134538,7 @@ exports[`Locale Provider should display the text as hy-am 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -139556,6 +139608,7 @@ exports[`Locale Provider should display the text as id 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -139594,6 +139647,7 @@ exports[`Locale Provider should display the text as id 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -144663,6 +144717,7 @@ exports[`Locale Provider should display the text as is 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -144701,6 +144756,7 @@ exports[`Locale Provider should display the text as is 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -149770,6 +149826,7 @@ exports[`Locale Provider should display the text as it 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -149808,6 +149865,7 @@ exports[`Locale Provider should display the text as it 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -154877,6 +154935,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -154915,6 +154974,7 @@ exports[`Locale Provider should display the text as ja 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -159984,6 +160044,7 @@ exports[`Locale Provider should display the text as ka 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -160022,6 +160083,7 @@ exports[`Locale Provider should display the text as ka 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -165091,6 +165153,7 @@ exports[`Locale Provider should display the text as kk 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -165129,6 +165192,7 @@ exports[`Locale Provider should display the text as kk 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -170196,6 +170260,7 @@ exports[`Locale Provider should display the text as km 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -170234,6 +170299,7 @@ exports[`Locale Provider should display the text as km 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -175303,6 +175369,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -175341,6 +175408,7 @@ exports[`Locale Provider should display the text as kn 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -180410,6 +180478,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -180448,6 +180517,7 @@ exports[`Locale Provider should display the text as ko 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -185517,6 +185587,7 @@ exports[`Locale Provider should display the text as ku 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -185555,6 +185626,7 @@ exports[`Locale Provider should display the text as ku 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -190624,6 +190696,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -190662,6 +190735,7 @@ exports[`Locale Provider should display the text as ku-iq 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -195731,6 +195805,7 @@ exports[`Locale Provider should display the text as lt 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -195769,6 +195844,7 @@ exports[`Locale Provider should display the text as lt 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -200838,6 +200914,7 @@ exports[`Locale Provider should display the text as lv 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -200876,6 +200953,7 @@ exports[`Locale Provider should display the text as lv 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -205945,6 +206023,7 @@ exports[`Locale Provider should display the text as mk 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -205983,6 +206062,7 @@ exports[`Locale Provider should display the text as mk 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -211052,6 +211132,7 @@ exports[`Locale Provider should display the text as ml 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -211090,6 +211171,7 @@ exports[`Locale Provider should display the text as ml 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -216159,6 +216241,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -216197,6 +216280,7 @@ exports[`Locale Provider should display the text as mn-mn 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -221266,6 +221350,7 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -221304,6 +221389,7 @@ exports[`Locale Provider should display the text as ms-my 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -226373,6 +226459,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -226411,6 +226498,7 @@ exports[`Locale Provider should display the text as nb 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -231480,6 +231568,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -231518,6 +231607,7 @@ exports[`Locale Provider should display the text as ne-np 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -236587,6 +236677,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -236625,6 +236716,7 @@ exports[`Locale Provider should display the text as nl 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -241694,6 +241786,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -241732,6 +241825,7 @@ exports[`Locale Provider should display the text as nl-be 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -246801,6 +246895,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -246839,6 +246934,7 @@ exports[`Locale Provider should display the text as pl 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -251908,6 +252004,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -251946,6 +252043,7 @@ exports[`Locale Provider should display the text as pt 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -257015,6 +257113,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -257053,6 +257152,7 @@ exports[`Locale Provider should display the text as pt-br 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -262122,6 +262222,7 @@ exports[`Locale Provider should display the text as ro 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -262160,6 +262261,7 @@ exports[`Locale Provider should display the text as ro 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -267229,6 +267331,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -267267,6 +267370,7 @@ exports[`Locale Provider should display the text as ru 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -272336,6 +272440,7 @@ exports[`Locale Provider should display the text as si 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -272374,6 +272479,7 @@ exports[`Locale Provider should display the text as si 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -277443,6 +277549,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -277481,6 +277588,7 @@ exports[`Locale Provider should display the text as sk 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -282550,6 +282658,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -282588,6 +282697,7 @@ exports[`Locale Provider should display the text as sl 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -287657,6 +287767,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -287695,6 +287806,7 @@ exports[`Locale Provider should display the text as sr 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -292764,6 +292876,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -292802,6 +292915,7 @@ exports[`Locale Provider should display the text as sv 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -297871,6 +297985,7 @@ exports[`Locale Provider should display the text as ta 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -297909,6 +298024,7 @@ exports[`Locale Provider should display the text as ta 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -302978,6 +303094,7 @@ exports[`Locale Provider should display the text as th 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -303016,6 +303133,7 @@ exports[`Locale Provider should display the text as th 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -308085,6 +308203,7 @@ exports[`Locale Provider should display the text as tk 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -308123,6 +308242,7 @@ exports[`Locale Provider should display the text as tk 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -313192,6 +313312,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -313230,6 +313351,7 @@ exports[`Locale Provider should display the text as tr 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -318299,6 +318421,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -318337,6 +318460,7 @@ exports[`Locale Provider should display the text as uk 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -323406,6 +323530,7 @@ exports[`Locale Provider should display the text as ur 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -323444,6 +323569,7 @@ exports[`Locale Provider should display the text as ur 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -328513,6 +328639,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -328551,6 +328678,7 @@ exports[`Locale Provider should display the text as vi 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -333620,6 +333748,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -333658,6 +333787,7 @@ exports[`Locale Provider should display the text as zh-cn 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -338727,6 +338857,7 @@ exports[`Locale Provider should display the text as zh-hk 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -338765,6 +338896,7 @@ exports[`Locale Provider should display the text as zh-hk 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -343834,6 +343966,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -343872,6 +344005,7 @@ exports[`Locale Provider should display the text as zh-tw 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
|
@ -104,9 +104,11 @@ describe('Table.expand', () => {
|
||||
/>,
|
||||
);
|
||||
|
||||
// header has td element (a11y): https://github.com/react-component/table/pull/859
|
||||
const tdNodeList = container.querySelectorAll('td');
|
||||
expect(tdNodeList[0].textContent).toEqual('bamboo');
|
||||
expect(tdNodeList[1].querySelector('.ant-table-row-expand-icon')).toBeTruthy();
|
||||
|
||||
expect(tdNodeList[2].textContent).toEqual('bamboo');
|
||||
expect(tdNodeList[3].querySelector('.ant-table-row-expand-icon')).toBeTruthy();
|
||||
});
|
||||
|
||||
it('work with selection', () => {
|
||||
@ -122,9 +124,9 @@ describe('Table.expand', () => {
|
||||
/>,
|
||||
);
|
||||
const tdNodeList = container.querySelectorAll('td');
|
||||
expect(tdNodeList[0].querySelector('.ant-checkbox-input')).toBeTruthy();
|
||||
expect(tdNodeList[1].textContent).toEqual('bamboo');
|
||||
expect(tdNodeList[2].querySelector('.ant-table-row-expand-icon')).toBeTruthy();
|
||||
expect(tdNodeList[2].querySelector('.ant-checkbox-input')).toBeTruthy();
|
||||
expect(tdNodeList[3].textContent).toEqual('bamboo');
|
||||
expect(tdNodeList[4].querySelector('.ant-table-row-expand-icon')).toBeTruthy();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -29,6 +29,7 @@ exports[`Table.expand click to expand 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
|
@ -117,6 +117,7 @@ exports[`Table.filter renders custom filter icon as ReactNode 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -221,6 +222,7 @@ exports[`Table.filter renders custom filter icon as string correctly 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -331,6 +333,7 @@ exports[`Table.filter renders custom filter icon with right Tooltip title 1`] =
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
@ -461,6 +464,7 @@ exports[`Table.filter renders filter correctly 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-filter-column"
|
||||
|
@ -29,6 +29,7 @@ exports[`Table.pagination Accepts pagination as true 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
@ -195,6 +196,7 @@ exports[`Table.pagination renders pagination correctly 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
@ -352,6 +354,7 @@ exports[`Table.pagination renders pagination topLeft and bottomRight 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
@ -516,7 +519,7 @@ exports[`Table.pagination should not crash when trigger onChange in render 1`] =
|
||||
class="ant-table-thead"
|
||||
>
|
||||
<tr>
|
||||
<th
|
||||
<td
|
||||
class="ant-table-cell"
|
||||
/>
|
||||
</tr>
|
||||
|
@ -35,12 +35,13 @@ exports[`Table.rowSelection fix expand on th left when selection column fixed on
|
||||
class="ant-table-thead"
|
||||
>
|
||||
<tr>
|
||||
<th
|
||||
<td
|
||||
class="ant-table-cell ant-table-row-expand-icon-cell ant-table-cell-fix-left"
|
||||
style="position: sticky; left: 0px;"
|
||||
/>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last"
|
||||
scope="col"
|
||||
style="position: sticky; left: 0px;"
|
||||
>
|
||||
<div
|
||||
@ -67,6 +68,7 @@ exports[`Table.rowSelection fix expand on th left when selection column fixed on
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
@ -396,6 +398,7 @@ exports[`Table.rowSelection fix selection column on the left 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left ant-table-cell-fix-left-last"
|
||||
scope="col"
|
||||
style="position: sticky; left: 0px;"
|
||||
>
|
||||
<div
|
||||
@ -422,6 +425,7 @@ exports[`Table.rowSelection fix selection column on the left 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
@ -699,6 +703,7 @@ exports[`Table.rowSelection fix selection column on the left when any other colu
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column ant-table-cell-fix-left"
|
||||
scope="col"
|
||||
style="position: sticky; left: 0px;"
|
||||
>
|
||||
<div
|
||||
@ -725,6 +730,7 @@ exports[`Table.rowSelection fix selection column on the left when any other colu
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last ant-table-cell-fix-left-all"
|
||||
scope="col"
|
||||
style="position: sticky; left: 0px;"
|
||||
>
|
||||
Name
|
||||
@ -1061,6 +1067,7 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-selection"
|
||||
@ -1170,6 +1177,7 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = `
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
@ -1420,6 +1428,7 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-selection"
|
||||
@ -1529,6 +1538,7 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
@ -1779,6 +1789,7 @@ exports[`Table.rowSelection use column as selection column when key is \`selecti
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-selection"
|
||||
@ -1804,6 +1815,7 @@ exports[`Table.rowSelection use column as selection column when key is \`selecti
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
|
@ -8,6 +8,7 @@ exports[`Table.sorter renders sorter icon correctly 1`] = `
|
||||
<th
|
||||
aria-label="this column's title is Name,this column is sortable"
|
||||
class="ant-table-cell ant-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -100,6 +101,7 @@ exports[`Table.sorter should support defaultOrder in Column 1`] = `
|
||||
<th
|
||||
aria-sort="ascending"
|
||||
class="ant-table-cell ant-table-column-sort ant-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
|
@ -30,12 +30,14 @@ exports[`Table renders JSX correctly 1`] = `
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
colspan="2"
|
||||
scope="colgroup"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
rowspan="2"
|
||||
scope="col"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
@ -43,11 +45,13 @@ exports[`Table renders JSX correctly 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
First Name
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Last Name
|
||||
</th>
|
||||
@ -133,7 +137,7 @@ exports[`Table rtl render component should be rendered correctly in RTL directio
|
||||
class="ant-table-thead"
|
||||
>
|
||||
<tr>
|
||||
<th
|
||||
<td
|
||||
class="ant-table-cell"
|
||||
/>
|
||||
</tr>
|
||||
@ -235,6 +239,7 @@ exports[`Table should render title 1`] = `
|
||||
<th
|
||||
aria-label="this column is sortable"
|
||||
class="ant-table-cell ant-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -303,6 +308,7 @@ exports[`Table should render title 1`] = `
|
||||
<th
|
||||
aria-label="this column is sortable"
|
||||
class="ant-table-cell ant-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -366,6 +372,7 @@ exports[`Table should render title 1`] = `
|
||||
<th
|
||||
aria-label="this column is sortable"
|
||||
class="ant-table-cell ant-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -434,6 +441,7 @@ exports[`Table should render title 1`] = `
|
||||
<th
|
||||
aria-label="this column's title is color,this column is sortable"
|
||||
class="ant-table-cell ant-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -495,6 +503,7 @@ exports[`Table should render title 1`] = `
|
||||
<th
|
||||
aria-label="this column's title is sex,this column is sortable"
|
||||
class="ant-table-cell ant-table-column-has-sorters"
|
||||
scope="col"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
@ -626,6 +635,7 @@ exports[`Table should render title 1`] = `
|
||||
exports[`Table title should support ReactNode 1`] = `
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
<div>
|
||||
<strong>
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -29,41 +29,49 @@ exports[`Table renders empty table 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 1
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 2
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 3
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 4
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 5
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 6
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 7
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 8
|
||||
</th>
|
||||
@ -165,41 +173,49 @@ exports[`Table renders empty table with custom emptyText 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 1
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 2
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 3
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 4
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 5
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 6
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 7
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 8
|
||||
</th>
|
||||
@ -276,58 +292,69 @@ exports[`Table renders empty table with fixed columns should work 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-cell-fix-left"
|
||||
scope="col"
|
||||
style="position: sticky; left: 0px;"
|
||||
>
|
||||
Full Name
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last"
|
||||
scope="col"
|
||||
style="position: sticky; left: 0px;"
|
||||
>
|
||||
Age
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 1
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 2
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 3
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 4
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 5
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 6
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 7
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 8
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell ant-table-cell-fix-right ant-table-cell-fix-right-first"
|
||||
scope="col"
|
||||
style="position: sticky; right: 0px;"
|
||||
>
|
||||
Action
|
||||
@ -553,41 +580,49 @@ exports[`Table renders empty table without emptyText when loading 1`] = `
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 1
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 2
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 3
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 4
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 5
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 6
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 7
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Column 8
|
||||
</th>
|
||||
|
@ -134,7 +134,10 @@ const genTableStyle: GenerateStyle<TableToken, CSSObject> = (token) => {
|
||||
|
||||
// ============================ Header ============================
|
||||
[`${componentCls}-thead`]: {
|
||||
'> tr > th': {
|
||||
[`
|
||||
> tr > th,
|
||||
> tr > td
|
||||
`]: {
|
||||
position: 'relative',
|
||||
color: tableHeaderTextColor,
|
||||
fontWeight: fontWeightStrong,
|
||||
|
@ -6545,6 +6545,7 @@ Array [
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-selection"
|
||||
@ -6569,16 +6570,19 @@ Array [
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Tag
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Description
|
||||
</th>
|
||||
@ -7394,6 +7398,7 @@ Array [
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-selection"
|
||||
@ -7418,6 +7423,7 @@ Array [
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
|
@ -4039,6 +4039,7 @@ Array [
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-selection"
|
||||
@ -4063,16 +4064,19 @@ Array [
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Tag
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Description
|
||||
</th>
|
||||
@ -4759,6 +4763,7 @@ Array [
|
||||
<tr>
|
||||
<th
|
||||
class="ant-table-cell ant-table-selection-column"
|
||||
scope="col"
|
||||
>
|
||||
<div
|
||||
class="ant-table-selection"
|
||||
@ -4783,6 +4788,7 @@ Array [
|
||||
</th>
|
||||
<th
|
||||
class="ant-table-cell"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
|
@ -144,7 +144,7 @@
|
||||
"rc-slider": "~10.0.0",
|
||||
"rc-steps": "~6.0.0-alpha.2",
|
||||
"rc-switch": "~4.0.0",
|
||||
"rc-table": "~7.26.0",
|
||||
"rc-table": "~7.28.2",
|
||||
"rc-tabs": "~12.4.2",
|
||||
"rc-textarea": "~0.4.5",
|
||||
"rc-tooltip": "~5.2.0",
|
||||
|
Loading…
Reference in New Issue
Block a user