mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
demo(Table): add sticky offsetHeader (#44876)
* demo(Table): add sticky offsetHeader * test: update snapshot * test: update snapshot
This commit is contained in:
parent
56fb6178a4
commit
90bb52190b
@ -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;"
|
||||
|
@ -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"
|
||||
|
@ -114,7 +114,8 @@ const App: React.FC = () => {
|
||||
</Table.Summary.Row>
|
||||
</Table.Summary>
|
||||
)}
|
||||
sticky
|
||||
// antd site header height
|
||||
sticky={{ offsetHeader: 64 }}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user