跳到主要内容
版本:1.x

Class: Select

molecule.component.Select

Hierarchy

Constructors

constructor

new Select(props)

Parameters

NameType
propsany

Overrides

PureComponent<ISelectProps, IState\>.constructor

Defined in

components/select/select.tsx:60

Properties

contextView

Private contextView: IContextView

Defined in

components/select/select.tsx:55


selectElm

Private selectElm: RefObject<HTMLDivElement>

Defined in

components/select/select.tsx:57


selectInput

Private selectInput: RefObject<HTMLInputElement>

Defined in

components/select/select.tsx:58


state

state: IState

Overrides

PureComponent.state

Defined in

components/select/select.tsx:56

Methods

componentDidMount

componentDidMount(): void

Returns

void

Overrides

PureComponent.componentDidMount

Defined in

components/select/select.tsx:79


componentWillUnmount

componentWillUnmount(): void

Returns

void

Overrides

PureComponent.componentWillUnmount

Defined in

components/select/select.tsx:89


getDefaultState

Private getDefaultState(props): Object

Parameters

NameType
propsany

Returns

Object

NameType
isOpenboolean
option{ description?: string ; disabled?: boolean ; name?: string ; value?: string }
option.description?string
option.disabled?boolean
option.name?string
option.value?string

Defined in

components/select/select.tsx:114


handleOnClickOption

handleOnClickOption(e): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>

Returns

void

Defined in

components/select/select.tsx:121


handleOnClickSelect

handleOnClickSelect(e): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>

Returns

void

Defined in

components/select/select.tsx:158


handleOnHoverOption

handleOnHoverOption(e): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>

Returns

void

Defined in

components/select/select.tsx:145


render

render(): Element

Returns

Element

Overrides

PureComponent.render

Defined in

components/select/select.tsx:190


getDerivedStateFromProps

Static getDerivedStateFromProps(props, state): null | { option: ISelectOptionProps }

Parameters

NameType
propsany
stateany

Returns

null | { option: ISelectOptionProps }

Defined in

components/select/select.tsx:70


getSelectOption

Static Private getSelectOption(props): ISelectOptionProps

Parameters

NameType
propsany

Returns

ISelectOptionProps

Defined in

components/select/select.tsx:93