Select
Extends:
melon-core/InputComponent~InputComponent → Select
Constructor Summary
Public Constructor | ||
public |
constructor(props: *, context: *) |
Method Summary
Public Methods | ||
public |
|
|
public |
componentWillReceiveProps(nextProps: *) |
|
public |
|
|
public |
findOption(value: *, children: *): * |
|
public |
|
|
public |
isOpen(): * |
|
public |
onClick() |
|
public |
onClickOption(objectPattern: {"value": *}) |
|
public |
onPopupHide(e: *) |
|
public |
render(): * |
|
public |
renderHiddenInput(): * |
|
public |
renderIcon(): * |
|
public |
renderItem(child: *, index: *): * |
|
public |
renderLabel(label: string | ReactElement): ReactElement 渲染label部件 |
|
public |
|
Public Constructors
public constructor(props: *, context: *) source
Params:
Name | Type | Attribute | Description |
props | * | ||
context | * |
Public Methods
public componentDidMount() source
public componentWillReceiveProps(nextProps: *) source
Params:
Name | Type | Attribute | Description |
nextProps | * |
public componentWillUnmount() source
public findOption(value: *, children: *): * source
Params:
Name | Type | Attribute | Description |
value | * | ||
children | * |
Return:
* |
public hideOptions() source
public onClick() source
public onClickOption(objectPattern: {"value": *}) source
Params:
Name | Type | Attribute | Description |
objectPattern | {"value": *} |
|
public onPopupHide(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
public renderItem(child: *, index: *): * source
Params:
Name | Type | Attribute | Description |
child | * | ||
index | * |
Return:
* |
public renderLabel(label: string | ReactElement): ReactElement source
渲染label部件
Params:
Name | Type | Attribute | Description |
label | string | ReactElement | label部件内容 |
Return:
ReactElement |