Latest updates from IceHrmPro
This commit is contained in:
50
web/node_modules/antd/lib/popconfirm/index.d.ts
generated
vendored
Normal file
50
web/node_modules/antd/lib/popconfirm/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import * as React from 'react';
|
||||
import { AbstractTooltipProps } from '../tooltip';
|
||||
import { ButtonType, NativeButtonProps } from '../button/button';
|
||||
import { ConfigConsumerProps } from '../config-provider';
|
||||
import { RenderFunction } from '../_util/getRenderPropValue';
|
||||
export interface PopconfirmProps extends AbstractTooltipProps {
|
||||
title: React.ReactNode | RenderFunction;
|
||||
disabled?: boolean;
|
||||
onConfirm?: (e?: React.MouseEvent<HTMLElement>) => void;
|
||||
onCancel?: (e?: React.MouseEvent<HTMLElement>) => void;
|
||||
okText?: React.ReactNode;
|
||||
okType?: ButtonType;
|
||||
cancelText?: React.ReactNode;
|
||||
okButtonProps?: NativeButtonProps;
|
||||
cancelButtonProps?: NativeButtonProps;
|
||||
icon?: React.ReactNode;
|
||||
onVisibleChange?: (visible: boolean, e?: React.MouseEvent<HTMLElement>) => void;
|
||||
}
|
||||
export interface PopconfirmState {
|
||||
visible?: boolean;
|
||||
}
|
||||
export interface PopconfirmLocale {
|
||||
okText: string;
|
||||
cancelText: string;
|
||||
}
|
||||
declare class Popconfirm extends React.Component<PopconfirmProps, PopconfirmState> {
|
||||
static defaultProps: {
|
||||
transitionName: string;
|
||||
placement: "bottom" | "left" | "right" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | undefined;
|
||||
trigger: string | string[] | undefined;
|
||||
okType: "link" | "default" | "primary" | "ghost" | "dashed" | "danger" | undefined;
|
||||
icon: JSX.Element;
|
||||
disabled: boolean;
|
||||
};
|
||||
static getDerivedStateFromProps(nextProps: PopconfirmProps): {
|
||||
visible: boolean | undefined;
|
||||
} | null;
|
||||
private tooltip;
|
||||
constructor(props: PopconfirmProps);
|
||||
getPopupDomNode(): any;
|
||||
onConfirm: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
||||
onCancel: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
||||
onVisibleChange: (visible: boolean) => void;
|
||||
setVisible(visible: boolean, e?: React.MouseEvent<HTMLButtonElement>): void;
|
||||
saveTooltip: (node: any) => void;
|
||||
renderOverlay: (prefixCls: string, popconfirmLocale: PopconfirmLocale) => JSX.Element;
|
||||
renderConfirm: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export default Popconfirm;
|
||||
Reference in New Issue
Block a user