chore: add deprecated comments (#56733)

This commit is contained in:
thinkasany
2026-01-26 13:04:55 +08:00
committed by GitHub
parent fbe7864e10
commit 705c3642d3
3 changed files with 5 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ const PurePanel = genPurePanel(RefAutoComplete, 'popupAlign', (props: any) =>
);
type CompoundedComponent = typeof RefAutoComplete & {
/** @deprecated Please use `options` instead. */
Option: typeof Option;
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
};

View File

@@ -11,7 +11,9 @@ export type {
export type { BreadcrumbItemProps, SeparatorType } from './BreadcrumbItem';
type CompoundedComponent = typeof InternalBreadcrumb & {
/** @deprecated Please use `items` instead. */
Item: typeof BreadcrumbItem;
/** @deprecated Please use `separator` instead. */
Separator: typeof BreadcrumbSeparator;
};

View File

@@ -466,7 +466,9 @@ const Select = React.forwardRef(InternalSelect) as unknown as (<
) => React.ReactElement) & {
displayName?: string;
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
/** @deprecated Please use `options` instead. */
Option: typeof Option;
/** @deprecated Please use `options` instead. */
OptGroup: typeof OptGroup;
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
};