demo(Table): add sticky offsetHeader (#44876)

* demo(Table): add sticky offsetHeader

* test: update snapshot

* test: update snapshot
This commit is contained in:
daisy 2023-09-15 12:24:16 +08:00 committed by GitHub
parent 56fb6178a4
commit 90bb52190b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -29271,7 +29271,7 @@ exports[`renders components/table/demo/sticky.tsx extend context correctly 1`] =
>
<div
class="ant-table-header ant-table-sticky-holder"
style="overflow: hidden; top: 0px;"
style="overflow: hidden; top: 64px;"
>
<table
style="table-layout: fixed; visibility: hidden;"

View File

@ -23871,7 +23871,7 @@ exports[`renders components/table/demo/sticky.tsx correctly 1`] = `
>
<div
class="ant-table-header ant-table-sticky-holder"
style="overflow:hidden;top:0"
style="overflow:hidden;top:64px"
>
<table
style="table-layout:fixed;visibility:hidden"

View File

@ -114,7 +114,8 @@ const App: React.FC = () => {
</Table.Summary.Row>
</Table.Summary>
)}
sticky
// antd site header height
sticky={{ offsetHeader: 64 }}
/>
);
};