|
const fixHeader = scroll && validateValue(scroll.y); |
|
const fixFooter = |
|
(fixHeader || isSticky) && |
|
React.isValidElement(summaryNode) && |
|
summaryNode.type === Summary && |
|
(summaryNode.props as SummaryProps).fixed; |
如果不给 Table 组件传 scorll.y 或 sticky 属性,那么 Summary 的 fixed 属性赋值为 'top' 是失效的,比如:
https://stackblitz.com/edit/react-gxnxdv?embed=1&file=demo.tsx

table/src/Table.tsx
Line 362 in ef7afbc
table/src/Table.tsx
Lines 376 to 380 in ef7afbc
如果不给 Table 组件传 scorll.y 或 sticky 属性,那么 Summary 的 fixed 属性赋值为 'top' 是失效的,比如:
https://stackblitz.com/edit/react-gxnxdv?embed=1&file=demo.tsx