import type { Key } from 'react'; import type { ReactNode, CSSProperties } from 'react'; import { type TabsProps } from 'antd'; interface Props extends Pick { /** * @description 标题 */ title?: string | ReactNode; /** * @description 内容 */ children?: ReactNode; /** * @description 容器样式 */ style?: CSSProperties; /** * @description 容器样式 */ className?: string; /** * @description 暂未实现 */ footer?: ReactNode; /** * @description 当内部有表头固定的表格时,可以考虑这个 */ type?: 'table'; /** * @description tabs */ tabs?: { title?: ReactNode; key: string; forceRender?: boolean; }[]; /** * 是否隐藏TabBar */ hideTabBar?: boolean; /** * @description body元素的样式 */ bodyStyle?: CSSProperties; /** * @description 标签切换事件 */ onTabChange?: (activeKey: Key, activeIndex: number) => void; /** * @description 操作栏,请与Actions组件结合使用并且带有标题,请不要在Tabs模式时使用 */ actions?: ReactNode; /** * @description 同 style flex属性, 为true时 flex = 1 */ flex?: boolean | number; /** * @description 是否启用title背景色 */ titleBar?: boolean; } export default function Section(props: Props): JSX.Element; export {};