mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
chore: fix types declaration (#32935)
This commit is contained in:
parent
077ff7cab1
commit
b03fae3f70
@ -49,7 +49,7 @@ export interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 't
|
||||
cover?: React.ReactNode;
|
||||
actions?: React.ReactNode[];
|
||||
tabList?: CardTabListType[];
|
||||
tabBarExtraContent?: React.ReactNode | null;
|
||||
tabBarExtraContent?: React.ReactNode;
|
||||
onTabChange?: (key: string) => void;
|
||||
activeTabKey?: string;
|
||||
defaultActiveTabKey?: string;
|
||||
|
@ -198,7 +198,7 @@ function notice(args: ArgsProps): MessageType {
|
||||
return result;
|
||||
}
|
||||
|
||||
type ConfigContent = React.ReactNode | string;
|
||||
type ConfigContent = React.ReactNode;
|
||||
type ConfigDuration = number | (() => void);
|
||||
type JointContent = ConfigContent | ArgsProps;
|
||||
export type ConfigOnClose = () => void;
|
||||
|
@ -38,7 +38,7 @@ export interface ModalProps {
|
||||
/** 确定按钮 loading */
|
||||
confirmLoading?: boolean;
|
||||
/** 标题 */
|
||||
title?: React.ReactNode | string;
|
||||
title?: React.ReactNode;
|
||||
/** 是否显示右上角的关闭按钮 */
|
||||
closable?: boolean;
|
||||
/** 点击确定回调 */
|
||||
|
@ -10,7 +10,7 @@ import { isValidElement, cloneElement } from '../../_util/reactNode';
|
||||
|
||||
export default function renderSwitcherIcon(
|
||||
prefixCls: string,
|
||||
switcherIcon: React.ReactNode | null | undefined,
|
||||
switcherIcon: React.ReactNode,
|
||||
showLine: boolean | { showLeafIcon: boolean } | undefined,
|
||||
{ isLeaf, expanded, loading }: AntTreeNodeProps,
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user