import React from 'react'; export interface Props { children: React.ReactNode; /** * 自定义class名称 */ className?: string; thumbMinSize?: number; /** * 给滚动容器添加的样式 */ style?: React.CSSProperties; /** * 自适应内容的高度 */ autoHeight?: boolean; /** * 内容滚动时的回调函数 */ onScroll?: (event: React.UIEvent) => void; } /** * 带有自定义滚动条的滚动容器。与 `
` 效果是一致的。 * * 示例: * * ```tsx * 这是一大段内容 * ``` * * 使用注意事项: * * * 如果不给 Scrollbar 限定高度(任何方式限定高度均可),则不会产生垂直滚动条 */ declare const Scrollbar: React.ForwardRefExoticComponent>; export default Scrollbar;