Files
icehrm/web/node_modules/antd/lib/input/Password.d.ts
2020-05-20 18:47:29 +02:00

28 lines
1.0 KiB
TypeScript

import * as React from 'react';
import { ConfigConsumerProps } from '../config-provider';
import Input, { InputProps } from './Input';
export interface PasswordProps extends InputProps {
readonly inputPrefixCls?: string;
readonly action?: string;
visibilityToggle?: boolean;
}
export interface PasswordState {
visible: boolean;
}
export default class Password extends React.Component<PasswordProps, PasswordState> {
input: HTMLInputElement;
static defaultProps: {
action: string;
visibilityToggle: boolean;
};
state: PasswordState;
onVisibleChange: () => void;
getIcon: (prefixCls: string) => React.ReactElement<{}, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
saveInput: (instance: Input) => void;
focus(): void;
blur(): void;
select(): void;
renderPassword: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}