1 | import React from "react";
|
2 | import { SelectProps, SelectValue } from "./PropsInterface";
|
3 | import { Item } from "./PropsInterface";
|
4 | import "./index.scss";
|
5 | export interface SelectState extends SelectValue {
|
6 | inputValue: string;
|
7 | isFocus: boolean;
|
8 | isHasTooltip: boolean;
|
9 | visibleTxt: boolean;
|
10 | hover: boolean;
|
11 | searchWord: string;
|
12 | inputWidth: number;
|
13 | adjustArrow?: boolean;
|
14 | }
|
15 | export default class Select extends React.PureComponent<SelectProps, SelectState> {
|
16 | static defaultProps: {
|
17 | size: string;
|
18 | disabled: boolean;
|
19 | isMultiSelect: boolean;
|
20 | placeHolder: string;
|
21 | isSearch: boolean;
|
22 | readOnly: boolean;
|
23 | showDelete: boolean;
|
24 | translation: {};
|
25 | };
|
26 | private inputRef;
|
27 | private hiddenSpanRef;
|
28 | private ulRef;
|
29 | private clickDelet;
|
30 | constructor(props: SelectProps);
|
31 | emitPropsChangeMethod: () => void;
|
32 | handleValue: () => "" | Item[];
|
33 | isShowToolTip: () => void;
|
34 | adjustArrow: () => void;
|
35 | componentDidMount(): void;
|
36 | componentWillReceiveProps(nextProps: SelectProps): void;
|
37 | componentDidUpdate(prevProps: SelectProps): void;
|
38 | resetStatus: () => void;
|
39 | inputing: (evt: any) => void;
|
40 | onBlur: (e: any) => void;
|
41 | onKeyDown: (e: any) => void;
|
42 | onWrapperClick: (e?: any) => void;
|
43 | onWrapperMouseEnter: () => void;
|
44 | onWrapperMouseLeave: () => void;
|
45 | deleteTxt: (e: any) => void;
|
46 | removeItem: (item: number | Item) => void;
|
47 | renderMutiItems: () => JSX.Element[] | undefined;
|
48 | renderTxt: () => JSX.Element | null | undefined;
|
49 | handleInputWidth: () => number | undefined;
|
50 | switchDropDown: () => void;
|
51 | isShowPlaceHolder: () => true | undefined;
|
52 | getInputValue: () => string;
|
53 | getDeleteIconState(): boolean | undefined;
|
54 | render(): JSX.Element;
|
55 | }
|