mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #27876 from zaycker/rc-select-addons
[@types/rc-select] Added absent prop-types
This commit is contained in:
Vendored
+36
-22
@@ -20,41 +20,55 @@ export {
|
||||
|
||||
declare namespace RcSelect {
|
||||
interface SelectProps {
|
||||
className?: string;
|
||||
prefixCls?: string;
|
||||
animation?: string;
|
||||
transitionName?: string;
|
||||
choiceTransitionName?: string;
|
||||
dropdownMatchSelectWidth?: boolean;
|
||||
dropdownClassName?: string;
|
||||
dropdownStyle?: { [key: string]: string };
|
||||
dropdownMenuStyle?: { [key: string]: string };
|
||||
notFoundContent?: string;
|
||||
showSearch?: boolean;
|
||||
allowClear?: boolean;
|
||||
tags?: boolean;
|
||||
maxTagTextLength?: number;
|
||||
animation?: string;
|
||||
choiceTransitionName?: string;
|
||||
className?: string;
|
||||
combobox?: boolean;
|
||||
multiple?: boolean;
|
||||
defaultActiveFirstOption?: boolean;
|
||||
defaultLabel?: string | Array<string>;
|
||||
defaultValue?: string | Array<string>;
|
||||
disabled?: boolean;
|
||||
dropdownClassName?: string;
|
||||
dropdownMatchSelectWidth?: boolean;
|
||||
dropdownMenuStyle?: { [key: string]: string };
|
||||
dropdownStyle?: { [key: string]: string };
|
||||
filterOption?: boolean;
|
||||
getPopupContainer?: (trigger: Node) => Node;
|
||||
getInputElement?: () => Node;
|
||||
id?: string;
|
||||
labelInValue?: boolean;
|
||||
maxTagCount?: number;
|
||||
maxTagPlaceholder?: React.ReactNode | Function;
|
||||
maxTagTextLength?: number;
|
||||
multiple?: boolean;
|
||||
notFoundContent?: string;
|
||||
onBlur?: () => void;
|
||||
onChange?: (value: string, label: string) => void;
|
||||
onDeselect?: (value: string, option: Option) => void;
|
||||
onFocus?: () => void;
|
||||
onInputKeyDown?: (e: Event) => void;
|
||||
onPopupScroll?: () => void;
|
||||
onSearch?: () => void;
|
||||
onSelect?: (value: string, ontion: Option) => void;
|
||||
optionFilterProp?: string;
|
||||
optionLabelProp?: string;
|
||||
defaultValue?: string | Array<string>;
|
||||
placeholder?: React.ReactNode;
|
||||
prefixCls?: string;
|
||||
showAction?: string[];
|
||||
showArrow?: boolean;
|
||||
showSearch?: boolean;
|
||||
tags?: boolean;
|
||||
tokenSeparators?: string[];
|
||||
transitionName?: string;
|
||||
value?: string | Array<string>;
|
||||
onChange?: (value: string, label: string) => void;
|
||||
onSearch?: Function;
|
||||
onSelect?: (value: string, ontion: Option) => void;
|
||||
onDeselect?: Function;
|
||||
defaultLabel?: string | Array<string>;
|
||||
defaultActiveFirstOption?: boolean;
|
||||
getPopupContainer?: (trigger: Node) => Node;
|
||||
}
|
||||
export class Select extends React.Component<SelectProps> { }
|
||||
interface OptionProps {
|
||||
className?: string;
|
||||
disabled?: boolean;
|
||||
key?: string;
|
||||
title?: string;
|
||||
value?: string;
|
||||
}
|
||||
export class Option extends React.Component<OptionProps> { }
|
||||
|
||||
Reference in New Issue
Block a user