amis-rpc-design/node_modules/antd/lib/tabs/index.d.ts

22 lines
808 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import type { TabsProps as RcTabsProps } from 'rc-tabs';
import type { SizeType } from '../config-provider/SizeContext';
import TabPane, { type TabPaneProps } from './TabPane';
export type TabsType = 'line' | 'card' | 'editable-card';
export type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
export type { TabPaneProps };
export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
rootClassName?: string;
type?: TabsType;
size?: SizeType;
hideAdd?: boolean;
centered?: boolean;
addIcon?: React.ReactNode;
onEdit?: (e: React.MouseEvent | React.KeyboardEvent | string, action: 'add' | 'remove') => void;
children?: React.ReactNode;
}
declare const Tabs: React.FC<TabsProps> & {
TabPane: typeof TabPane;
};
export default Tabs;