mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
commit
f9f0efe15d
@ -201,6 +201,7 @@ interface SelectProps extends OptionProps {
|
||||
checkAllLabel?: string;
|
||||
defaultCheckAll?: boolean;
|
||||
simpleValue?: boolean;
|
||||
defaultOpen?: boolean;
|
||||
}
|
||||
|
||||
interface SelectState {
|
||||
@ -258,7 +259,7 @@ export class Select extends React.Component<SelectProps, SelectState> {
|
||||
this.handleDeleteClick = this.handleDeleteClick.bind(this);
|
||||
|
||||
this.state = {
|
||||
isOpen: false,
|
||||
isOpen: props.defaultOpen || false,
|
||||
isFocused: false,
|
||||
inputValue: '',
|
||||
highlightedIndex: -1,
|
||||
|
@ -12,6 +12,7 @@ import {dataMapping} from '../../utils/tpl-builtin';
|
||||
export interface SelectProps extends OptionsControlProps {
|
||||
autoComplete?: Api;
|
||||
searchable?: boolean;
|
||||
defaultOpen?: boolean;
|
||||
}
|
||||
|
||||
export default class SelectControl extends React.Component<SelectProps, any> {
|
||||
|
Loading…
Reference in New Issue
Block a user