Skip to content

Commit

Permalink
fix: Table should not warn DefaultProps (#39571)
Browse files Browse the repository at this point in the history
* fix: Table should not warn DefaultProps

* chore: update table snapshot

* fix: table test fail

* Revert "chore: update table snapshot"

This reverts commit 1afc95b.

* chore: update table snapshot
  • Loading branch information
chunsch committed Dec 15, 2022
1 parent 120db80 commit 359eaa6
Show file tree
Hide file tree
Showing 20 changed files with 695 additions and 24 deletions.
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Expand Up @@ -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>
Expand Down
Expand Up @@ -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>
Expand Down
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions components/empty/__tests__/__snapshots__/demo.test.ts.snap
Expand Up @@ -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>
Expand Down

0 comments on commit 359eaa6

Please sign in to comment.