mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
99c16aa8d6
* refactor: Dependency Inversion * test: update snapshot * test: Update snapshot * test: more * fix: table dropdown logic * fix: menu lint
17 lines
519 B
TypeScript
17 lines
519 B
TypeScript
import * as React from 'react';
|
|
import type { MenuProps } from '.';
|
|
|
|
// Used for Dropdown only
|
|
export interface OverrideContextProps {
|
|
prefixCls?: string;
|
|
expandIcon?: React.ReactNode;
|
|
mode?: MenuProps['mode'];
|
|
selectable?: boolean;
|
|
validator?: (menuProps: Pick<MenuProps, 'mode'>) => void;
|
|
}
|
|
|
|
/** @private Internal Usage. Only used for Dropdown component. Do not use this in your production. */
|
|
const OverrideContext = React.createContext<OverrideContextProps | null>(null);
|
|
|
|
export default OverrideContext;
|