Added absent rc-select props:

to Select:
+ getInputElement
+ id
+ labelInValue
+ maxTagCount
+ maxTagPlaceholder
+ onBlur
+ onFocus
+ onInputKeyDown
+ onPopupScroll
+ placeholder
+ showAction
+ showArrow
+ tokenSeparators
to Option:
+ title

Sorted alph-ly
This commit is contained in:
zaycker
2018-08-04 22:08:24 +03:00
parent 9c32df15f4
commit efeac3258d
+37 -23
View File
@@ -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;
disabled?: boolean;
filterOption?: boolean;
optionFilterProp?: string;
optionLabelProp?: string;
defaultActiveFirstOption?: boolean;
defaultLabel?: string | Array<string>;
defaultValue?: string | Array<string>;
value?: 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?: Function;
onChange?: (value: string, label: string) => void;
onDeselect?: Function;
onFocus?: Function;
onInputKeyDown?: Function;
onPopupScroll?: Function;
onSearch?: Function;
onSelect?: (value: string, ontion: Option) => void;
onDeselect?: Function;
defaultLabel?: string | Array<string>;
defaultActiveFirstOption?: boolean;
getPopupContainer?: (trigger: Node) => Node;
optionFilterProp?: string;
optionLabelProp?: string;
placeholder?: React.ReactNode;
prefixCls?: string;
showAction?: string[];
showArrow?: boolean;
showSearch?: boolean;
tags?: boolean;
tokenSeparators?: string[];
transitionName?: string;
value?: string | Array<string>;
}
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> { }