Fix Select Mode Type

This commit is contained in:
wleven 2019-10-18 15:27:54 +08:00 committed by 偏右
parent 59ec7f3b8f
commit 53c55ceaad

View File

@ -54,7 +54,7 @@ export type SelectValue = string | string[] | number | number[] | LabeledValue |
export interface SelectProps<T = SelectValue> extends AbstractSelectProps {
value?: T;
defaultValue?: T;
mode?: 'default' | 'multiple' | 'tags' | 'combobox' | string;
mode?: 'default' | 'multiple' | 'tags' | 'combobox' | undefined;
optionLabelProp?: string;
firstActiveValue?: string | string[];
onChange?: (value: T, option: React.ReactElement<any> | React.ReactElement<any>[]) => void;