ant-design/components/tabs/TabPane.ts
smallbun e20ca2c169
type: update TabPaneProps type (#54482)
* Update TabPane.ts

Signed-off-by: smallbun <30397655+leshalv@users.noreply.github.com>

* Update TabPane.ts

* Update index.tsx

---------

Signed-off-by: smallbun <30397655+leshalv@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
2025-07-27 19:33:32 +08:00

16 lines
463 B
TypeScript

import type * as React from 'react';
import type { TabPaneProps as RcTabPaneProps } from 'rc-tabs/lib/TabPanelList/TabPane';
import type { CompatibilityProps } from '.';
type TabPaneProps = CompatibilityProps & Omit<RcTabPaneProps, 'destroyInactiveTabPane'>;
const TabPane: React.FC<TabPaneProps> = () => null;
if (process.env.NODE_ENV !== 'production') {
TabPane.displayName = 'DeprecatedTabPane';
}
export type { TabPaneProps };
export default TabPane;