mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-15 13:38:29 +02:00

* 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>
16 lines
463 B
TypeScript
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;
|