mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
parent
c9258fc483
commit
b5446d632a
@ -2,7 +2,6 @@ import React from 'react';
|
|||||||
import { PropTypes } from 'react';
|
import { PropTypes } from 'react';
|
||||||
import RcSelect, { Option, OptGroup } from 'rc-select';
|
import RcSelect, { Option, OptGroup } from 'rc-select';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import assign from 'object-assign';
|
|
||||||
|
|
||||||
export type SelectValue = string | any[] | { key: string, label: React.ReactNode } |
|
export type SelectValue = string | any[] | { key: string, label: React.ReactNode } |
|
||||||
Array<{ key: string, label: React.ReactNode }>;
|
Array<{ key: string, label: React.ReactNode }>;
|
||||||
@ -88,7 +87,6 @@ export default class Select extends React.Component<SelectProps, any> {
|
|||||||
size,
|
size,
|
||||||
combobox,
|
combobox,
|
||||||
showSearch,
|
showSearch,
|
||||||
dropdownStyle,
|
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
let { notFoundContent = 'Not Found', optionLabelProp } = this.props;
|
let { notFoundContent = 'Not Found', optionLabelProp } = this.props;
|
||||||
@ -118,9 +116,6 @@ export default class Select extends React.Component<SelectProps, any> {
|
|||||||
className={cls}
|
className={cls}
|
||||||
optionLabelProp={optionLabelProp || 'children'}
|
optionLabelProp={optionLabelProp || 'children'}
|
||||||
notFoundContent={notFoundContent}
|
notFoundContent={notFoundContent}
|
||||||
dropdownStyle={assign({}, dropdownStyle, {
|
|
||||||
display: (!notFoundContent && !combobox) ? 'none' : '',
|
|
||||||
})}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user