chore: check compatibility ux

This commit is contained in:
jialin
2025-03-31 16:21:40 +08:00
parent bd6c689d91
commit f83e49bd3d
30 changed files with 1192 additions and 583 deletions
+15 -2
View File
@@ -10,7 +10,12 @@ const Wrapper = styled.div<{ $maxHeight?: number }>`
padding-inline: 10px;
`;
const OverlayScroller: React.FC<any> = ({ children, maxHeight, theme }) => {
const OverlayScroller: React.FC<any> = ({
children,
maxHeight,
theme,
style
}) => {
const scroller = React.useRef<any>(null);
const { initialize } = useOverlayScroller({
options: {
@@ -25,7 +30,15 @@ const OverlayScroller: React.FC<any> = ({ children, maxHeight, theme }) => {
}, []);
return (
<Wrapper ref={scroller} $maxHeight={maxHeight || '100%'} hidden={false}>
<Wrapper
ref={scroller}
$maxHeight={maxHeight || '100%'}
hidden={false}
as="div"
style={{
...style
}}
>
{children}
</Wrapper>
);