import { PropsWithChildren, ReactNode } from 'react'; import { TabPaneId } from './tabs-context'; export interface TabPaneProps { /** * 自定义 class */ className?: string; /** * 唯一标识 */ id: TabPaneId; /** * 标签页上的内容 */ label: ReactNode; /** * 是否禁用 */ disabled?: boolean; /** * 是否可删除 */ deletable?: boolean; /** * tab 标签页的状态 * - 仅 type card 支持 * - 暂时只有 'normal' | 'error' * @default 'normal' */ status?: 'normal' | 'error'; } /** * TabPane `status` 默认值;父组件 `Tabs.getTabsAll` 读取 `child.props.status` 时也用它兜底 * (默认参数不进 element.props,故父子两处共用此常量,避免字面量各写一份而漂移) */ export declare const TAB_PANE_DEFAULT_STATUS: NonNullable; export declare function TabPane(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element; export declare namespace TabPane { var displayName: string; }