@flatbiz/antd
Version:
23 lines (20 loc) • 731 B
TypeScript
import { GetProps, Tabs } from 'antd';
import { CSSProperties, ReactElement } from 'react';
export type TabsType = GetProps<typeof Tabs>;
export type TabsStickyProps = {
tabsProps: Omit<TabsType, "tabPosition">;
/** tabs头部布局 */
headerRender?: ReactElement;
/** 点击tabItem后,tab跳到顶部吸顶效果;默认值true */
clickTabToTop?: boolean;
/** 设置tabItem 内容包裹元素的样式 */
tabItemContentWrapperStyle?: (key: string) => CSSProperties;
};
/**
* Tabs吸顶组件
* ```
* 1. 组件根节点设置了 height: 100%、overflow: auto;所以外部包裹元素必须要有高度
* ```
*/
export declare const TabsSticky: (props: TabsStickyProps) => import("react").JSX.Element;
export {};